@talonic/docs 0.21.96 → 0.21.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content.js +182 -0
- package/dist/seo.js +180 -0
- package/openapi.json +180 -0
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -57510,6 +57510,108 @@ var openapi_default = {
|
|
|
57510
57510
|
}
|
|
57511
57511
|
}
|
|
57512
57512
|
},
|
|
57513
|
+
"/v1/sources/{id}/record-roles": {
|
|
57514
|
+
get: {
|
|
57515
|
+
operationId: "getSourceRecordRoles",
|
|
57516
|
+
"x-audience": "public",
|
|
57517
|
+
"x-required-scopes": [
|
|
57518
|
+
"read"
|
|
57519
|
+
],
|
|
57520
|
+
summary: "Who reads the records of a connection",
|
|
57521
|
+
description: "For a source whose records each belong to a person inside it (a CRM's deals, contacts and companies have an owner): whether the connection tells its readers apart, who its admins are, and the owners the source names with who each is in the workspace. An owner without a `member` is nobody in this workspace; their records, and records that name no owner (`unowned`), are read by the admins only. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `read`.\n",
|
|
57522
|
+
tags: [
|
|
57523
|
+
"Sources"
|
|
57524
|
+
],
|
|
57525
|
+
parameters: [
|
|
57526
|
+
{
|
|
57527
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57528
|
+
}
|
|
57529
|
+
],
|
|
57530
|
+
responses: {
|
|
57531
|
+
"200": {
|
|
57532
|
+
description: "The roles of the connection.",
|
|
57533
|
+
content: {
|
|
57534
|
+
"application/json": {
|
|
57535
|
+
schema: {
|
|
57536
|
+
$ref: "#/components/schemas/SourceRecordRoles"
|
|
57537
|
+
}
|
|
57538
|
+
}
|
|
57539
|
+
}
|
|
57540
|
+
},
|
|
57541
|
+
"403": {
|
|
57542
|
+
$ref: "#/components/responses/Forbidden"
|
|
57543
|
+
},
|
|
57544
|
+
"404": {
|
|
57545
|
+
$ref: "#/components/responses/NotFound"
|
|
57546
|
+
}
|
|
57547
|
+
}
|
|
57548
|
+
},
|
|
57549
|
+
put: {
|
|
57550
|
+
operationId: "setSourceRecordRoles",
|
|
57551
|
+
"x-audience": "public",
|
|
57552
|
+
"x-required-scopes": [
|
|
57553
|
+
"sources:write"
|
|
57554
|
+
],
|
|
57555
|
+
summary: "Set who reads the records of a connection",
|
|
57556
|
+
description: "With `enabled: true` the `admins` read every record of the source and everyone else reads only the records they own in it: a record is a person's when the source names their mail address as an owner and they are an active member with that address. With `enabled: false` everyone who reads the source reads all of its records. Switching it on needs at least one admin, each an active member, and a source that says whose its records are (`available`). What is built from the source's records follows within minutes; until then it reads as before the change. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57557
|
+
tags: [
|
|
57558
|
+
"Sources"
|
|
57559
|
+
],
|
|
57560
|
+
parameters: [
|
|
57561
|
+
{
|
|
57562
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57563
|
+
}
|
|
57564
|
+
],
|
|
57565
|
+
requestBody: {
|
|
57566
|
+
required: true,
|
|
57567
|
+
content: {
|
|
57568
|
+
"application/json": {
|
|
57569
|
+
schema: {
|
|
57570
|
+
type: "object",
|
|
57571
|
+
required: [
|
|
57572
|
+
"enabled"
|
|
57573
|
+
],
|
|
57574
|
+
properties: {
|
|
57575
|
+
enabled: {
|
|
57576
|
+
type: "boolean"
|
|
57577
|
+
},
|
|
57578
|
+
admins: {
|
|
57579
|
+
type: "array",
|
|
57580
|
+
maxItems: 200,
|
|
57581
|
+
items: {
|
|
57582
|
+
type: "string",
|
|
57583
|
+
format: "uuid"
|
|
57584
|
+
},
|
|
57585
|
+
description: "User ids of the admins. At least one when `enabled`."
|
|
57586
|
+
}
|
|
57587
|
+
}
|
|
57588
|
+
}
|
|
57589
|
+
}
|
|
57590
|
+
}
|
|
57591
|
+
},
|
|
57592
|
+
responses: {
|
|
57593
|
+
"200": {
|
|
57594
|
+
description: "The roles as they stand.",
|
|
57595
|
+
content: {
|
|
57596
|
+
"application/json": {
|
|
57597
|
+
schema: {
|
|
57598
|
+
$ref: "#/components/schemas/SourceRecordRoles"
|
|
57599
|
+
}
|
|
57600
|
+
}
|
|
57601
|
+
}
|
|
57602
|
+
},
|
|
57603
|
+
"400": {
|
|
57604
|
+
$ref: "#/components/responses/BadRequest"
|
|
57605
|
+
},
|
|
57606
|
+
"403": {
|
|
57607
|
+
$ref: "#/components/responses/Forbidden"
|
|
57608
|
+
},
|
|
57609
|
+
"404": {
|
|
57610
|
+
$ref: "#/components/responses/NotFound"
|
|
57611
|
+
}
|
|
57612
|
+
}
|
|
57613
|
+
}
|
|
57614
|
+
},
|
|
57513
57615
|
"/v1/sources/{id}/make-private": {
|
|
57514
57616
|
post: {
|
|
57515
57617
|
operationId: "makeSourceConnectionPrivate",
|
|
@@ -118423,6 +118525,84 @@ var openapi_default = {
|
|
|
118423
118525
|
}
|
|
118424
118526
|
}
|
|
118425
118527
|
},
|
|
118528
|
+
SourceRecordRoles: {
|
|
118529
|
+
type: "object",
|
|
118530
|
+
required: [
|
|
118531
|
+
"available",
|
|
118532
|
+
"enabled",
|
|
118533
|
+
"admins",
|
|
118534
|
+
"owners",
|
|
118535
|
+
"unowned"
|
|
118536
|
+
],
|
|
118537
|
+
properties: {
|
|
118538
|
+
available: {
|
|
118539
|
+
type: "boolean",
|
|
118540
|
+
description: "Whether the source says whose each record is. Without that the roles cannot be switched on."
|
|
118541
|
+
},
|
|
118542
|
+
enabled: {
|
|
118543
|
+
type: "boolean",
|
|
118544
|
+
description: "Whether admins read every record and everyone else their own."
|
|
118545
|
+
},
|
|
118546
|
+
admins: {
|
|
118547
|
+
type: "array",
|
|
118548
|
+
items: {
|
|
118549
|
+
$ref: "#/components/schemas/SourceRecordRolePerson"
|
|
118550
|
+
}
|
|
118551
|
+
},
|
|
118552
|
+
owners: {
|
|
118553
|
+
type: "array",
|
|
118554
|
+
description: "The owners the source names, most records first (at most 200).",
|
|
118555
|
+
items: {
|
|
118556
|
+
type: "object",
|
|
118557
|
+
required: [
|
|
118558
|
+
"email",
|
|
118559
|
+
"member",
|
|
118560
|
+
"records"
|
|
118561
|
+
],
|
|
118562
|
+
properties: {
|
|
118563
|
+
email: {
|
|
118564
|
+
type: "string"
|
|
118565
|
+
},
|
|
118566
|
+
member: {
|
|
118567
|
+
nullable: true,
|
|
118568
|
+
allOf: [
|
|
118569
|
+
{
|
|
118570
|
+
$ref: "#/components/schemas/SourceRecordRolePerson"
|
|
118571
|
+
}
|
|
118572
|
+
]
|
|
118573
|
+
},
|
|
118574
|
+
records: {
|
|
118575
|
+
type: "integer"
|
|
118576
|
+
}
|
|
118577
|
+
}
|
|
118578
|
+
}
|
|
118579
|
+
},
|
|
118580
|
+
unowned: {
|
|
118581
|
+
type: "integer",
|
|
118582
|
+
description: "Records that name no owner."
|
|
118583
|
+
}
|
|
118584
|
+
}
|
|
118585
|
+
},
|
|
118586
|
+
SourceRecordRolePerson: {
|
|
118587
|
+
type: "object",
|
|
118588
|
+
required: [
|
|
118589
|
+
"id"
|
|
118590
|
+
],
|
|
118591
|
+
properties: {
|
|
118592
|
+
id: {
|
|
118593
|
+
type: "string",
|
|
118594
|
+
format: "uuid"
|
|
118595
|
+
},
|
|
118596
|
+
name: {
|
|
118597
|
+
type: "string",
|
|
118598
|
+
nullable: true
|
|
118599
|
+
},
|
|
118600
|
+
email: {
|
|
118601
|
+
type: "string",
|
|
118602
|
+
nullable: true
|
|
118603
|
+
}
|
|
118604
|
+
}
|
|
118605
|
+
},
|
|
118426
118606
|
ThreadState: {
|
|
118427
118607
|
type: "object",
|
|
118428
118608
|
properties: {
|
|
@@ -125244,6 +125424,8 @@ curl https://api.talonic.com/v1/integrations/authorizations/3b1f0c2e-8d4a-4f6b-9
|
|
|
125244
125424
|
ep("GET", "/v1/sources/:id/imports", "List what was brought in.", "A personal connection's history is its author's only. Scope: `read` or `sources:read`."),
|
|
125245
125425
|
ep("POST", "/v1/sources/:id/imports/:importId/resync", "Read one Teams transcript period again.", "Unchanged content is not processed again. Scope: `documents:write`."),
|
|
125246
125426
|
ep("POST", "/v1/sources/:id/make-private", "Make a connection private.", "Only its author (and the people they name) see what it holds. Its author or an owner may do it. Idempotent: `created: false` when a rule already restricts it. Scope: `sources:write`."),
|
|
125427
|
+
ep("GET", "/v1/sources/:id/record-roles", "Who reads the records of a connection.", "For a source whose records have an owner inside it (a CRM): whether it tells its readers apart, its admins, and the owners the source names with who each is in the workspace. Its author or a member with the Integrations permission. Scope: `read`."),
|
|
125428
|
+
ep("PUT", "/v1/sources/:id/record-roles", "Set who reads the records of a connection.", 'Body `{ "enabled": true, "admins": ["<user id>"] }`: the admins read every record, everyone else only the records the source names them as owner of (matched by mail address). `{ "enabled": false }` gives everyone all of it again. Scope: `sources:write`.'),
|
|
125247
125429
|
ep("DELETE", "/v1/sources/:id", "Disconnect.", "For a connected account, its author or a member with the Integrations permission (a personal account: its author or an owner); the stored provider access is revoked at once. Scope: `write` or `sources:write`."),
|
|
125248
125430
|
ep("GET", "/v1/sources/sql/:connectionId/tables", "Read a SQL database.", "Also `/overview`, `/tables/:table/columns`, `/tables/:table/rows` (`page`, `limit`, `q`) and `/saved-queries[/:queryId]`. Scope: `read` or `sources:read`."),
|
|
125249
125431
|
ep("POST", "/v1/sources/sql/:connectionId/saved-queries", "Save a read-only query.", "Body: `name`, `sql_text`, optional `description`. Also `PATCH` and `DELETE /saved-queries/:queryId`, and `POST /test-query` (at most 100 rows). Scope: `sources:write`."),
|
package/dist/seo.js
CHANGED
|
@@ -57474,6 +57474,108 @@ var openapi_default = {
|
|
|
57474
57474
|
}
|
|
57475
57475
|
}
|
|
57476
57476
|
},
|
|
57477
|
+
"/v1/sources/{id}/record-roles": {
|
|
57478
|
+
get: {
|
|
57479
|
+
operationId: "getSourceRecordRoles",
|
|
57480
|
+
"x-audience": "public",
|
|
57481
|
+
"x-required-scopes": [
|
|
57482
|
+
"read"
|
|
57483
|
+
],
|
|
57484
|
+
summary: "Who reads the records of a connection",
|
|
57485
|
+
description: "For a source whose records each belong to a person inside it (a CRM's deals, contacts and companies have an owner): whether the connection tells its readers apart, who its admins are, and the owners the source names with who each is in the workspace. An owner without a `member` is nobody in this workspace; their records, and records that name no owner (`unowned`), are read by the admins only. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `read`.\n",
|
|
57486
|
+
tags: [
|
|
57487
|
+
"Sources"
|
|
57488
|
+
],
|
|
57489
|
+
parameters: [
|
|
57490
|
+
{
|
|
57491
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57492
|
+
}
|
|
57493
|
+
],
|
|
57494
|
+
responses: {
|
|
57495
|
+
"200": {
|
|
57496
|
+
description: "The roles of the connection.",
|
|
57497
|
+
content: {
|
|
57498
|
+
"application/json": {
|
|
57499
|
+
schema: {
|
|
57500
|
+
$ref: "#/components/schemas/SourceRecordRoles"
|
|
57501
|
+
}
|
|
57502
|
+
}
|
|
57503
|
+
}
|
|
57504
|
+
},
|
|
57505
|
+
"403": {
|
|
57506
|
+
$ref: "#/components/responses/Forbidden"
|
|
57507
|
+
},
|
|
57508
|
+
"404": {
|
|
57509
|
+
$ref: "#/components/responses/NotFound"
|
|
57510
|
+
}
|
|
57511
|
+
}
|
|
57512
|
+
},
|
|
57513
|
+
put: {
|
|
57514
|
+
operationId: "setSourceRecordRoles",
|
|
57515
|
+
"x-audience": "public",
|
|
57516
|
+
"x-required-scopes": [
|
|
57517
|
+
"sources:write"
|
|
57518
|
+
],
|
|
57519
|
+
summary: "Set who reads the records of a connection",
|
|
57520
|
+
description: "With `enabled: true` the `admins` read every record of the source and everyone else reads only the records they own in it: a record is a person's when the source names their mail address as an owner and they are an active member with that address. With `enabled: false` everyone who reads the source reads all of its records. Switching it on needs at least one admin, each an active member, and a source that says whose its records are (`available`). What is built from the source's records follows within minutes; until then it reads as before the change. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57521
|
+
tags: [
|
|
57522
|
+
"Sources"
|
|
57523
|
+
],
|
|
57524
|
+
parameters: [
|
|
57525
|
+
{
|
|
57526
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57527
|
+
}
|
|
57528
|
+
],
|
|
57529
|
+
requestBody: {
|
|
57530
|
+
required: true,
|
|
57531
|
+
content: {
|
|
57532
|
+
"application/json": {
|
|
57533
|
+
schema: {
|
|
57534
|
+
type: "object",
|
|
57535
|
+
required: [
|
|
57536
|
+
"enabled"
|
|
57537
|
+
],
|
|
57538
|
+
properties: {
|
|
57539
|
+
enabled: {
|
|
57540
|
+
type: "boolean"
|
|
57541
|
+
},
|
|
57542
|
+
admins: {
|
|
57543
|
+
type: "array",
|
|
57544
|
+
maxItems: 200,
|
|
57545
|
+
items: {
|
|
57546
|
+
type: "string",
|
|
57547
|
+
format: "uuid"
|
|
57548
|
+
},
|
|
57549
|
+
description: "User ids of the admins. At least one when `enabled`."
|
|
57550
|
+
}
|
|
57551
|
+
}
|
|
57552
|
+
}
|
|
57553
|
+
}
|
|
57554
|
+
}
|
|
57555
|
+
},
|
|
57556
|
+
responses: {
|
|
57557
|
+
"200": {
|
|
57558
|
+
description: "The roles as they stand.",
|
|
57559
|
+
content: {
|
|
57560
|
+
"application/json": {
|
|
57561
|
+
schema: {
|
|
57562
|
+
$ref: "#/components/schemas/SourceRecordRoles"
|
|
57563
|
+
}
|
|
57564
|
+
}
|
|
57565
|
+
}
|
|
57566
|
+
},
|
|
57567
|
+
"400": {
|
|
57568
|
+
$ref: "#/components/responses/BadRequest"
|
|
57569
|
+
},
|
|
57570
|
+
"403": {
|
|
57571
|
+
$ref: "#/components/responses/Forbidden"
|
|
57572
|
+
},
|
|
57573
|
+
"404": {
|
|
57574
|
+
$ref: "#/components/responses/NotFound"
|
|
57575
|
+
}
|
|
57576
|
+
}
|
|
57577
|
+
}
|
|
57578
|
+
},
|
|
57477
57579
|
"/v1/sources/{id}/make-private": {
|
|
57478
57580
|
post: {
|
|
57479
57581
|
operationId: "makeSourceConnectionPrivate",
|
|
@@ -118387,6 +118489,84 @@ var openapi_default = {
|
|
|
118387
118489
|
}
|
|
118388
118490
|
}
|
|
118389
118491
|
},
|
|
118492
|
+
SourceRecordRoles: {
|
|
118493
|
+
type: "object",
|
|
118494
|
+
required: [
|
|
118495
|
+
"available",
|
|
118496
|
+
"enabled",
|
|
118497
|
+
"admins",
|
|
118498
|
+
"owners",
|
|
118499
|
+
"unowned"
|
|
118500
|
+
],
|
|
118501
|
+
properties: {
|
|
118502
|
+
available: {
|
|
118503
|
+
type: "boolean",
|
|
118504
|
+
description: "Whether the source says whose each record is. Without that the roles cannot be switched on."
|
|
118505
|
+
},
|
|
118506
|
+
enabled: {
|
|
118507
|
+
type: "boolean",
|
|
118508
|
+
description: "Whether admins read every record and everyone else their own."
|
|
118509
|
+
},
|
|
118510
|
+
admins: {
|
|
118511
|
+
type: "array",
|
|
118512
|
+
items: {
|
|
118513
|
+
$ref: "#/components/schemas/SourceRecordRolePerson"
|
|
118514
|
+
}
|
|
118515
|
+
},
|
|
118516
|
+
owners: {
|
|
118517
|
+
type: "array",
|
|
118518
|
+
description: "The owners the source names, most records first (at most 200).",
|
|
118519
|
+
items: {
|
|
118520
|
+
type: "object",
|
|
118521
|
+
required: [
|
|
118522
|
+
"email",
|
|
118523
|
+
"member",
|
|
118524
|
+
"records"
|
|
118525
|
+
],
|
|
118526
|
+
properties: {
|
|
118527
|
+
email: {
|
|
118528
|
+
type: "string"
|
|
118529
|
+
},
|
|
118530
|
+
member: {
|
|
118531
|
+
nullable: true,
|
|
118532
|
+
allOf: [
|
|
118533
|
+
{
|
|
118534
|
+
$ref: "#/components/schemas/SourceRecordRolePerson"
|
|
118535
|
+
}
|
|
118536
|
+
]
|
|
118537
|
+
},
|
|
118538
|
+
records: {
|
|
118539
|
+
type: "integer"
|
|
118540
|
+
}
|
|
118541
|
+
}
|
|
118542
|
+
}
|
|
118543
|
+
},
|
|
118544
|
+
unowned: {
|
|
118545
|
+
type: "integer",
|
|
118546
|
+
description: "Records that name no owner."
|
|
118547
|
+
}
|
|
118548
|
+
}
|
|
118549
|
+
},
|
|
118550
|
+
SourceRecordRolePerson: {
|
|
118551
|
+
type: "object",
|
|
118552
|
+
required: [
|
|
118553
|
+
"id"
|
|
118554
|
+
],
|
|
118555
|
+
properties: {
|
|
118556
|
+
id: {
|
|
118557
|
+
type: "string",
|
|
118558
|
+
format: "uuid"
|
|
118559
|
+
},
|
|
118560
|
+
name: {
|
|
118561
|
+
type: "string",
|
|
118562
|
+
nullable: true
|
|
118563
|
+
},
|
|
118564
|
+
email: {
|
|
118565
|
+
type: "string",
|
|
118566
|
+
nullable: true
|
|
118567
|
+
}
|
|
118568
|
+
}
|
|
118569
|
+
},
|
|
118390
118570
|
ThreadState: {
|
|
118391
118571
|
type: "object",
|
|
118392
118572
|
properties: {
|
package/openapi.json
CHANGED
|
@@ -57318,6 +57318,108 @@
|
|
|
57318
57318
|
}
|
|
57319
57319
|
}
|
|
57320
57320
|
},
|
|
57321
|
+
"/v1/sources/{id}/record-roles": {
|
|
57322
|
+
"get": {
|
|
57323
|
+
"operationId": "getSourceRecordRoles",
|
|
57324
|
+
"x-audience": "public",
|
|
57325
|
+
"x-required-scopes": [
|
|
57326
|
+
"read"
|
|
57327
|
+
],
|
|
57328
|
+
"summary": "Who reads the records of a connection",
|
|
57329
|
+
"description": "For a source whose records each belong to a person inside it (a CRM's deals, contacts and companies have an owner): whether the connection tells its readers apart, who its admins are, and the owners the source names with who each is in the workspace. An owner without a `member` is nobody in this workspace; their records, and records that name no owner (`unowned`), are read by the admins only. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `read`.\n",
|
|
57330
|
+
"tags": [
|
|
57331
|
+
"Sources"
|
|
57332
|
+
],
|
|
57333
|
+
"parameters": [
|
|
57334
|
+
{
|
|
57335
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
57336
|
+
}
|
|
57337
|
+
],
|
|
57338
|
+
"responses": {
|
|
57339
|
+
"200": {
|
|
57340
|
+
"description": "The roles of the connection.",
|
|
57341
|
+
"content": {
|
|
57342
|
+
"application/json": {
|
|
57343
|
+
"schema": {
|
|
57344
|
+
"$ref": "#/components/schemas/SourceRecordRoles"
|
|
57345
|
+
}
|
|
57346
|
+
}
|
|
57347
|
+
}
|
|
57348
|
+
},
|
|
57349
|
+
"403": {
|
|
57350
|
+
"$ref": "#/components/responses/Forbidden"
|
|
57351
|
+
},
|
|
57352
|
+
"404": {
|
|
57353
|
+
"$ref": "#/components/responses/NotFound"
|
|
57354
|
+
}
|
|
57355
|
+
}
|
|
57356
|
+
},
|
|
57357
|
+
"put": {
|
|
57358
|
+
"operationId": "setSourceRecordRoles",
|
|
57359
|
+
"x-audience": "public",
|
|
57360
|
+
"x-required-scopes": [
|
|
57361
|
+
"sources:write"
|
|
57362
|
+
],
|
|
57363
|
+
"summary": "Set who reads the records of a connection",
|
|
57364
|
+
"description": "With `enabled: true` the `admins` read every record of the source and everyone else reads only the records they own in it: a record is a person's when the source names their mail address as an owner and they are an active member with that address. With `enabled: false` everyone who reads the source reads all of its records. Switching it on needs at least one admin, each an active member, and a source that says whose its records are (`available`). What is built from the source's records follows within minutes; until then it reads as before the change. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57365
|
+
"tags": [
|
|
57366
|
+
"Sources"
|
|
57367
|
+
],
|
|
57368
|
+
"parameters": [
|
|
57369
|
+
{
|
|
57370
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
57371
|
+
}
|
|
57372
|
+
],
|
|
57373
|
+
"requestBody": {
|
|
57374
|
+
"required": true,
|
|
57375
|
+
"content": {
|
|
57376
|
+
"application/json": {
|
|
57377
|
+
"schema": {
|
|
57378
|
+
"type": "object",
|
|
57379
|
+
"required": [
|
|
57380
|
+
"enabled"
|
|
57381
|
+
],
|
|
57382
|
+
"properties": {
|
|
57383
|
+
"enabled": {
|
|
57384
|
+
"type": "boolean"
|
|
57385
|
+
},
|
|
57386
|
+
"admins": {
|
|
57387
|
+
"type": "array",
|
|
57388
|
+
"maxItems": 200,
|
|
57389
|
+
"items": {
|
|
57390
|
+
"type": "string",
|
|
57391
|
+
"format": "uuid"
|
|
57392
|
+
},
|
|
57393
|
+
"description": "User ids of the admins. At least one when `enabled`."
|
|
57394
|
+
}
|
|
57395
|
+
}
|
|
57396
|
+
}
|
|
57397
|
+
}
|
|
57398
|
+
}
|
|
57399
|
+
},
|
|
57400
|
+
"responses": {
|
|
57401
|
+
"200": {
|
|
57402
|
+
"description": "The roles as they stand.",
|
|
57403
|
+
"content": {
|
|
57404
|
+
"application/json": {
|
|
57405
|
+
"schema": {
|
|
57406
|
+
"$ref": "#/components/schemas/SourceRecordRoles"
|
|
57407
|
+
}
|
|
57408
|
+
}
|
|
57409
|
+
}
|
|
57410
|
+
},
|
|
57411
|
+
"400": {
|
|
57412
|
+
"$ref": "#/components/responses/BadRequest"
|
|
57413
|
+
},
|
|
57414
|
+
"403": {
|
|
57415
|
+
"$ref": "#/components/responses/Forbidden"
|
|
57416
|
+
},
|
|
57417
|
+
"404": {
|
|
57418
|
+
"$ref": "#/components/responses/NotFound"
|
|
57419
|
+
}
|
|
57420
|
+
}
|
|
57421
|
+
}
|
|
57422
|
+
},
|
|
57321
57423
|
"/v1/sources/{id}/make-private": {
|
|
57322
57424
|
"post": {
|
|
57323
57425
|
"operationId": "makeSourceConnectionPrivate",
|
|
@@ -118231,6 +118333,84 @@
|
|
|
118231
118333
|
}
|
|
118232
118334
|
}
|
|
118233
118335
|
},
|
|
118336
|
+
"SourceRecordRoles": {
|
|
118337
|
+
"type": "object",
|
|
118338
|
+
"required": [
|
|
118339
|
+
"available",
|
|
118340
|
+
"enabled",
|
|
118341
|
+
"admins",
|
|
118342
|
+
"owners",
|
|
118343
|
+
"unowned"
|
|
118344
|
+
],
|
|
118345
|
+
"properties": {
|
|
118346
|
+
"available": {
|
|
118347
|
+
"type": "boolean",
|
|
118348
|
+
"description": "Whether the source says whose each record is. Without that the roles cannot be switched on."
|
|
118349
|
+
},
|
|
118350
|
+
"enabled": {
|
|
118351
|
+
"type": "boolean",
|
|
118352
|
+
"description": "Whether admins read every record and everyone else their own."
|
|
118353
|
+
},
|
|
118354
|
+
"admins": {
|
|
118355
|
+
"type": "array",
|
|
118356
|
+
"items": {
|
|
118357
|
+
"$ref": "#/components/schemas/SourceRecordRolePerson"
|
|
118358
|
+
}
|
|
118359
|
+
},
|
|
118360
|
+
"owners": {
|
|
118361
|
+
"type": "array",
|
|
118362
|
+
"description": "The owners the source names, most records first (at most 200).",
|
|
118363
|
+
"items": {
|
|
118364
|
+
"type": "object",
|
|
118365
|
+
"required": [
|
|
118366
|
+
"email",
|
|
118367
|
+
"member",
|
|
118368
|
+
"records"
|
|
118369
|
+
],
|
|
118370
|
+
"properties": {
|
|
118371
|
+
"email": {
|
|
118372
|
+
"type": "string"
|
|
118373
|
+
},
|
|
118374
|
+
"member": {
|
|
118375
|
+
"nullable": true,
|
|
118376
|
+
"allOf": [
|
|
118377
|
+
{
|
|
118378
|
+
"$ref": "#/components/schemas/SourceRecordRolePerson"
|
|
118379
|
+
}
|
|
118380
|
+
]
|
|
118381
|
+
},
|
|
118382
|
+
"records": {
|
|
118383
|
+
"type": "integer"
|
|
118384
|
+
}
|
|
118385
|
+
}
|
|
118386
|
+
}
|
|
118387
|
+
},
|
|
118388
|
+
"unowned": {
|
|
118389
|
+
"type": "integer",
|
|
118390
|
+
"description": "Records that name no owner."
|
|
118391
|
+
}
|
|
118392
|
+
}
|
|
118393
|
+
},
|
|
118394
|
+
"SourceRecordRolePerson": {
|
|
118395
|
+
"type": "object",
|
|
118396
|
+
"required": [
|
|
118397
|
+
"id"
|
|
118398
|
+
],
|
|
118399
|
+
"properties": {
|
|
118400
|
+
"id": {
|
|
118401
|
+
"type": "string",
|
|
118402
|
+
"format": "uuid"
|
|
118403
|
+
},
|
|
118404
|
+
"name": {
|
|
118405
|
+
"type": "string",
|
|
118406
|
+
"nullable": true
|
|
118407
|
+
},
|
|
118408
|
+
"email": {
|
|
118409
|
+
"type": "string",
|
|
118410
|
+
"nullable": true
|
|
118411
|
+
}
|
|
118412
|
+
}
|
|
118413
|
+
},
|
|
118234
118414
|
"ThreadState": {
|
|
118235
118415
|
"type": "object",
|
|
118236
118416
|
"properties": {
|