@talonic/docs 0.21.78 → 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 +924 -46
- package/openapi.json +924 -46
- package/package.json +1 -1
package/dist/seo.js
CHANGED
|
@@ -33312,91 +33312,878 @@ var openapi_default = {
|
|
|
33312
33312
|
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33313
33313
|
}
|
|
33314
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
|
+
}
|
|
33315
33992
|
}
|
|
33316
33993
|
},
|
|
33317
|
-
"/v1/processes/
|
|
33318
|
-
|
|
33319
|
-
operationId: "
|
|
33320
|
-
summary: "
|
|
33321
|
-
description: "
|
|
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.",
|
|
33322
33999
|
tags: [
|
|
33323
34000
|
"Processes"
|
|
33324
34001
|
],
|
|
33325
34002
|
parameters: [
|
|
33326
34003
|
{
|
|
33327
|
-
name: "
|
|
33328
|
-
in: "
|
|
34004
|
+
name: "id",
|
|
34005
|
+
in: "path",
|
|
34006
|
+
required: true,
|
|
33329
34007
|
schema: {
|
|
33330
34008
|
type: "string",
|
|
33331
|
-
|
|
33332
|
-
|
|
33333
|
-
|
|
33334
|
-
|
|
33335
|
-
|
|
33336
|
-
|
|
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
|
+
}
|
|
33337
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."
|
|
33338
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: [
|
|
33339
34054
|
{
|
|
33340
|
-
name: "
|
|
33341
|
-
in: "
|
|
34055
|
+
name: "id",
|
|
34056
|
+
in: "path",
|
|
34057
|
+
required: true,
|
|
33342
34058
|
schema: {
|
|
33343
34059
|
type: "string",
|
|
33344
34060
|
format: "uuid"
|
|
33345
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`."
|
|
33346
34089
|
},
|
|
33347
|
-
{
|
|
33348
|
-
|
|
33349
|
-
in: "query",
|
|
33350
|
-
schema: {
|
|
33351
|
-
type: "string",
|
|
33352
|
-
enum: [
|
|
33353
|
-
"0",
|
|
33354
|
-
"1"
|
|
33355
|
-
]
|
|
33356
|
-
},
|
|
33357
|
-
description: "Only runs with a sign-off or form waiting for the key's person."
|
|
34090
|
+
"403": {
|
|
34091
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33358
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: [
|
|
33359
34108
|
{
|
|
33360
|
-
name: "
|
|
33361
|
-
in: "
|
|
34109
|
+
name: "id",
|
|
34110
|
+
in: "path",
|
|
34111
|
+
required: true,
|
|
33362
34112
|
schema: {
|
|
33363
|
-
type: "
|
|
33364
|
-
|
|
34113
|
+
type: "string",
|
|
34114
|
+
format: "uuid"
|
|
33365
34115
|
}
|
|
33366
34116
|
}
|
|
33367
34117
|
],
|
|
33368
34118
|
responses: {
|
|
33369
34119
|
"200": {
|
|
33370
|
-
description: "`{
|
|
34120
|
+
description: "`{ exists, createdAt, signedWith, test: { exists, createdAt } }`."
|
|
33371
34121
|
},
|
|
33372
34122
|
"403": {
|
|
33373
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"
|
|
33374
34127
|
}
|
|
33375
34128
|
}
|
|
33376
|
-
}
|
|
33377
|
-
|
|
33378
|
-
|
|
33379
|
-
|
|
33380
|
-
|
|
33381
|
-
summary: "Sign-offs and forms waiting for the key's person",
|
|
33382
|
-
description: "Per process and step, how many items wait for the person behind the key. Needs process_sign.",
|
|
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.",
|
|
33383
34134
|
tags: [
|
|
33384
34135
|
"Processes"
|
|
33385
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
|
+
},
|
|
33386
34166
|
responses: {
|
|
33387
34167
|
"200": {
|
|
33388
|
-
description: "`{
|
|
34168
|
+
description: "`{ token, path }`."
|
|
33389
34169
|
},
|
|
33390
34170
|
"403": {
|
|
33391
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."
|
|
33392
34178
|
}
|
|
33393
34179
|
}
|
|
33394
34180
|
}
|
|
33395
34181
|
},
|
|
33396
|
-
"/v1/processes/{id}": {
|
|
33397
|
-
|
|
33398
|
-
operationId: "
|
|
33399
|
-
summary: "
|
|
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.",
|
|
33400
34187
|
tags: [
|
|
33401
34188
|
"Processes"
|
|
33402
34189
|
],
|
|
@@ -33411,9 +34198,28 @@ var openapi_default = {
|
|
|
33411
34198
|
}
|
|
33412
34199
|
}
|
|
33413
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
|
+
},
|
|
33414
34220
|
responses: {
|
|
33415
34221
|
"200": {
|
|
33416
|
-
description: "
|
|
34222
|
+
description: "Set."
|
|
33417
34223
|
},
|
|
33418
34224
|
"403": {
|
|
33419
34225
|
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
@@ -33715,11 +34521,83 @@ var openapi_default = {
|
|
|
33715
34521
|
}
|
|
33716
34522
|
}
|
|
33717
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
|
+
},
|
|
33718
34596
|
"/v1/contracts": {
|
|
33719
34597
|
get: {
|
|
33720
34598
|
operationId: "listContracts",
|
|
33721
34599
|
summary: "The contract register, filtered",
|
|
33722
|
-
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`.",
|
|
33723
34601
|
tags: [
|
|
33724
34602
|
"Contracts"
|
|
33725
34603
|
],
|
|
@@ -33870,7 +34748,7 @@ var openapi_default = {
|
|
|
33870
34748
|
get: {
|
|
33871
34749
|
operationId: "listContractIssues",
|
|
33872
34750
|
summary: "Contracts that look wrong, with the documents concerned",
|
|
33873
|
-
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.",
|
|
33874
34752
|
tags: [
|
|
33875
34753
|
"Contracts"
|
|
33876
34754
|
],
|