@talonic/docs 0.21.94 → 0.21.96

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
@@ -80278,6 +80278,58 @@ var openapi_default = {
80278
80278
  }
80279
80279
  }
80280
80280
  },
80281
+ responses: {
80282
+ "202": {
80283
+ description: "Accepted.",
80284
+ content: {
80285
+ "application/json": {
80286
+ schema: {
80287
+ type: "object",
80288
+ properties: {
80289
+ ok: {
80290
+ type: "boolean"
80291
+ }
80292
+ }
80293
+ }
80294
+ }
80295
+ }
80296
+ },
80297
+ "401": {
80298
+ $ref: "#/components/responses/Unauthorized"
80299
+ },
80300
+ "403": {
80301
+ $ref: "#/components/responses/Forbidden"
80302
+ },
80303
+ "404": {
80304
+ $ref: "#/components/responses/NotFound"
80305
+ }
80306
+ }
80307
+ }
80308
+ },
80309
+ "/v1/thread/steps/{id}/closed": {
80310
+ post: {
80311
+ operationId: "closeThreadStep",
80312
+ "x-audience": "public",
80313
+ "x-required-scopes": [
80314
+ "thread:write"
80315
+ ],
80316
+ summary: "Say that an opened page was closed",
80317
+ 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",
80318
+ tags: [
80319
+ "Thread"
80320
+ ],
80321
+ parameters: [
80322
+ {
80323
+ name: "id",
80324
+ in: "path",
80325
+ required: true,
80326
+ schema: {
80327
+ type: "string",
80328
+ format: "uuid"
80329
+ },
80330
+ description: "The id of the `step` event."
80331
+ }
80332
+ ],
80281
80333
  responses: {
80282
80334
  "202": {
80283
80335
  description: "Accepted.",
@@ -118348,7 +118400,8 @@ var openapi_default = {
118348
118400
  "approval",
118349
118401
  "trigger",
118350
118402
  "page",
118351
- "sheet"
118403
+ "sheet",
118404
+ "step"
118352
118405
  ]
118353
118406
  },
118354
118407
  body: {
@@ -118357,7 +118410,7 @@ var openapi_default = {
118357
118410
  meta: {
118358
118411
  type: "object",
118359
118412
  additionalProperties: true,
118360
- description: "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`."
118413
+ 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
118414
  },
118362
118415
  replyTo: {
118363
118416
  type: "string",
@@ -133333,6 +133386,14 @@ var sections24 = [
133333
133386
  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
133387
  blocks: []
133335
133388
  },
133389
+ {
133390
+ type: "endpoint",
133391
+ method: "POST",
133392
+ path: "/v1/thread/steps/:id/closed",
133393
+ summary: "Say that you are done with a page the thread opened for you.",
133394
+ 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.",
133395
+ blocks: []
133396
+ },
133336
133397
  {
133337
133398
  type: "endpoint",
133338
133399
  method: "GET",
package/dist/seo.js CHANGED
@@ -80242,6 +80242,58 @@ var openapi_default = {
80242
80242
  }
80243
80243
  }
80244
80244
  },
80245
+ responses: {
80246
+ "202": {
80247
+ description: "Accepted.",
80248
+ content: {
80249
+ "application/json": {
80250
+ schema: {
80251
+ type: "object",
80252
+ properties: {
80253
+ ok: {
80254
+ type: "boolean"
80255
+ }
80256
+ }
80257
+ }
80258
+ }
80259
+ }
80260
+ },
80261
+ "401": {
80262
+ $ref: "#/components/responses/Unauthorized"
80263
+ },
80264
+ "403": {
80265
+ $ref: "#/components/responses/Forbidden"
80266
+ },
80267
+ "404": {
80268
+ $ref: "#/components/responses/NotFound"
80269
+ }
80270
+ }
80271
+ }
80272
+ },
80273
+ "/v1/thread/steps/{id}/closed": {
80274
+ post: {
80275
+ operationId: "closeThreadStep",
80276
+ "x-audience": "public",
80277
+ "x-required-scopes": [
80278
+ "thread:write"
80279
+ ],
80280
+ summary: "Say that an opened page was closed",
80281
+ 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",
80282
+ tags: [
80283
+ "Thread"
80284
+ ],
80285
+ parameters: [
80286
+ {
80287
+ name: "id",
80288
+ in: "path",
80289
+ required: true,
80290
+ schema: {
80291
+ type: "string",
80292
+ format: "uuid"
80293
+ },
80294
+ description: "The id of the `step` event."
80295
+ }
80296
+ ],
80245
80297
  responses: {
80246
80298
  "202": {
80247
80299
  description: "Accepted.",
@@ -118312,7 +118364,8 @@ var openapi_default = {
118312
118364
  "approval",
118313
118365
  "trigger",
118314
118366
  "page",
118315
- "sheet"
118367
+ "sheet",
118368
+ "step"
118316
118369
  ]
118317
118370
  },
118318
118371
  body: {
@@ -118321,7 +118374,7 @@ var openapi_default = {
118321
118374
  meta: {
118322
118375
  type: "object",
118323
118376
  additionalProperties: true,
118324
- description: "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`."
118377
+ 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
118378
  },
118326
118379
  replyTo: {
118327
118380
  type: "string",
package/openapi.json CHANGED
@@ -80086,6 +80086,58 @@
80086
80086
  }
80087
80087
  }
80088
80088
  },
80089
+ "responses": {
80090
+ "202": {
80091
+ "description": "Accepted.",
80092
+ "content": {
80093
+ "application/json": {
80094
+ "schema": {
80095
+ "type": "object",
80096
+ "properties": {
80097
+ "ok": {
80098
+ "type": "boolean"
80099
+ }
80100
+ }
80101
+ }
80102
+ }
80103
+ }
80104
+ },
80105
+ "401": {
80106
+ "$ref": "#/components/responses/Unauthorized"
80107
+ },
80108
+ "403": {
80109
+ "$ref": "#/components/responses/Forbidden"
80110
+ },
80111
+ "404": {
80112
+ "$ref": "#/components/responses/NotFound"
80113
+ }
80114
+ }
80115
+ }
80116
+ },
80117
+ "/v1/thread/steps/{id}/closed": {
80118
+ "post": {
80119
+ "operationId": "closeThreadStep",
80120
+ "x-audience": "public",
80121
+ "x-required-scopes": [
80122
+ "thread:write"
80123
+ ],
80124
+ "summary": "Say that an opened page was closed",
80125
+ "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",
80126
+ "tags": [
80127
+ "Thread"
80128
+ ],
80129
+ "parameters": [
80130
+ {
80131
+ "name": "id",
80132
+ "in": "path",
80133
+ "required": true,
80134
+ "schema": {
80135
+ "type": "string",
80136
+ "format": "uuid"
80137
+ },
80138
+ "description": "The id of the `step` event."
80139
+ }
80140
+ ],
80089
80141
  "responses": {
80090
80142
  "202": {
80091
80143
  "description": "Accepted.",
@@ -118156,7 +118208,8 @@
118156
118208
  "approval",
118157
118209
  "trigger",
118158
118210
  "page",
118159
- "sheet"
118211
+ "sheet",
118212
+ "step"
118160
118213
  ]
118161
118214
  },
118162
118215
  "body": {
@@ -118165,7 +118218,7 @@
118165
118218
  "meta": {
118166
118219
  "type": "object",
118167
118220
  "additionalProperties": true,
118168
- "description": "For an `approval` card, `approvalId` and, for a draft, `draftId`, `draftVersion`, `payloadHash`, `draftKind`."
118221
+ "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
118222
  },
118170
118223
  "replyTo": {
118171
118224
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.94",
3
+ "version": "0.21.96",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,