@talonic/docs 0.21.77 → 0.21.79
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 +17 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/seo.js +1348 -2
- package/openapi.json +1348 -2
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/dist/seo.js
CHANGED
|
@@ -222,6 +222,10 @@ var openapi_default = {
|
|
|
222
222
|
name: "Compliance",
|
|
223
223
|
description: "Turns compliance and regulatory frameworks into checkable rules and judges documents against them. A framework is a workspace document; rules are derived from its text, and a person turns the framework ON. Documents and document sets are then evaluated against the rules of the ON frameworks (pass, fail, not applicable or unclear, each with a reason and a quote), and the failed and unclear checks form a worklist. A workspace can switch its decider to `external`, so that every model step is offered as a task to its own agent instead of the platform's model. These endpoints belong to the Compliance app (catalog slug `compliance`); they return 404 in a workspace that has not added the app \u2014 `GET /v1/apps` lists a workspace's apps by slug."
|
|
224
224
|
},
|
|
225
|
+
{
|
|
226
|
+
name: "Processes",
|
|
227
|
+
description: "The Process Plane: processes that govern what happens to documents and items (reading, look-ups, calls, sign-offs, forms, mail, AI steps) and who signs. Not an app: every route needs the key's person to hold a Process Plane permission in the workspace (process_view to read, process_run to start, process_sign to sign), read live on each call."
|
|
228
|
+
},
|
|
225
229
|
{
|
|
226
230
|
name: "Contracts",
|
|
227
231
|
description: "Folds every contract's documents (base contract, amendments, renewals, terminations, price sheets) into one record per contract: the terms in force, the contract's status on the day, the dates that need someone and the processes the contract's data starts for sales, billing, legal, operations and the other departments. Every term cites the document and the verbatim quote it was read from, and counts only when the quote occurs in the document. A person's corrections (document role, exclusion, re-keying, hand-set terms, decisions) persist across re-reads and are audited with the calling key as the actor. These endpoints belong to the Contracts app (catalog slug `contracts`); they return 404 in a workspace that has not added the app \u2014 `GET /v1/apps` lists a workspace's apps by slug."
|
|
@@ -33247,11 +33251,1353 @@ var openapi_default = {
|
|
|
33247
33251
|
}
|
|
33248
33252
|
}
|
|
33249
33253
|
},
|
|
33254
|
+
"/v1/processes": {
|
|
33255
|
+
get: {
|
|
33256
|
+
operationId: "listProcesses",
|
|
33257
|
+
summary: "Processes of the workspace",
|
|
33258
|
+
description: "Every process with its live version, folder, tags, step count and last edit. Needs process_view.",
|
|
33259
|
+
tags: [
|
|
33260
|
+
"Processes"
|
|
33261
|
+
],
|
|
33262
|
+
responses: {
|
|
33263
|
+
"200": {
|
|
33264
|
+
description: "The processes.",
|
|
33265
|
+
content: {
|
|
33266
|
+
"application/json": {
|
|
33267
|
+
schema: {
|
|
33268
|
+
type: "object",
|
|
33269
|
+
properties: {
|
|
33270
|
+
data: {
|
|
33271
|
+
type: "array",
|
|
33272
|
+
items: {
|
|
33273
|
+
type: "object",
|
|
33274
|
+
properties: {
|
|
33275
|
+
id: {
|
|
33276
|
+
type: "string",
|
|
33277
|
+
format: "uuid"
|
|
33278
|
+
},
|
|
33279
|
+
name: {
|
|
33280
|
+
type: "string"
|
|
33281
|
+
},
|
|
33282
|
+
liveVersion: {
|
|
33283
|
+
type: "integer",
|
|
33284
|
+
nullable: true
|
|
33285
|
+
},
|
|
33286
|
+
folder: {
|
|
33287
|
+
type: "string",
|
|
33288
|
+
nullable: true
|
|
33289
|
+
},
|
|
33290
|
+
tags: {
|
|
33291
|
+
type: "array",
|
|
33292
|
+
items: {
|
|
33293
|
+
type: "string"
|
|
33294
|
+
}
|
|
33295
|
+
},
|
|
33296
|
+
steps: {
|
|
33297
|
+
type: "integer"
|
|
33298
|
+
},
|
|
33299
|
+
editedAt: {
|
|
33300
|
+
type: "string",
|
|
33301
|
+
format: "date-time"
|
|
33302
|
+
}
|
|
33303
|
+
}
|
|
33304
|
+
}
|
|
33305
|
+
}
|
|
33306
|
+
}
|
|
33307
|
+
}
|
|
33308
|
+
}
|
|
33309
|
+
}
|
|
33310
|
+
},
|
|
33311
|
+
"403": {
|
|
33312
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33313
|
+
}
|
|
33314
|
+
}
|
|
33315
|
+
},
|
|
33316
|
+
post: {
|
|
33317
|
+
operationId: "createProcess",
|
|
33318
|
+
summary: "A new process draft",
|
|
33319
|
+
description: "Send exactly one of `description` (plain words: what comes in, what is read or checked, who decides, what goes out), `workflow` (an exported n8n workflow) or `draft` with `name` (a process document). The result is a draft: nothing runs and nothing is sent until it is published. `stillOpen` lists what a person still has to choose. Needs process_build and the write scope. `description` costs a model call.",
|
|
33320
|
+
tags: [
|
|
33321
|
+
"Processes"
|
|
33322
|
+
],
|
|
33323
|
+
requestBody: {
|
|
33324
|
+
required: true,
|
|
33325
|
+
content: {
|
|
33326
|
+
"application/json": {
|
|
33327
|
+
schema: {
|
|
33328
|
+
type: "object",
|
|
33329
|
+
properties: {
|
|
33330
|
+
description: {
|
|
33331
|
+
type: "string",
|
|
33332
|
+
minLength: 10,
|
|
33333
|
+
maxLength: 2e3
|
|
33334
|
+
},
|
|
33335
|
+
workflow: {
|
|
33336
|
+
type: "object",
|
|
33337
|
+
additionalProperties: true
|
|
33338
|
+
},
|
|
33339
|
+
name: {
|
|
33340
|
+
type: "string"
|
|
33341
|
+
},
|
|
33342
|
+
draft: {
|
|
33343
|
+
type: "object",
|
|
33344
|
+
additionalProperties: true
|
|
33345
|
+
}
|
|
33346
|
+
}
|
|
33347
|
+
}
|
|
33348
|
+
}
|
|
33349
|
+
}
|
|
33350
|
+
},
|
|
33351
|
+
responses: {
|
|
33352
|
+
"201": {
|
|
33353
|
+
description: "`{ id, name, steps, explanation, questions, stillOpen, notes }`."
|
|
33354
|
+
},
|
|
33355
|
+
"400": {
|
|
33356
|
+
$ref: "#/components/responses/BadRequest"
|
|
33357
|
+
},
|
|
33358
|
+
"403": {
|
|
33359
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33360
|
+
}
|
|
33361
|
+
}
|
|
33362
|
+
}
|
|
33363
|
+
},
|
|
33364
|
+
"/v1/processes/people": {
|
|
33365
|
+
get: {
|
|
33366
|
+
operationId: "listProcessPeople",
|
|
33367
|
+
summary: "Who a step can wait for",
|
|
33368
|
+
description: "The workspace's roles and groups, as a sign-off or form step names them. Needs process_view.",
|
|
33369
|
+
tags: [
|
|
33370
|
+
"Processes"
|
|
33371
|
+
],
|
|
33372
|
+
responses: {
|
|
33373
|
+
"200": {
|
|
33374
|
+
description: "`{ roles, groups }`."
|
|
33375
|
+
},
|
|
33376
|
+
"403": {
|
|
33377
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33378
|
+
}
|
|
33379
|
+
}
|
|
33380
|
+
}
|
|
33381
|
+
},
|
|
33382
|
+
"/v1/processes/mailboxes": {
|
|
33383
|
+
get: {
|
|
33384
|
+
operationId: "listProcessMailboxes",
|
|
33385
|
+
summary: "Mailboxes a process can send from",
|
|
33386
|
+
description: "Connected mailboxes with `canSend`, `ownership` (`individual` or `company`), `mine` and `usable` (whether the key's person may put it on a process). Needs process_view.",
|
|
33387
|
+
tags: [
|
|
33388
|
+
"Processes"
|
|
33389
|
+
],
|
|
33390
|
+
responses: {
|
|
33391
|
+
"200": {
|
|
33392
|
+
description: "`{ data: [{ id, name, type, canSend, ownership, mine, usable }] }`."
|
|
33393
|
+
},
|
|
33394
|
+
"403": {
|
|
33395
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33396
|
+
}
|
|
33397
|
+
}
|
|
33398
|
+
}
|
|
33399
|
+
},
|
|
33400
|
+
"/v1/processes/mailboxes/{mailboxId}/ownership": {
|
|
33401
|
+
put: {
|
|
33402
|
+
operationId: "setProcessMailboxOwnership",
|
|
33403
|
+
summary: "Say whose a mailbox is",
|
|
33404
|
+
description: "A company mailbox can be used by everyone who builds processes; one person's own only by that person. Needs process_govern and the write scope.",
|
|
33405
|
+
tags: [
|
|
33406
|
+
"Processes"
|
|
33407
|
+
],
|
|
33408
|
+
parameters: [
|
|
33409
|
+
{
|
|
33410
|
+
name: "mailboxId",
|
|
33411
|
+
in: "path",
|
|
33412
|
+
required: true,
|
|
33413
|
+
schema: {
|
|
33414
|
+
type: "string",
|
|
33415
|
+
format: "uuid"
|
|
33416
|
+
}
|
|
33417
|
+
}
|
|
33418
|
+
],
|
|
33419
|
+
requestBody: {
|
|
33420
|
+
required: true,
|
|
33421
|
+
content: {
|
|
33422
|
+
"application/json": {
|
|
33423
|
+
schema: {
|
|
33424
|
+
type: "object",
|
|
33425
|
+
required: [
|
|
33426
|
+
"ownership"
|
|
33427
|
+
],
|
|
33428
|
+
properties: {
|
|
33429
|
+
ownership: {
|
|
33430
|
+
type: "string",
|
|
33431
|
+
enum: [
|
|
33432
|
+
"individual",
|
|
33433
|
+
"company"
|
|
33434
|
+
]
|
|
33435
|
+
}
|
|
33436
|
+
}
|
|
33437
|
+
}
|
|
33438
|
+
}
|
|
33439
|
+
}
|
|
33440
|
+
},
|
|
33441
|
+
responses: {
|
|
33442
|
+
"200": {
|
|
33443
|
+
description: "`{ id, ownership }`."
|
|
33444
|
+
},
|
|
33445
|
+
"403": {
|
|
33446
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33447
|
+
},
|
|
33448
|
+
"404": {
|
|
33449
|
+
$ref: "#/components/responses/NotFound"
|
|
33450
|
+
}
|
|
33451
|
+
}
|
|
33452
|
+
}
|
|
33453
|
+
},
|
|
33454
|
+
"/v1/processes/secrets": {
|
|
33455
|
+
get: {
|
|
33456
|
+
operationId: "listProcessSecrets",
|
|
33457
|
+
summary: "Names of the workspace's secrets",
|
|
33458
|
+
description: "Names only; a value is never returned. Needs process_view.",
|
|
33459
|
+
tags: [
|
|
33460
|
+
"Processes"
|
|
33461
|
+
],
|
|
33462
|
+
responses: {
|
|
33463
|
+
"200": {
|
|
33464
|
+
description: "`{ data: [name] }`."
|
|
33465
|
+
},
|
|
33466
|
+
"403": {
|
|
33467
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33468
|
+
}
|
|
33469
|
+
}
|
|
33470
|
+
}
|
|
33471
|
+
},
|
|
33472
|
+
"/v1/processes/secrets/{name}": {
|
|
33473
|
+
put: {
|
|
33474
|
+
operationId: "setProcessSecret",
|
|
33475
|
+
summary: "Store a secret",
|
|
33476
|
+
description: "A value a step sends to another system (a header, a signature). Needs process_govern and the write scope.",
|
|
33477
|
+
tags: [
|
|
33478
|
+
"Processes"
|
|
33479
|
+
],
|
|
33480
|
+
parameters: [
|
|
33481
|
+
{
|
|
33482
|
+
name: "name",
|
|
33483
|
+
in: "path",
|
|
33484
|
+
required: true,
|
|
33485
|
+
schema: {
|
|
33486
|
+
type: "string",
|
|
33487
|
+
pattern: "^[A-Za-z0-9_-]{1,60}$"
|
|
33488
|
+
}
|
|
33489
|
+
}
|
|
33490
|
+
],
|
|
33491
|
+
requestBody: {
|
|
33492
|
+
required: true,
|
|
33493
|
+
content: {
|
|
33494
|
+
"application/json": {
|
|
33495
|
+
schema: {
|
|
33496
|
+
type: "object",
|
|
33497
|
+
required: [
|
|
33498
|
+
"value"
|
|
33499
|
+
],
|
|
33500
|
+
properties: {
|
|
33501
|
+
value: {
|
|
33502
|
+
type: "string",
|
|
33503
|
+
maxLength: 4e3
|
|
33504
|
+
}
|
|
33505
|
+
}
|
|
33506
|
+
}
|
|
33507
|
+
}
|
|
33508
|
+
}
|
|
33509
|
+
},
|
|
33510
|
+
responses: {
|
|
33511
|
+
"200": {
|
|
33512
|
+
description: "Stored."
|
|
33513
|
+
},
|
|
33514
|
+
"403": {
|
|
33515
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33516
|
+
}
|
|
33517
|
+
}
|
|
33518
|
+
},
|
|
33519
|
+
delete: {
|
|
33520
|
+
operationId: "deleteProcessSecret",
|
|
33521
|
+
summary: "Remove a secret",
|
|
33522
|
+
description: "Needs process_govern and the write scope.",
|
|
33523
|
+
tags: [
|
|
33524
|
+
"Processes"
|
|
33525
|
+
],
|
|
33526
|
+
parameters: [
|
|
33527
|
+
{
|
|
33528
|
+
name: "name",
|
|
33529
|
+
in: "path",
|
|
33530
|
+
required: true,
|
|
33531
|
+
schema: {
|
|
33532
|
+
type: "string",
|
|
33533
|
+
pattern: "^[A-Za-z0-9_-]{1,60}$"
|
|
33534
|
+
}
|
|
33535
|
+
}
|
|
33536
|
+
],
|
|
33537
|
+
responses: {
|
|
33538
|
+
"200": {
|
|
33539
|
+
description: "Removed."
|
|
33540
|
+
},
|
|
33541
|
+
"403": {
|
|
33542
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33543
|
+
}
|
|
33544
|
+
}
|
|
33545
|
+
}
|
|
33546
|
+
},
|
|
33547
|
+
"/v1/processes/lookup-data": {
|
|
33548
|
+
get: {
|
|
33549
|
+
operationId: "listProcessLookupData",
|
|
33550
|
+
summary: "Data a look-up step can read",
|
|
33551
|
+
description: "The shared data of the workspace with its fields, row count and whether it is ready. Needs process_view.",
|
|
33552
|
+
tags: [
|
|
33553
|
+
"Processes"
|
|
33554
|
+
],
|
|
33555
|
+
responses: {
|
|
33556
|
+
"200": {
|
|
33557
|
+
description: "`{ state, indexes: [{ name, fields, rows, ready }] }`."
|
|
33558
|
+
},
|
|
33559
|
+
"403": {
|
|
33560
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33561
|
+
}
|
|
33562
|
+
}
|
|
33563
|
+
}
|
|
33564
|
+
},
|
|
33565
|
+
"/v1/processes/runs/{runId}/retry": {
|
|
33566
|
+
post: {
|
|
33567
|
+
operationId: "retryProcessRun",
|
|
33568
|
+
summary: "Try the failed steps of a run again",
|
|
33569
|
+
description: "Needs process_run and the write scope.",
|
|
33570
|
+
tags: [
|
|
33571
|
+
"Processes"
|
|
33572
|
+
],
|
|
33573
|
+
parameters: [
|
|
33574
|
+
{
|
|
33575
|
+
name: "runId",
|
|
33576
|
+
in: "path",
|
|
33577
|
+
required: true,
|
|
33578
|
+
schema: {
|
|
33579
|
+
type: "string",
|
|
33580
|
+
format: "uuid"
|
|
33581
|
+
}
|
|
33582
|
+
}
|
|
33583
|
+
],
|
|
33584
|
+
responses: {
|
|
33585
|
+
"201": {
|
|
33586
|
+
description: "`{ retried }`."
|
|
33587
|
+
},
|
|
33588
|
+
"403": {
|
|
33589
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33590
|
+
},
|
|
33591
|
+
"404": {
|
|
33592
|
+
$ref: "#/components/responses/NotFound"
|
|
33593
|
+
}
|
|
33594
|
+
}
|
|
33595
|
+
}
|
|
33596
|
+
},
|
|
33597
|
+
"/v1/processes/runs": {
|
|
33598
|
+
get: {
|
|
33599
|
+
operationId: "listProcessRuns",
|
|
33600
|
+
summary: "Runs across processes",
|
|
33601
|
+
description: "Newest first, 50 a page, with item counts by state. `stuck` is an open run with a failed item. Needs process_view.",
|
|
33602
|
+
tags: [
|
|
33603
|
+
"Processes"
|
|
33604
|
+
],
|
|
33605
|
+
parameters: [
|
|
33606
|
+
{
|
|
33607
|
+
name: "state",
|
|
33608
|
+
in: "query",
|
|
33609
|
+
schema: {
|
|
33610
|
+
type: "string",
|
|
33611
|
+
enum: [
|
|
33612
|
+
"running",
|
|
33613
|
+
"completed",
|
|
33614
|
+
"failed",
|
|
33615
|
+
"stuck"
|
|
33616
|
+
]
|
|
33617
|
+
}
|
|
33618
|
+
},
|
|
33619
|
+
{
|
|
33620
|
+
name: "process",
|
|
33621
|
+
in: "query",
|
|
33622
|
+
schema: {
|
|
33623
|
+
type: "string",
|
|
33624
|
+
format: "uuid"
|
|
33625
|
+
}
|
|
33626
|
+
},
|
|
33627
|
+
{
|
|
33628
|
+
name: "waitingForMe",
|
|
33629
|
+
in: "query",
|
|
33630
|
+
schema: {
|
|
33631
|
+
type: "string",
|
|
33632
|
+
enum: [
|
|
33633
|
+
"0",
|
|
33634
|
+
"1"
|
|
33635
|
+
]
|
|
33636
|
+
},
|
|
33637
|
+
description: "Only runs with a sign-off or form waiting for the key's person."
|
|
33638
|
+
},
|
|
33639
|
+
{
|
|
33640
|
+
name: "page",
|
|
33641
|
+
in: "query",
|
|
33642
|
+
schema: {
|
|
33643
|
+
type: "integer",
|
|
33644
|
+
minimum: 0
|
|
33645
|
+
}
|
|
33646
|
+
}
|
|
33647
|
+
],
|
|
33648
|
+
responses: {
|
|
33649
|
+
"200": {
|
|
33650
|
+
description: "`{ runs, page, more }`."
|
|
33651
|
+
},
|
|
33652
|
+
"403": {
|
|
33653
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33654
|
+
}
|
|
33655
|
+
}
|
|
33656
|
+
}
|
|
33657
|
+
},
|
|
33658
|
+
"/v1/processes/waiting": {
|
|
33659
|
+
get: {
|
|
33660
|
+
operationId: "listProcessWaiting",
|
|
33661
|
+
summary: "Sign-offs and forms waiting for the key's person",
|
|
33662
|
+
description: "Per process and step, how many items wait for the person behind the key. Needs process_sign.",
|
|
33663
|
+
tags: [
|
|
33664
|
+
"Processes"
|
|
33665
|
+
],
|
|
33666
|
+
responses: {
|
|
33667
|
+
"200": {
|
|
33668
|
+
description: "`{ data: [{ processId, process, stepId, step, waiting }] }`."
|
|
33669
|
+
},
|
|
33670
|
+
"403": {
|
|
33671
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33672
|
+
}
|
|
33673
|
+
}
|
|
33674
|
+
}
|
|
33675
|
+
},
|
|
33676
|
+
"/v1/processes/{id}": {
|
|
33677
|
+
get: {
|
|
33678
|
+
operationId: "getProcess",
|
|
33679
|
+
summary: "One process with its draft",
|
|
33680
|
+
tags: [
|
|
33681
|
+
"Processes"
|
|
33682
|
+
],
|
|
33683
|
+
parameters: [
|
|
33684
|
+
{
|
|
33685
|
+
name: "id",
|
|
33686
|
+
in: "path",
|
|
33687
|
+
required: true,
|
|
33688
|
+
schema: {
|
|
33689
|
+
type: "string",
|
|
33690
|
+
format: "uuid"
|
|
33691
|
+
}
|
|
33692
|
+
}
|
|
33693
|
+
],
|
|
33694
|
+
responses: {
|
|
33695
|
+
"200": {
|
|
33696
|
+
description: "The process."
|
|
33697
|
+
},
|
|
33698
|
+
"403": {
|
|
33699
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33700
|
+
},
|
|
33701
|
+
"404": {
|
|
33702
|
+
$ref: "#/components/responses/NotFound"
|
|
33703
|
+
}
|
|
33704
|
+
}
|
|
33705
|
+
},
|
|
33706
|
+
delete: {
|
|
33707
|
+
operationId: "deleteProcess",
|
|
33708
|
+
summary: "Delete a process",
|
|
33709
|
+
description: "Not while a run is open. Needs process_publish and the write scope.",
|
|
33710
|
+
tags: [
|
|
33711
|
+
"Processes"
|
|
33712
|
+
],
|
|
33713
|
+
parameters: [
|
|
33714
|
+
{
|
|
33715
|
+
name: "id",
|
|
33716
|
+
in: "path",
|
|
33717
|
+
required: true,
|
|
33718
|
+
schema: {
|
|
33719
|
+
type: "string",
|
|
33720
|
+
format: "uuid"
|
|
33721
|
+
}
|
|
33722
|
+
}
|
|
33723
|
+
],
|
|
33724
|
+
responses: {
|
|
33725
|
+
"200": {
|
|
33726
|
+
description: "Deleted."
|
|
33727
|
+
},
|
|
33728
|
+
"403": {
|
|
33729
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33730
|
+
},
|
|
33731
|
+
"404": {
|
|
33732
|
+
$ref: "#/components/responses/NotFound"
|
|
33733
|
+
}
|
|
33734
|
+
}
|
|
33735
|
+
}
|
|
33736
|
+
},
|
|
33737
|
+
"/v1/processes/{id}/check": {
|
|
33738
|
+
get: {
|
|
33739
|
+
operationId: "checkProcessDraft",
|
|
33740
|
+
summary: "What the draft still needs",
|
|
33741
|
+
description: "`canPublish`, `stillNeeded` (settings a person has to choose, with step and message) and every problem the check finds. Needs process_view.",
|
|
33742
|
+
tags: [
|
|
33743
|
+
"Processes"
|
|
33744
|
+
],
|
|
33745
|
+
parameters: [
|
|
33746
|
+
{
|
|
33747
|
+
name: "id",
|
|
33748
|
+
in: "path",
|
|
33749
|
+
required: true,
|
|
33750
|
+
schema: {
|
|
33751
|
+
type: "string",
|
|
33752
|
+
format: "uuid"
|
|
33753
|
+
}
|
|
33754
|
+
}
|
|
33755
|
+
],
|
|
33756
|
+
responses: {
|
|
33757
|
+
"200": {
|
|
33758
|
+
description: "`{ canPublish, stillNeeded: [{ stepId, key, message }], problems }`."
|
|
33759
|
+
},
|
|
33760
|
+
"403": {
|
|
33761
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33762
|
+
},
|
|
33763
|
+
"404": {
|
|
33764
|
+
$ref: "#/components/responses/NotFound"
|
|
33765
|
+
}
|
|
33766
|
+
}
|
|
33767
|
+
}
|
|
33768
|
+
},
|
|
33769
|
+
"/v1/processes/{id}/changes": {
|
|
33770
|
+
get: {
|
|
33771
|
+
operationId: "listProcessDraftChanges",
|
|
33772
|
+
summary: "What publishing would change",
|
|
33773
|
+
description: "The draft against the live version, one line per change. Needs process_view.",
|
|
33774
|
+
tags: [
|
|
33775
|
+
"Processes"
|
|
33776
|
+
],
|
|
33777
|
+
parameters: [
|
|
33778
|
+
{
|
|
33779
|
+
name: "id",
|
|
33780
|
+
in: "path",
|
|
33781
|
+
required: true,
|
|
33782
|
+
schema: {
|
|
33783
|
+
type: "string",
|
|
33784
|
+
format: "uuid"
|
|
33785
|
+
}
|
|
33786
|
+
}
|
|
33787
|
+
],
|
|
33788
|
+
responses: {
|
|
33789
|
+
"200": {
|
|
33790
|
+
description: "`{ changes: [{ type, stepId, text }] }`."
|
|
33791
|
+
},
|
|
33792
|
+
"403": {
|
|
33793
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33794
|
+
},
|
|
33795
|
+
"404": {
|
|
33796
|
+
$ref: "#/components/responses/NotFound"
|
|
33797
|
+
}
|
|
33798
|
+
}
|
|
33799
|
+
}
|
|
33800
|
+
},
|
|
33801
|
+
"/v1/processes/{id}/versions": {
|
|
33802
|
+
get: {
|
|
33803
|
+
operationId: "listProcessVersions",
|
|
33804
|
+
summary: "Published versions",
|
|
33805
|
+
description: "Needs process_view.",
|
|
33806
|
+
tags: [
|
|
33807
|
+
"Processes"
|
|
33808
|
+
],
|
|
33809
|
+
parameters: [
|
|
33810
|
+
{
|
|
33811
|
+
name: "id",
|
|
33812
|
+
in: "path",
|
|
33813
|
+
required: true,
|
|
33814
|
+
schema: {
|
|
33815
|
+
type: "string",
|
|
33816
|
+
format: "uuid"
|
|
33817
|
+
}
|
|
33818
|
+
}
|
|
33819
|
+
],
|
|
33820
|
+
responses: {
|
|
33821
|
+
"200": {
|
|
33822
|
+
description: "The versions",
|
|
33823
|
+
"newest first.": null
|
|
33824
|
+
},
|
|
33825
|
+
"403": {
|
|
33826
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33827
|
+
},
|
|
33828
|
+
"404": {
|
|
33829
|
+
$ref: "#/components/responses/NotFound"
|
|
33830
|
+
}
|
|
33831
|
+
}
|
|
33832
|
+
}
|
|
33833
|
+
},
|
|
33834
|
+
"/v1/processes/{id}/versions/{n}/rollback": {
|
|
33835
|
+
post: {
|
|
33836
|
+
operationId: "rollbackProcess",
|
|
33837
|
+
summary: "Make an earlier version live again",
|
|
33838
|
+
description: "Needs process_publish and the write scope.",
|
|
33839
|
+
tags: [
|
|
33840
|
+
"Processes"
|
|
33841
|
+
],
|
|
33842
|
+
parameters: [
|
|
33843
|
+
{
|
|
33844
|
+
name: "id",
|
|
33845
|
+
in: "path",
|
|
33846
|
+
required: true,
|
|
33847
|
+
schema: {
|
|
33848
|
+
type: "string",
|
|
33849
|
+
format: "uuid"
|
|
33850
|
+
}
|
|
33851
|
+
},
|
|
33852
|
+
{
|
|
33853
|
+
name: "n",
|
|
33854
|
+
in: "path",
|
|
33855
|
+
required: true,
|
|
33856
|
+
schema: {
|
|
33857
|
+
type: "integer",
|
|
33858
|
+
minimum: 1
|
|
33859
|
+
}
|
|
33860
|
+
}
|
|
33861
|
+
],
|
|
33862
|
+
responses: {
|
|
33863
|
+
"201": {
|
|
33864
|
+
description: "The version now live."
|
|
33865
|
+
},
|
|
33866
|
+
"403": {
|
|
33867
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33868
|
+
},
|
|
33869
|
+
"404": {
|
|
33870
|
+
$ref: "#/components/responses/NotFound"
|
|
33871
|
+
}
|
|
33872
|
+
}
|
|
33873
|
+
}
|
|
33874
|
+
},
|
|
33875
|
+
"/v1/processes/{id}/change": {
|
|
33876
|
+
post: {
|
|
33877
|
+
operationId: "changeProcessDraft",
|
|
33878
|
+
summary: "Change the draft from an instruction",
|
|
33879
|
+
description: "Plain words: add, remove or reorder steps, change who decides, what is sent, any setting. With `stepId` only that step's settings change. Touches the draft only. A change that reduces governance (a sign-off, review or checks step removed, a signer dropped, fewer items reaching a person, an agent step acting on its own) is not saved without `confirmed: true`: the answer is `{ status: needs_confirmation, reductions }`. Send `confirmed` only after a person has read those points and agreed. Needs process_build and the write scope. Costs a model call.",
|
|
33880
|
+
tags: [
|
|
33881
|
+
"Processes"
|
|
33882
|
+
],
|
|
33883
|
+
parameters: [
|
|
33884
|
+
{
|
|
33885
|
+
name: "id",
|
|
33886
|
+
in: "path",
|
|
33887
|
+
required: true,
|
|
33888
|
+
schema: {
|
|
33889
|
+
type: "string",
|
|
33890
|
+
format: "uuid"
|
|
33891
|
+
}
|
|
33892
|
+
}
|
|
33893
|
+
],
|
|
33894
|
+
requestBody: {
|
|
33895
|
+
required: true,
|
|
33896
|
+
content: {
|
|
33897
|
+
"application/json": {
|
|
33898
|
+
schema: {
|
|
33899
|
+
type: "object",
|
|
33900
|
+
required: [
|
|
33901
|
+
"change"
|
|
33902
|
+
],
|
|
33903
|
+
properties: {
|
|
33904
|
+
change: {
|
|
33905
|
+
type: "string",
|
|
33906
|
+
maxLength: 2e3
|
|
33907
|
+
},
|
|
33908
|
+
stepId: {
|
|
33909
|
+
type: "string"
|
|
33910
|
+
},
|
|
33911
|
+
confirmed: {
|
|
33912
|
+
type: "boolean"
|
|
33913
|
+
}
|
|
33914
|
+
}
|
|
33915
|
+
}
|
|
33916
|
+
}
|
|
33917
|
+
}
|
|
33918
|
+
},
|
|
33919
|
+
responses: {
|
|
33920
|
+
"201": {
|
|
33921
|
+
description: "`{ status: changed, explanation, changes, questions, stillOpen }`, `{ status: needs_confirmation, reductions }` or `{ status: refused, why }`."
|
|
33922
|
+
},
|
|
33923
|
+
"403": {
|
|
33924
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33925
|
+
},
|
|
33926
|
+
"404": {
|
|
33927
|
+
$ref: "#/components/responses/NotFound"
|
|
33928
|
+
}
|
|
33929
|
+
}
|
|
33930
|
+
}
|
|
33931
|
+
},
|
|
33932
|
+
"/v1/processes/{id}/draft": {
|
|
33933
|
+
put: {
|
|
33934
|
+
operationId: "replaceProcessDraft",
|
|
33935
|
+
summary: "Replace the draft with a process document",
|
|
33936
|
+
description: "`expectedUpdatedAt` is the `editedAt` of the draft this one was made from; a save over a newer draft is refused. A change that reduces governance (a sign-off, review or checks step removed, a signer dropped, fewer items reaching a person, an agent step acting on its own) is not saved without `confirmed: true`: the answer is `{ status: needs_confirmation, reductions }`. Send `confirmed` only after a person has read those points and agreed. Needs process_build and the write scope.",
|
|
33937
|
+
tags: [
|
|
33938
|
+
"Processes"
|
|
33939
|
+
],
|
|
33940
|
+
parameters: [
|
|
33941
|
+
{
|
|
33942
|
+
name: "id",
|
|
33943
|
+
in: "path",
|
|
33944
|
+
required: true,
|
|
33945
|
+
schema: {
|
|
33946
|
+
type: "string",
|
|
33947
|
+
format: "uuid"
|
|
33948
|
+
}
|
|
33949
|
+
}
|
|
33950
|
+
],
|
|
33951
|
+
requestBody: {
|
|
33952
|
+
required: true,
|
|
33953
|
+
content: {
|
|
33954
|
+
"application/json": {
|
|
33955
|
+
schema: {
|
|
33956
|
+
type: "object",
|
|
33957
|
+
required: [
|
|
33958
|
+
"draft",
|
|
33959
|
+
"expectedUpdatedAt"
|
|
33960
|
+
],
|
|
33961
|
+
properties: {
|
|
33962
|
+
draft: {
|
|
33963
|
+
type: "object",
|
|
33964
|
+
additionalProperties: true
|
|
33965
|
+
},
|
|
33966
|
+
expectedUpdatedAt: {
|
|
33967
|
+
type: "string",
|
|
33968
|
+
format: "date-time"
|
|
33969
|
+
},
|
|
33970
|
+
confirmed: {
|
|
33971
|
+
type: "boolean"
|
|
33972
|
+
}
|
|
33973
|
+
}
|
|
33974
|
+
}
|
|
33975
|
+
}
|
|
33976
|
+
}
|
|
33977
|
+
},
|
|
33978
|
+
responses: {
|
|
33979
|
+
"200": {
|
|
33980
|
+
description: "`{ status: changed, editedAt, stillOpen }` or `{ status: needs_confirmation, reductions }`."
|
|
33981
|
+
},
|
|
33982
|
+
"403": {
|
|
33983
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33984
|
+
},
|
|
33985
|
+
"404": {
|
|
33986
|
+
$ref: "#/components/responses/NotFound"
|
|
33987
|
+
},
|
|
33988
|
+
"409": {
|
|
33989
|
+
description: "The draft was changed by someone else in the meantime."
|
|
33990
|
+
}
|
|
33991
|
+
}
|
|
33992
|
+
}
|
|
33993
|
+
},
|
|
33994
|
+
"/v1/processes/{id}/publish": {
|
|
33995
|
+
post: {
|
|
33996
|
+
operationId: "publishProcess",
|
|
33997
|
+
summary: "Make the draft the live version",
|
|
33998
|
+
description: "Refused while `check` finds an error. From then on the process runs for real: it starts on what its start step says, sends its mail and calls its systems. Needs process_publish and the write scope.",
|
|
33999
|
+
tags: [
|
|
34000
|
+
"Processes"
|
|
34001
|
+
],
|
|
34002
|
+
parameters: [
|
|
34003
|
+
{
|
|
34004
|
+
name: "id",
|
|
34005
|
+
in: "path",
|
|
34006
|
+
required: true,
|
|
34007
|
+
schema: {
|
|
34008
|
+
type: "string",
|
|
34009
|
+
format: "uuid"
|
|
34010
|
+
}
|
|
34011
|
+
}
|
|
34012
|
+
],
|
|
34013
|
+
requestBody: {
|
|
34014
|
+
required: true,
|
|
34015
|
+
content: {
|
|
34016
|
+
"application/json": {
|
|
34017
|
+
schema: {
|
|
34018
|
+
type: "object",
|
|
34019
|
+
properties: {
|
|
34020
|
+
reason: {
|
|
34021
|
+
type: "string",
|
|
34022
|
+
maxLength: 2e3
|
|
34023
|
+
}
|
|
34024
|
+
}
|
|
34025
|
+
}
|
|
34026
|
+
}
|
|
34027
|
+
}
|
|
34028
|
+
},
|
|
34029
|
+
responses: {
|
|
34030
|
+
"201": {
|
|
34031
|
+
description: "`{ version, changed }`."
|
|
34032
|
+
},
|
|
34033
|
+
"400": {
|
|
34034
|
+
description: "The draft still needs something; the answer lists it."
|
|
34035
|
+
},
|
|
34036
|
+
"403": {
|
|
34037
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34038
|
+
},
|
|
34039
|
+
"404": {
|
|
34040
|
+
$ref: "#/components/responses/NotFound"
|
|
34041
|
+
}
|
|
34042
|
+
}
|
|
34043
|
+
}
|
|
34044
|
+
},
|
|
34045
|
+
"/v1/processes/{id}/test-run": {
|
|
34046
|
+
post: {
|
|
34047
|
+
operationId: "testRunProcess",
|
|
34048
|
+
summary: "Run the draft on documents, sending nothing",
|
|
34049
|
+
description: "Runs in a test copy: nothing is delivered, emailed or called. Steps that are not set up yet end the test (`endsAt`). Needs process_run and the write scope.",
|
|
34050
|
+
tags: [
|
|
34051
|
+
"Processes"
|
|
34052
|
+
],
|
|
34053
|
+
parameters: [
|
|
34054
|
+
{
|
|
34055
|
+
name: "id",
|
|
34056
|
+
in: "path",
|
|
34057
|
+
required: true,
|
|
34058
|
+
schema: {
|
|
34059
|
+
type: "string",
|
|
34060
|
+
format: "uuid"
|
|
34061
|
+
}
|
|
34062
|
+
}
|
|
34063
|
+
],
|
|
34064
|
+
requestBody: {
|
|
34065
|
+
required: true,
|
|
34066
|
+
content: {
|
|
34067
|
+
"application/json": {
|
|
34068
|
+
schema: {
|
|
34069
|
+
type: "object",
|
|
34070
|
+
required: [
|
|
34071
|
+
"documentIds"
|
|
34072
|
+
],
|
|
34073
|
+
properties: {
|
|
34074
|
+
documentIds: {
|
|
34075
|
+
type: "array",
|
|
34076
|
+
items: {
|
|
34077
|
+
type: "string",
|
|
34078
|
+
format: "uuid"
|
|
34079
|
+
}
|
|
34080
|
+
}
|
|
34081
|
+
}
|
|
34082
|
+
}
|
|
34083
|
+
}
|
|
34084
|
+
}
|
|
34085
|
+
},
|
|
34086
|
+
responses: {
|
|
34087
|
+
"201": {
|
|
34088
|
+
description: "`{ processId, endsAt, runId }`; follow it with `GET /v1/processes/{processId}/status`."
|
|
34089
|
+
},
|
|
34090
|
+
"403": {
|
|
34091
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34092
|
+
},
|
|
34093
|
+
"404": {
|
|
34094
|
+
$ref: "#/components/responses/NotFound"
|
|
34095
|
+
}
|
|
34096
|
+
}
|
|
34097
|
+
}
|
|
34098
|
+
},
|
|
34099
|
+
"/v1/processes/{id}/address": {
|
|
34100
|
+
get: {
|
|
34101
|
+
operationId: "getProcessAddress",
|
|
34102
|
+
summary: "Whether other systems can send items to the process",
|
|
34103
|
+
description: "Never the address itself: it is shown once, when it is made. Needs process_view.",
|
|
34104
|
+
tags: [
|
|
34105
|
+
"Processes"
|
|
34106
|
+
],
|
|
34107
|
+
parameters: [
|
|
34108
|
+
{
|
|
34109
|
+
name: "id",
|
|
34110
|
+
in: "path",
|
|
34111
|
+
required: true,
|
|
34112
|
+
schema: {
|
|
34113
|
+
type: "string",
|
|
34114
|
+
format: "uuid"
|
|
34115
|
+
}
|
|
34116
|
+
}
|
|
34117
|
+
],
|
|
34118
|
+
responses: {
|
|
34119
|
+
"200": {
|
|
34120
|
+
description: "`{ exists, createdAt, signedWith, test: { exists, createdAt } }`."
|
|
34121
|
+
},
|
|
34122
|
+
"403": {
|
|
34123
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34124
|
+
},
|
|
34125
|
+
"404": {
|
|
34126
|
+
$ref: "#/components/responses/NotFound"
|
|
34127
|
+
}
|
|
34128
|
+
}
|
|
34129
|
+
},
|
|
34130
|
+
put: {
|
|
34131
|
+
operationId: "makeProcessAddress",
|
|
34132
|
+
summary: "Make the address other systems send items to",
|
|
34133
|
+
description: "The token is in the answer once; items are posted to `/process-hooks/{token}`. An address that exists is replaced only with `replace: true`: the old one stops working at once. `test: true` makes the address of the test copy. Needs process_govern and the write scope.",
|
|
34134
|
+
tags: [
|
|
34135
|
+
"Processes"
|
|
34136
|
+
],
|
|
34137
|
+
parameters: [
|
|
34138
|
+
{
|
|
34139
|
+
name: "id",
|
|
34140
|
+
in: "path",
|
|
34141
|
+
required: true,
|
|
34142
|
+
schema: {
|
|
34143
|
+
type: "string",
|
|
34144
|
+
format: "uuid"
|
|
34145
|
+
}
|
|
34146
|
+
}
|
|
34147
|
+
],
|
|
34148
|
+
requestBody: {
|
|
34149
|
+
required: true,
|
|
34150
|
+
content: {
|
|
34151
|
+
"application/json": {
|
|
34152
|
+
schema: {
|
|
34153
|
+
type: "object",
|
|
34154
|
+
properties: {
|
|
34155
|
+
test: {
|
|
34156
|
+
type: "boolean"
|
|
34157
|
+
},
|
|
34158
|
+
replace: {
|
|
34159
|
+
type: "boolean"
|
|
34160
|
+
}
|
|
34161
|
+
}
|
|
34162
|
+
}
|
|
34163
|
+
}
|
|
34164
|
+
}
|
|
34165
|
+
},
|
|
34166
|
+
responses: {
|
|
34167
|
+
"200": {
|
|
34168
|
+
description: "`{ token, path }`."
|
|
34169
|
+
},
|
|
34170
|
+
"403": {
|
|
34171
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34172
|
+
},
|
|
34173
|
+
"404": {
|
|
34174
|
+
$ref: "#/components/responses/NotFound"
|
|
34175
|
+
},
|
|
34176
|
+
"409": {
|
|
34177
|
+
description: "The address exists and `replace` was not sent."
|
|
34178
|
+
}
|
|
34179
|
+
}
|
|
34180
|
+
}
|
|
34181
|
+
},
|
|
34182
|
+
"/v1/processes/{id}/address/signing": {
|
|
34183
|
+
put: {
|
|
34184
|
+
operationId: "setProcessAddressSigning",
|
|
34185
|
+
summary: "Require a signature on the address",
|
|
34186
|
+
description: "Calls must then carry `X-Signature: sha256=<HMAC of the body with the named secret>`. `secretName: null` stops requiring it. Needs process_govern and the write scope.",
|
|
34187
|
+
tags: [
|
|
34188
|
+
"Processes"
|
|
34189
|
+
],
|
|
34190
|
+
parameters: [
|
|
34191
|
+
{
|
|
34192
|
+
name: "id",
|
|
34193
|
+
in: "path",
|
|
34194
|
+
required: true,
|
|
34195
|
+
schema: {
|
|
34196
|
+
type: "string",
|
|
34197
|
+
format: "uuid"
|
|
34198
|
+
}
|
|
34199
|
+
}
|
|
34200
|
+
],
|
|
34201
|
+
requestBody: {
|
|
34202
|
+
required: true,
|
|
34203
|
+
content: {
|
|
34204
|
+
"application/json": {
|
|
34205
|
+
schema: {
|
|
34206
|
+
type: "object",
|
|
34207
|
+
required: [
|
|
34208
|
+
"secretName"
|
|
34209
|
+
],
|
|
34210
|
+
properties: {
|
|
34211
|
+
secretName: {
|
|
34212
|
+
type: "string",
|
|
34213
|
+
nullable: true
|
|
34214
|
+
}
|
|
34215
|
+
}
|
|
34216
|
+
}
|
|
34217
|
+
}
|
|
34218
|
+
}
|
|
34219
|
+
},
|
|
34220
|
+
responses: {
|
|
34221
|
+
"200": {
|
|
34222
|
+
description: "Set."
|
|
34223
|
+
},
|
|
34224
|
+
"403": {
|
|
34225
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34226
|
+
},
|
|
34227
|
+
"404": {
|
|
34228
|
+
$ref: "#/components/responses/NotFound"
|
|
34229
|
+
}
|
|
34230
|
+
}
|
|
34231
|
+
}
|
|
34232
|
+
},
|
|
34233
|
+
"/v1/processes/{id}/items": {
|
|
34234
|
+
get: {
|
|
34235
|
+
operationId: "listProcessItems",
|
|
34236
|
+
summary: "Items of a run and their state",
|
|
34237
|
+
tags: [
|
|
34238
|
+
"Processes"
|
|
34239
|
+
],
|
|
34240
|
+
parameters: [
|
|
34241
|
+
{
|
|
34242
|
+
name: "id",
|
|
34243
|
+
in: "path",
|
|
34244
|
+
required: true,
|
|
34245
|
+
schema: {
|
|
34246
|
+
type: "string",
|
|
34247
|
+
format: "uuid"
|
|
34248
|
+
}
|
|
34249
|
+
},
|
|
34250
|
+
{
|
|
34251
|
+
name: "run",
|
|
34252
|
+
in: "query",
|
|
34253
|
+
schema: {
|
|
34254
|
+
type: "string",
|
|
34255
|
+
format: "uuid"
|
|
34256
|
+
},
|
|
34257
|
+
description: "Default: the latest run."
|
|
34258
|
+
}
|
|
34259
|
+
],
|
|
34260
|
+
responses: {
|
|
34261
|
+
"200": {
|
|
34262
|
+
description: "`{ runId, items: [{ documentId, name, state, at }] }`."
|
|
34263
|
+
},
|
|
34264
|
+
"403": {
|
|
34265
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34266
|
+
}
|
|
34267
|
+
}
|
|
34268
|
+
},
|
|
34269
|
+
post: {
|
|
34270
|
+
operationId: "postProcessItem",
|
|
34271
|
+
summary: "Start a run for one item",
|
|
34272
|
+
description: "Values by field name. Only for a process whose items are posted (started by hand, by another system or by a form). When the process has a reply step that answers in time, the reply comes back. Needs process_run and the write scope.",
|
|
34273
|
+
tags: [
|
|
34274
|
+
"Processes"
|
|
34275
|
+
],
|
|
34276
|
+
parameters: [
|
|
34277
|
+
{
|
|
34278
|
+
name: "id",
|
|
34279
|
+
in: "path",
|
|
34280
|
+
required: true,
|
|
34281
|
+
schema: {
|
|
34282
|
+
type: "string",
|
|
34283
|
+
format: "uuid"
|
|
34284
|
+
}
|
|
34285
|
+
}
|
|
34286
|
+
],
|
|
34287
|
+
requestBody: {
|
|
34288
|
+
required: true,
|
|
34289
|
+
content: {
|
|
34290
|
+
"application/json": {
|
|
34291
|
+
schema: {
|
|
34292
|
+
type: "object",
|
|
34293
|
+
required: [
|
|
34294
|
+
"values"
|
|
34295
|
+
],
|
|
34296
|
+
properties: {
|
|
34297
|
+
values: {
|
|
34298
|
+
type: "object",
|
|
34299
|
+
additionalProperties: true,
|
|
34300
|
+
example: {
|
|
34301
|
+
Vendor: "Acme"
|
|
34302
|
+
}
|
|
34303
|
+
}
|
|
34304
|
+
}
|
|
34305
|
+
}
|
|
34306
|
+
}
|
|
34307
|
+
}
|
|
34308
|
+
},
|
|
34309
|
+
responses: {
|
|
34310
|
+
"201": {
|
|
34311
|
+
description: "`{ runId, process, reply? }`."
|
|
34312
|
+
},
|
|
34313
|
+
"403": {
|
|
34314
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34315
|
+
},
|
|
34316
|
+
"404": {
|
|
34317
|
+
$ref: "#/components/responses/NotFound"
|
|
34318
|
+
},
|
|
34319
|
+
"422": {
|
|
34320
|
+
description: "A field name the process does not have (the answer lists its fields)."
|
|
34321
|
+
}
|
|
34322
|
+
}
|
|
34323
|
+
}
|
|
34324
|
+
},
|
|
34325
|
+
"/v1/processes/{id}/run": {
|
|
34326
|
+
post: {
|
|
34327
|
+
operationId: "runProcessOnDocuments",
|
|
34328
|
+
summary: "Start a run on documents",
|
|
34329
|
+
description: "Needs process_run and the write scope.",
|
|
34330
|
+
tags: [
|
|
34331
|
+
"Processes"
|
|
34332
|
+
],
|
|
34333
|
+
parameters: [
|
|
34334
|
+
{
|
|
34335
|
+
name: "id",
|
|
34336
|
+
in: "path",
|
|
34337
|
+
required: true,
|
|
34338
|
+
schema: {
|
|
34339
|
+
type: "string",
|
|
34340
|
+
format: "uuid"
|
|
34341
|
+
}
|
|
34342
|
+
}
|
|
34343
|
+
],
|
|
34344
|
+
requestBody: {
|
|
34345
|
+
required: true,
|
|
34346
|
+
content: {
|
|
34347
|
+
"application/json": {
|
|
34348
|
+
schema: {
|
|
34349
|
+
type: "object",
|
|
34350
|
+
required: [
|
|
34351
|
+
"documentIds"
|
|
34352
|
+
],
|
|
34353
|
+
properties: {
|
|
34354
|
+
documentIds: {
|
|
34355
|
+
type: "array",
|
|
34356
|
+
items: {
|
|
34357
|
+
type: "string",
|
|
34358
|
+
format: "uuid"
|
|
34359
|
+
}
|
|
34360
|
+
}
|
|
34361
|
+
}
|
|
34362
|
+
}
|
|
34363
|
+
}
|
|
34364
|
+
}
|
|
34365
|
+
},
|
|
34366
|
+
responses: {
|
|
34367
|
+
"201": {
|
|
34368
|
+
description: "`{ runId, pipelineIds }`."
|
|
34369
|
+
},
|
|
34370
|
+
"403": {
|
|
34371
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34372
|
+
}
|
|
34373
|
+
}
|
|
34374
|
+
}
|
|
34375
|
+
},
|
|
34376
|
+
"/v1/processes/{id}/status": {
|
|
34377
|
+
get: {
|
|
34378
|
+
operationId: "getProcessStatus",
|
|
34379
|
+
summary: "Per-step counts of a run",
|
|
34380
|
+
tags: [
|
|
34381
|
+
"Processes"
|
|
34382
|
+
],
|
|
34383
|
+
parameters: [
|
|
34384
|
+
{
|
|
34385
|
+
name: "id",
|
|
34386
|
+
in: "path",
|
|
34387
|
+
required: true,
|
|
34388
|
+
schema: {
|
|
34389
|
+
type: "string",
|
|
34390
|
+
format: "uuid"
|
|
34391
|
+
}
|
|
34392
|
+
},
|
|
34393
|
+
{
|
|
34394
|
+
name: "run",
|
|
34395
|
+
in: "query",
|
|
34396
|
+
schema: {
|
|
34397
|
+
type: "string",
|
|
34398
|
+
format: "uuid"
|
|
34399
|
+
}
|
|
34400
|
+
}
|
|
34401
|
+
],
|
|
34402
|
+
responses: {
|
|
34403
|
+
"200": {
|
|
34404
|
+
description: "The run's status by step."
|
|
34405
|
+
},
|
|
34406
|
+
"403": {
|
|
34407
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34408
|
+
}
|
|
34409
|
+
}
|
|
34410
|
+
}
|
|
34411
|
+
},
|
|
34412
|
+
"/v1/processes/{id}/runs/{runId}/items/{itemKey}": {
|
|
34413
|
+
get: {
|
|
34414
|
+
operationId: "getProcessItemTrace",
|
|
34415
|
+
summary: "One item's way through a run, and its values",
|
|
34416
|
+
tags: [
|
|
34417
|
+
"Processes"
|
|
34418
|
+
],
|
|
34419
|
+
parameters: [
|
|
34420
|
+
{
|
|
34421
|
+
name: "id",
|
|
34422
|
+
in: "path",
|
|
34423
|
+
required: true,
|
|
34424
|
+
schema: {
|
|
34425
|
+
type: "string",
|
|
34426
|
+
format: "uuid"
|
|
34427
|
+
}
|
|
34428
|
+
},
|
|
34429
|
+
{
|
|
34430
|
+
name: "runId",
|
|
34431
|
+
in: "path",
|
|
34432
|
+
required: true,
|
|
34433
|
+
schema: {
|
|
34434
|
+
type: "string",
|
|
34435
|
+
format: "uuid"
|
|
34436
|
+
}
|
|
34437
|
+
},
|
|
34438
|
+
{
|
|
34439
|
+
name: "itemKey",
|
|
34440
|
+
in: "path",
|
|
34441
|
+
required: true,
|
|
34442
|
+
schema: {
|
|
34443
|
+
type: "string"
|
|
34444
|
+
}
|
|
34445
|
+
}
|
|
34446
|
+
],
|
|
34447
|
+
responses: {
|
|
34448
|
+
"200": {
|
|
34449
|
+
description: "`{ steps: [{ stepId, name, kind, status, startedAt, endedAt, note, canRetry }], values: [{ name, value }] }`."
|
|
34450
|
+
},
|
|
34451
|
+
"403": {
|
|
34452
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34453
|
+
}
|
|
34454
|
+
}
|
|
34455
|
+
}
|
|
34456
|
+
},
|
|
34457
|
+
"/v1/processes/{id}/runs/{runId}/holds/{stepId}/release": {
|
|
34458
|
+
post: {
|
|
34459
|
+
operationId: "signProcessHold",
|
|
34460
|
+
summary: "Sign a sign-off step",
|
|
34461
|
+
description: "Only where the key's person is assigned to the step, as on the screen; a step with choices needs `decision`. Needs process_sign and the write scope.",
|
|
34462
|
+
tags: [
|
|
34463
|
+
"Processes"
|
|
34464
|
+
],
|
|
34465
|
+
parameters: [
|
|
34466
|
+
{
|
|
34467
|
+
name: "id",
|
|
34468
|
+
in: "path",
|
|
34469
|
+
required: true,
|
|
34470
|
+
schema: {
|
|
34471
|
+
type: "string",
|
|
34472
|
+
format: "uuid"
|
|
34473
|
+
}
|
|
34474
|
+
},
|
|
34475
|
+
{
|
|
34476
|
+
name: "runId",
|
|
34477
|
+
in: "path",
|
|
34478
|
+
required: true,
|
|
34479
|
+
schema: {
|
|
34480
|
+
type: "string",
|
|
34481
|
+
format: "uuid"
|
|
34482
|
+
}
|
|
34483
|
+
},
|
|
34484
|
+
{
|
|
34485
|
+
name: "stepId",
|
|
34486
|
+
in: "path",
|
|
34487
|
+
required: true,
|
|
34488
|
+
schema: {
|
|
34489
|
+
type: "string"
|
|
34490
|
+
}
|
|
34491
|
+
}
|
|
34492
|
+
],
|
|
34493
|
+
requestBody: {
|
|
34494
|
+
content: {
|
|
34495
|
+
"application/json": {
|
|
34496
|
+
schema: {
|
|
34497
|
+
type: "object",
|
|
34498
|
+
properties: {
|
|
34499
|
+
items: {
|
|
34500
|
+
type: "array",
|
|
34501
|
+
items: {
|
|
34502
|
+
type: "string"
|
|
34503
|
+
},
|
|
34504
|
+
description: "Item keys; default every waiting item."
|
|
34505
|
+
},
|
|
34506
|
+
decision: {
|
|
34507
|
+
type: "string"
|
|
34508
|
+
}
|
|
34509
|
+
}
|
|
34510
|
+
}
|
|
34511
|
+
}
|
|
34512
|
+
}
|
|
34513
|
+
},
|
|
34514
|
+
responses: {
|
|
34515
|
+
"201": {
|
|
34516
|
+
description: "`{ released, alreadySigned }`."
|
|
34517
|
+
},
|
|
34518
|
+
"403": {
|
|
34519
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34520
|
+
}
|
|
34521
|
+
}
|
|
34522
|
+
}
|
|
34523
|
+
},
|
|
34524
|
+
"/v1/processes/{id}/runs/{runId}/holds/{stepId}/send-back": {
|
|
34525
|
+
post: {
|
|
34526
|
+
operationId: "sendBackProcessHold",
|
|
34527
|
+
summary: "Send items back from a sign-off",
|
|
34528
|
+
description: "With the reason, to where the process says sent-back items go. Only where the key's person is assigned to the step. Needs process_sign and the write scope.",
|
|
34529
|
+
tags: [
|
|
34530
|
+
"Processes"
|
|
34531
|
+
],
|
|
34532
|
+
parameters: [
|
|
34533
|
+
{
|
|
34534
|
+
name: "id",
|
|
34535
|
+
in: "path",
|
|
34536
|
+
required: true,
|
|
34537
|
+
schema: {
|
|
34538
|
+
type: "string",
|
|
34539
|
+
format: "uuid"
|
|
34540
|
+
}
|
|
34541
|
+
},
|
|
34542
|
+
{
|
|
34543
|
+
name: "runId",
|
|
34544
|
+
in: "path",
|
|
34545
|
+
required: true,
|
|
34546
|
+
schema: {
|
|
34547
|
+
type: "string",
|
|
34548
|
+
format: "uuid"
|
|
34549
|
+
}
|
|
34550
|
+
},
|
|
34551
|
+
{
|
|
34552
|
+
name: "stepId",
|
|
34553
|
+
in: "path",
|
|
34554
|
+
required: true,
|
|
34555
|
+
schema: {
|
|
34556
|
+
type: "string"
|
|
34557
|
+
}
|
|
34558
|
+
}
|
|
34559
|
+
],
|
|
34560
|
+
requestBody: {
|
|
34561
|
+
required: true,
|
|
34562
|
+
content: {
|
|
34563
|
+
"application/json": {
|
|
34564
|
+
schema: {
|
|
34565
|
+
type: "object",
|
|
34566
|
+
required: [
|
|
34567
|
+
"items",
|
|
34568
|
+
"reason"
|
|
34569
|
+
],
|
|
34570
|
+
properties: {
|
|
34571
|
+
items: {
|
|
34572
|
+
type: "array",
|
|
34573
|
+
items: {
|
|
34574
|
+
type: "string"
|
|
34575
|
+
}
|
|
34576
|
+
},
|
|
34577
|
+
reason: {
|
|
34578
|
+
type: "string",
|
|
34579
|
+
maxLength: 2e3
|
|
34580
|
+
}
|
|
34581
|
+
}
|
|
34582
|
+
}
|
|
34583
|
+
}
|
|
34584
|
+
}
|
|
34585
|
+
},
|
|
34586
|
+
responses: {
|
|
34587
|
+
"201": {
|
|
34588
|
+
description: "`{ sentBack }`."
|
|
34589
|
+
},
|
|
34590
|
+
"403": {
|
|
34591
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
34592
|
+
}
|
|
34593
|
+
}
|
|
34594
|
+
}
|
|
34595
|
+
},
|
|
33250
34596
|
"/v1/contracts": {
|
|
33251
34597
|
get: {
|
|
33252
34598
|
operationId: "listContracts",
|
|
33253
34599
|
summary: "The contract register, filtered",
|
|
33254
|
-
description: "Every contract of the workspace with its status, dates, annual value, direction (sell, buy or internal, derived on read from the parties the documents name against the workspace's own company names), document count, next open key date, open process summary and the Price Baseline and Money Found links. Without `page`, `limit` or `offset` the whole register is returned in one array, ordered by counterparty, then contract key. With any of them the answer is one page of one view, with `total`, `page` and `limit`.",
|
|
34600
|
+
description: "Every contract of the workspace with its status, dates, annual value, direction (sell, buy or internal, derived on read from the parties the documents name against the workspace's own company names), document count, next open key date, open process summary and the Price Baseline and Money Found links. Without `page`, `limit` or `offset` the whole register is returned in one array, ordered by counterparty, then contract key; the array is written as it is read, so a failure after the response has started ends it early (an incomplete body) instead of answering an error status. With any of them the answer is one page of one view, with `total`, `page` and `limit`.",
|
|
33255
34601
|
tags: [
|
|
33256
34602
|
"Contracts"
|
|
33257
34603
|
],
|
|
@@ -33402,7 +34748,7 @@ var openapi_default = {
|
|
|
33402
34748
|
get: {
|
|
33403
34749
|
operationId: "listContractIssues",
|
|
33404
34750
|
summary: "Contracts that look wrong, with the documents concerned",
|
|
33405
|
-
description: "The cleaning worklist: per contract, the issues the documents show, each naming the documents it is about. An issue a person dismissed with `POST /v1/contracts/{id}/issues/{code}/dismiss` stays hidden until the documents concerned change. Contracts with the most issues come first.",
|
|
34751
|
+
description: "The cleaning worklist: per contract, the issues the documents show, each naming the documents it is about. An issue a person dismissed with `POST /v1/contracts/{id}/issues/{code}/dismiss` stays hidden until the documents concerned change. Contracts with the most issues come first. Without `page` or `limit` the whole worklist is returned in one array; the array is written as it is read, so a failure after the response has started ends it early (an incomplete body) instead of answering an error status. With either of them the answer is one page, with `total`, `page` and `limit`, and `q` searches contract key and title.",
|
|
33406
34752
|
tags: [
|
|
33407
34753
|
"Contracts"
|
|
33408
34754
|
],
|