@talonic/docs 0.21.95 → 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 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",
@@ -80278,6 +80380,58 @@ var openapi_default = {
80278
80380
  }
80279
80381
  }
80280
80382
  },
80383
+ responses: {
80384
+ "202": {
80385
+ description: "Accepted.",
80386
+ content: {
80387
+ "application/json": {
80388
+ schema: {
80389
+ type: "object",
80390
+ properties: {
80391
+ ok: {
80392
+ type: "boolean"
80393
+ }
80394
+ }
80395
+ }
80396
+ }
80397
+ }
80398
+ },
80399
+ "401": {
80400
+ $ref: "#/components/responses/Unauthorized"
80401
+ },
80402
+ "403": {
80403
+ $ref: "#/components/responses/Forbidden"
80404
+ },
80405
+ "404": {
80406
+ $ref: "#/components/responses/NotFound"
80407
+ }
80408
+ }
80409
+ }
80410
+ },
80411
+ "/v1/thread/steps/{id}/closed": {
80412
+ post: {
80413
+ operationId: "closeThreadStep",
80414
+ "x-audience": "public",
80415
+ "x-required-scopes": [
80416
+ "thread:write"
80417
+ ],
80418
+ summary: "Say that an opened page was closed",
80419
+ description: "Your thread opens a page of Talonic for something only you can do there (signing in at a provider, entering a key, an approval): a `step` event whose `meta.path` is the page and `meta.title` its name. Call this when you are done with that page. Your thread then looks whether what it was for is done and carries on; what it says arrives as events. It counts once per `step` event: a second call starts nothing.\n",
80420
+ tags: [
80421
+ "Thread"
80422
+ ],
80423
+ parameters: [
80424
+ {
80425
+ name: "id",
80426
+ in: "path",
80427
+ required: true,
80428
+ schema: {
80429
+ type: "string",
80430
+ format: "uuid"
80431
+ },
80432
+ description: "The id of the `step` event."
80433
+ }
80434
+ ],
80281
80435
  responses: {
80282
80436
  "202": {
80283
80437
  description: "Accepted.",
@@ -118348,7 +118502,8 @@ var openapi_default = {
118348
118502
  "approval",
118349
118503
  "trigger",
118350
118504
  "page",
118351
- "sheet"
118505
+ "sheet",
118506
+ "step"
118352
118507
  ]
118353
118508
  },
118354
118509
  body: {
@@ -118357,7 +118512,7 @@ var openapi_default = {
118357
118512
  meta: {
118358
118513
  type: "object",
118359
118514
  additionalProperties: true,
118360
- description: "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`."
118515
+ description: "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`. For a `step` (a page of Talonic opened for something only you can do there), `path` and `title`."
118361
118516
  },
118362
118517
  replyTo: {
118363
118518
  type: "string",
@@ -118370,6 +118525,84 @@ var openapi_default = {
118370
118525
  }
118371
118526
  }
118372
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
+ },
118373
118606
  ThreadState: {
118374
118607
  type: "object",
118375
118608
  properties: {
@@ -125191,6 +125424,8 @@ curl https://api.talonic.com/v1/integrations/authorizations/3b1f0c2e-8d4a-4f6b-9
125191
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`."),
125192
125425
  ep("POST", "/v1/sources/:id/imports/:importId/resync", "Read one Teams transcript period again.", "Unchanged content is not processed again. Scope: `documents:write`."),
125193
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`.'),
125194
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`."),
125195
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`."),
125196
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`."),
@@ -133333,6 +133568,14 @@ var sections24 = [
133333
133568
  description: 'Requires thread:write. Body `{ "approved": true }`. The id is `meta.approvalId` of an `approval` event without a draft. It is decided once; a second decision answers 404.',
133334
133569
  blocks: []
133335
133570
  },
133571
+ {
133572
+ type: "endpoint",
133573
+ method: "POST",
133574
+ path: "/v1/thread/steps/:id/closed",
133575
+ summary: "Say that you are done with a page the thread opened for you.",
133576
+ description: "Requires thread:write. A `step` event names a page of Talonic (`meta.path`, `meta.title`) the thread opened for something only you can do there, such as signing in at a provider. Call this with the event id when you are done: the thread looks whether it is done and carries on. It counts once per event.",
133577
+ blocks: []
133578
+ },
133336
133579
  {
133337
133580
  type: "endpoint",
133338
133581
  method: "GET",
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",
@@ -80242,6 +80344,58 @@ var openapi_default = {
80242
80344
  }
80243
80345
  }
80244
80346
  },
80347
+ responses: {
80348
+ "202": {
80349
+ description: "Accepted.",
80350
+ content: {
80351
+ "application/json": {
80352
+ schema: {
80353
+ type: "object",
80354
+ properties: {
80355
+ ok: {
80356
+ type: "boolean"
80357
+ }
80358
+ }
80359
+ }
80360
+ }
80361
+ }
80362
+ },
80363
+ "401": {
80364
+ $ref: "#/components/responses/Unauthorized"
80365
+ },
80366
+ "403": {
80367
+ $ref: "#/components/responses/Forbidden"
80368
+ },
80369
+ "404": {
80370
+ $ref: "#/components/responses/NotFound"
80371
+ }
80372
+ }
80373
+ }
80374
+ },
80375
+ "/v1/thread/steps/{id}/closed": {
80376
+ post: {
80377
+ operationId: "closeThreadStep",
80378
+ "x-audience": "public",
80379
+ "x-required-scopes": [
80380
+ "thread:write"
80381
+ ],
80382
+ summary: "Say that an opened page was closed",
80383
+ description: "Your thread opens a page of Talonic for something only you can do there (signing in at a provider, entering a key, an approval): a `step` event whose `meta.path` is the page and `meta.title` its name. Call this when you are done with that page. Your thread then looks whether what it was for is done and carries on; what it says arrives as events. It counts once per `step` event: a second call starts nothing.\n",
80384
+ tags: [
80385
+ "Thread"
80386
+ ],
80387
+ parameters: [
80388
+ {
80389
+ name: "id",
80390
+ in: "path",
80391
+ required: true,
80392
+ schema: {
80393
+ type: "string",
80394
+ format: "uuid"
80395
+ },
80396
+ description: "The id of the `step` event."
80397
+ }
80398
+ ],
80245
80399
  responses: {
80246
80400
  "202": {
80247
80401
  description: "Accepted.",
@@ -118312,7 +118466,8 @@ var openapi_default = {
118312
118466
  "approval",
118313
118467
  "trigger",
118314
118468
  "page",
118315
- "sheet"
118469
+ "sheet",
118470
+ "step"
118316
118471
  ]
118317
118472
  },
118318
118473
  body: {
@@ -118321,7 +118476,7 @@ var openapi_default = {
118321
118476
  meta: {
118322
118477
  type: "object",
118323
118478
  additionalProperties: true,
118324
- description: "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`."
118479
+ description: "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`. For a `step` (a page of Talonic opened for something only you can do there), `path` and `title`."
118325
118480
  },
118326
118481
  replyTo: {
118327
118482
  type: "string",
@@ -118334,6 +118489,84 @@ var openapi_default = {
118334
118489
  }
118335
118490
  }
118336
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
+ },
118337
118570
  ThreadState: {
118338
118571
  type: "object",
118339
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",
@@ -80086,6 +80188,58 @@
80086
80188
  }
80087
80189
  }
80088
80190
  },
80191
+ "responses": {
80192
+ "202": {
80193
+ "description": "Accepted.",
80194
+ "content": {
80195
+ "application/json": {
80196
+ "schema": {
80197
+ "type": "object",
80198
+ "properties": {
80199
+ "ok": {
80200
+ "type": "boolean"
80201
+ }
80202
+ }
80203
+ }
80204
+ }
80205
+ }
80206
+ },
80207
+ "401": {
80208
+ "$ref": "#/components/responses/Unauthorized"
80209
+ },
80210
+ "403": {
80211
+ "$ref": "#/components/responses/Forbidden"
80212
+ },
80213
+ "404": {
80214
+ "$ref": "#/components/responses/NotFound"
80215
+ }
80216
+ }
80217
+ }
80218
+ },
80219
+ "/v1/thread/steps/{id}/closed": {
80220
+ "post": {
80221
+ "operationId": "closeThreadStep",
80222
+ "x-audience": "public",
80223
+ "x-required-scopes": [
80224
+ "thread:write"
80225
+ ],
80226
+ "summary": "Say that an opened page was closed",
80227
+ "description": "Your thread opens a page of Talonic for something only you can do there (signing in at a provider, entering a key, an approval): a `step` event whose `meta.path` is the page and `meta.title` its name. Call this when you are done with that page. Your thread then looks whether what it was for is done and carries on; what it says arrives as events. It counts once per `step` event: a second call starts nothing.\n",
80228
+ "tags": [
80229
+ "Thread"
80230
+ ],
80231
+ "parameters": [
80232
+ {
80233
+ "name": "id",
80234
+ "in": "path",
80235
+ "required": true,
80236
+ "schema": {
80237
+ "type": "string",
80238
+ "format": "uuid"
80239
+ },
80240
+ "description": "The id of the `step` event."
80241
+ }
80242
+ ],
80089
80243
  "responses": {
80090
80244
  "202": {
80091
80245
  "description": "Accepted.",
@@ -118156,7 +118310,8 @@
118156
118310
  "approval",
118157
118311
  "trigger",
118158
118312
  "page",
118159
- "sheet"
118313
+ "sheet",
118314
+ "step"
118160
118315
  ]
118161
118316
  },
118162
118317
  "body": {
@@ -118165,7 +118320,7 @@
118165
118320
  "meta": {
118166
118321
  "type": "object",
118167
118322
  "additionalProperties": true,
118168
- "description": "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`."
118323
+ "description": "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`. For a `step` (a page of Talonic opened for something only you can do there), `path` and `title`."
118169
118324
  },
118170
118325
  "replyTo": {
118171
118326
  "type": "string",
@@ -118178,6 +118333,84 @@
118178
118333
  }
118179
118334
  }
118180
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
+ },
118181
118414
  "ThreadState": {
118182
118415
  "type": "object",
118183
118416
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.95",
3
+ "version": "0.21.97",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,