@talonic/docs 0.21.76 → 0.21.78
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/seo.js +549 -4
- package/openapi.json +549 -4
- package/package.json +1 -1
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,6 +33251,470 @@ 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
|
+
},
|
|
33317
|
+
"/v1/processes/runs": {
|
|
33318
|
+
get: {
|
|
33319
|
+
operationId: "listProcessRuns",
|
|
33320
|
+
summary: "Runs across processes",
|
|
33321
|
+
description: "Newest first, 50 a page, with item counts by state. `stuck` is an open run with a failed item. Needs process_view.",
|
|
33322
|
+
tags: [
|
|
33323
|
+
"Processes"
|
|
33324
|
+
],
|
|
33325
|
+
parameters: [
|
|
33326
|
+
{
|
|
33327
|
+
name: "state",
|
|
33328
|
+
in: "query",
|
|
33329
|
+
schema: {
|
|
33330
|
+
type: "string",
|
|
33331
|
+
enum: [
|
|
33332
|
+
"running",
|
|
33333
|
+
"completed",
|
|
33334
|
+
"failed",
|
|
33335
|
+
"stuck"
|
|
33336
|
+
]
|
|
33337
|
+
}
|
|
33338
|
+
},
|
|
33339
|
+
{
|
|
33340
|
+
name: "process",
|
|
33341
|
+
in: "query",
|
|
33342
|
+
schema: {
|
|
33343
|
+
type: "string",
|
|
33344
|
+
format: "uuid"
|
|
33345
|
+
}
|
|
33346
|
+
},
|
|
33347
|
+
{
|
|
33348
|
+
name: "waitingForMe",
|
|
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."
|
|
33358
|
+
},
|
|
33359
|
+
{
|
|
33360
|
+
name: "page",
|
|
33361
|
+
in: "query",
|
|
33362
|
+
schema: {
|
|
33363
|
+
type: "integer",
|
|
33364
|
+
minimum: 0
|
|
33365
|
+
}
|
|
33366
|
+
}
|
|
33367
|
+
],
|
|
33368
|
+
responses: {
|
|
33369
|
+
"200": {
|
|
33370
|
+
description: "`{ runs, page, more }`."
|
|
33371
|
+
},
|
|
33372
|
+
"403": {
|
|
33373
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33374
|
+
}
|
|
33375
|
+
}
|
|
33376
|
+
}
|
|
33377
|
+
},
|
|
33378
|
+
"/v1/processes/waiting": {
|
|
33379
|
+
get: {
|
|
33380
|
+
operationId: "listProcessWaiting",
|
|
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.",
|
|
33383
|
+
tags: [
|
|
33384
|
+
"Processes"
|
|
33385
|
+
],
|
|
33386
|
+
responses: {
|
|
33387
|
+
"200": {
|
|
33388
|
+
description: "`{ data: [{ processId, process, stepId, step, waiting }] }`."
|
|
33389
|
+
},
|
|
33390
|
+
"403": {
|
|
33391
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33392
|
+
}
|
|
33393
|
+
}
|
|
33394
|
+
}
|
|
33395
|
+
},
|
|
33396
|
+
"/v1/processes/{id}": {
|
|
33397
|
+
get: {
|
|
33398
|
+
operationId: "getProcess",
|
|
33399
|
+
summary: "One process with its draft",
|
|
33400
|
+
tags: [
|
|
33401
|
+
"Processes"
|
|
33402
|
+
],
|
|
33403
|
+
parameters: [
|
|
33404
|
+
{
|
|
33405
|
+
name: "id",
|
|
33406
|
+
in: "path",
|
|
33407
|
+
required: true,
|
|
33408
|
+
schema: {
|
|
33409
|
+
type: "string",
|
|
33410
|
+
format: "uuid"
|
|
33411
|
+
}
|
|
33412
|
+
}
|
|
33413
|
+
],
|
|
33414
|
+
responses: {
|
|
33415
|
+
"200": {
|
|
33416
|
+
description: "The process."
|
|
33417
|
+
},
|
|
33418
|
+
"403": {
|
|
33419
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33420
|
+
},
|
|
33421
|
+
"404": {
|
|
33422
|
+
$ref: "#/components/responses/NotFound"
|
|
33423
|
+
}
|
|
33424
|
+
}
|
|
33425
|
+
}
|
|
33426
|
+
},
|
|
33427
|
+
"/v1/processes/{id}/items": {
|
|
33428
|
+
get: {
|
|
33429
|
+
operationId: "listProcessItems",
|
|
33430
|
+
summary: "Items of a run and their state",
|
|
33431
|
+
tags: [
|
|
33432
|
+
"Processes"
|
|
33433
|
+
],
|
|
33434
|
+
parameters: [
|
|
33435
|
+
{
|
|
33436
|
+
name: "id",
|
|
33437
|
+
in: "path",
|
|
33438
|
+
required: true,
|
|
33439
|
+
schema: {
|
|
33440
|
+
type: "string",
|
|
33441
|
+
format: "uuid"
|
|
33442
|
+
}
|
|
33443
|
+
},
|
|
33444
|
+
{
|
|
33445
|
+
name: "run",
|
|
33446
|
+
in: "query",
|
|
33447
|
+
schema: {
|
|
33448
|
+
type: "string",
|
|
33449
|
+
format: "uuid"
|
|
33450
|
+
},
|
|
33451
|
+
description: "Default: the latest run."
|
|
33452
|
+
}
|
|
33453
|
+
],
|
|
33454
|
+
responses: {
|
|
33455
|
+
"200": {
|
|
33456
|
+
description: "`{ runId, items: [{ documentId, name, state, at }] }`."
|
|
33457
|
+
},
|
|
33458
|
+
"403": {
|
|
33459
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33460
|
+
}
|
|
33461
|
+
}
|
|
33462
|
+
},
|
|
33463
|
+
post: {
|
|
33464
|
+
operationId: "postProcessItem",
|
|
33465
|
+
summary: "Start a run for one item",
|
|
33466
|
+
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.",
|
|
33467
|
+
tags: [
|
|
33468
|
+
"Processes"
|
|
33469
|
+
],
|
|
33470
|
+
parameters: [
|
|
33471
|
+
{
|
|
33472
|
+
name: "id",
|
|
33473
|
+
in: "path",
|
|
33474
|
+
required: true,
|
|
33475
|
+
schema: {
|
|
33476
|
+
type: "string",
|
|
33477
|
+
format: "uuid"
|
|
33478
|
+
}
|
|
33479
|
+
}
|
|
33480
|
+
],
|
|
33481
|
+
requestBody: {
|
|
33482
|
+
required: true,
|
|
33483
|
+
content: {
|
|
33484
|
+
"application/json": {
|
|
33485
|
+
schema: {
|
|
33486
|
+
type: "object",
|
|
33487
|
+
required: [
|
|
33488
|
+
"values"
|
|
33489
|
+
],
|
|
33490
|
+
properties: {
|
|
33491
|
+
values: {
|
|
33492
|
+
type: "object",
|
|
33493
|
+
additionalProperties: true,
|
|
33494
|
+
example: {
|
|
33495
|
+
Vendor: "Acme"
|
|
33496
|
+
}
|
|
33497
|
+
}
|
|
33498
|
+
}
|
|
33499
|
+
}
|
|
33500
|
+
}
|
|
33501
|
+
}
|
|
33502
|
+
},
|
|
33503
|
+
responses: {
|
|
33504
|
+
"201": {
|
|
33505
|
+
description: "`{ runId, process, reply? }`."
|
|
33506
|
+
},
|
|
33507
|
+
"403": {
|
|
33508
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33509
|
+
},
|
|
33510
|
+
"404": {
|
|
33511
|
+
$ref: "#/components/responses/NotFound"
|
|
33512
|
+
},
|
|
33513
|
+
"422": {
|
|
33514
|
+
description: "A field name the process does not have (the answer lists its fields)."
|
|
33515
|
+
}
|
|
33516
|
+
}
|
|
33517
|
+
}
|
|
33518
|
+
},
|
|
33519
|
+
"/v1/processes/{id}/run": {
|
|
33520
|
+
post: {
|
|
33521
|
+
operationId: "runProcessOnDocuments",
|
|
33522
|
+
summary: "Start a run on documents",
|
|
33523
|
+
description: "Needs process_run and the write scope.",
|
|
33524
|
+
tags: [
|
|
33525
|
+
"Processes"
|
|
33526
|
+
],
|
|
33527
|
+
parameters: [
|
|
33528
|
+
{
|
|
33529
|
+
name: "id",
|
|
33530
|
+
in: "path",
|
|
33531
|
+
required: true,
|
|
33532
|
+
schema: {
|
|
33533
|
+
type: "string",
|
|
33534
|
+
format: "uuid"
|
|
33535
|
+
}
|
|
33536
|
+
}
|
|
33537
|
+
],
|
|
33538
|
+
requestBody: {
|
|
33539
|
+
required: true,
|
|
33540
|
+
content: {
|
|
33541
|
+
"application/json": {
|
|
33542
|
+
schema: {
|
|
33543
|
+
type: "object",
|
|
33544
|
+
required: [
|
|
33545
|
+
"documentIds"
|
|
33546
|
+
],
|
|
33547
|
+
properties: {
|
|
33548
|
+
documentIds: {
|
|
33549
|
+
type: "array",
|
|
33550
|
+
items: {
|
|
33551
|
+
type: "string",
|
|
33552
|
+
format: "uuid"
|
|
33553
|
+
}
|
|
33554
|
+
}
|
|
33555
|
+
}
|
|
33556
|
+
}
|
|
33557
|
+
}
|
|
33558
|
+
}
|
|
33559
|
+
},
|
|
33560
|
+
responses: {
|
|
33561
|
+
"201": {
|
|
33562
|
+
description: "`{ runId, pipelineIds }`."
|
|
33563
|
+
},
|
|
33564
|
+
"403": {
|
|
33565
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33566
|
+
}
|
|
33567
|
+
}
|
|
33568
|
+
}
|
|
33569
|
+
},
|
|
33570
|
+
"/v1/processes/{id}/status": {
|
|
33571
|
+
get: {
|
|
33572
|
+
operationId: "getProcessStatus",
|
|
33573
|
+
summary: "Per-step counts of a run",
|
|
33574
|
+
tags: [
|
|
33575
|
+
"Processes"
|
|
33576
|
+
],
|
|
33577
|
+
parameters: [
|
|
33578
|
+
{
|
|
33579
|
+
name: "id",
|
|
33580
|
+
in: "path",
|
|
33581
|
+
required: true,
|
|
33582
|
+
schema: {
|
|
33583
|
+
type: "string",
|
|
33584
|
+
format: "uuid"
|
|
33585
|
+
}
|
|
33586
|
+
},
|
|
33587
|
+
{
|
|
33588
|
+
name: "run",
|
|
33589
|
+
in: "query",
|
|
33590
|
+
schema: {
|
|
33591
|
+
type: "string",
|
|
33592
|
+
format: "uuid"
|
|
33593
|
+
}
|
|
33594
|
+
}
|
|
33595
|
+
],
|
|
33596
|
+
responses: {
|
|
33597
|
+
"200": {
|
|
33598
|
+
description: "The run's status by step."
|
|
33599
|
+
},
|
|
33600
|
+
"403": {
|
|
33601
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33602
|
+
}
|
|
33603
|
+
}
|
|
33604
|
+
}
|
|
33605
|
+
},
|
|
33606
|
+
"/v1/processes/{id}/runs/{runId}/items/{itemKey}": {
|
|
33607
|
+
get: {
|
|
33608
|
+
operationId: "getProcessItemTrace",
|
|
33609
|
+
summary: "One item's way through a run, and its values",
|
|
33610
|
+
tags: [
|
|
33611
|
+
"Processes"
|
|
33612
|
+
],
|
|
33613
|
+
parameters: [
|
|
33614
|
+
{
|
|
33615
|
+
name: "id",
|
|
33616
|
+
in: "path",
|
|
33617
|
+
required: true,
|
|
33618
|
+
schema: {
|
|
33619
|
+
type: "string",
|
|
33620
|
+
format: "uuid"
|
|
33621
|
+
}
|
|
33622
|
+
},
|
|
33623
|
+
{
|
|
33624
|
+
name: "runId",
|
|
33625
|
+
in: "path",
|
|
33626
|
+
required: true,
|
|
33627
|
+
schema: {
|
|
33628
|
+
type: "string",
|
|
33629
|
+
format: "uuid"
|
|
33630
|
+
}
|
|
33631
|
+
},
|
|
33632
|
+
{
|
|
33633
|
+
name: "itemKey",
|
|
33634
|
+
in: "path",
|
|
33635
|
+
required: true,
|
|
33636
|
+
schema: {
|
|
33637
|
+
type: "string"
|
|
33638
|
+
}
|
|
33639
|
+
}
|
|
33640
|
+
],
|
|
33641
|
+
responses: {
|
|
33642
|
+
"200": {
|
|
33643
|
+
description: "`{ steps: [{ stepId, name, kind, status, startedAt, endedAt, note, canRetry }], values: [{ name, value }] }`."
|
|
33644
|
+
},
|
|
33645
|
+
"403": {
|
|
33646
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33647
|
+
}
|
|
33648
|
+
}
|
|
33649
|
+
}
|
|
33650
|
+
},
|
|
33651
|
+
"/v1/processes/{id}/runs/{runId}/holds/{stepId}/release": {
|
|
33652
|
+
post: {
|
|
33653
|
+
operationId: "signProcessHold",
|
|
33654
|
+
summary: "Sign a sign-off step",
|
|
33655
|
+
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.",
|
|
33656
|
+
tags: [
|
|
33657
|
+
"Processes"
|
|
33658
|
+
],
|
|
33659
|
+
parameters: [
|
|
33660
|
+
{
|
|
33661
|
+
name: "id",
|
|
33662
|
+
in: "path",
|
|
33663
|
+
required: true,
|
|
33664
|
+
schema: {
|
|
33665
|
+
type: "string",
|
|
33666
|
+
format: "uuid"
|
|
33667
|
+
}
|
|
33668
|
+
},
|
|
33669
|
+
{
|
|
33670
|
+
name: "runId",
|
|
33671
|
+
in: "path",
|
|
33672
|
+
required: true,
|
|
33673
|
+
schema: {
|
|
33674
|
+
type: "string",
|
|
33675
|
+
format: "uuid"
|
|
33676
|
+
}
|
|
33677
|
+
},
|
|
33678
|
+
{
|
|
33679
|
+
name: "stepId",
|
|
33680
|
+
in: "path",
|
|
33681
|
+
required: true,
|
|
33682
|
+
schema: {
|
|
33683
|
+
type: "string"
|
|
33684
|
+
}
|
|
33685
|
+
}
|
|
33686
|
+
],
|
|
33687
|
+
requestBody: {
|
|
33688
|
+
content: {
|
|
33689
|
+
"application/json": {
|
|
33690
|
+
schema: {
|
|
33691
|
+
type: "object",
|
|
33692
|
+
properties: {
|
|
33693
|
+
items: {
|
|
33694
|
+
type: "array",
|
|
33695
|
+
items: {
|
|
33696
|
+
type: "string"
|
|
33697
|
+
},
|
|
33698
|
+
description: "Item keys; default every waiting item."
|
|
33699
|
+
},
|
|
33700
|
+
decision: {
|
|
33701
|
+
type: "string"
|
|
33702
|
+
}
|
|
33703
|
+
}
|
|
33704
|
+
}
|
|
33705
|
+
}
|
|
33706
|
+
}
|
|
33707
|
+
},
|
|
33708
|
+
responses: {
|
|
33709
|
+
"201": {
|
|
33710
|
+
description: "`{ released, alreadySigned }`."
|
|
33711
|
+
},
|
|
33712
|
+
"403": {
|
|
33713
|
+
description: "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33714
|
+
}
|
|
33715
|
+
}
|
|
33716
|
+
}
|
|
33717
|
+
},
|
|
33250
33718
|
"/v1/contracts": {
|
|
33251
33719
|
get: {
|
|
33252
33720
|
operationId: "listContracts",
|
|
@@ -41612,7 +42080,9 @@ var openapi_default = {
|
|
|
41612
42080
|
"already_paid",
|
|
41613
42081
|
"date_check",
|
|
41614
42082
|
"policy_rule",
|
|
41615
|
-
"above_order_value"
|
|
42083
|
+
"above_order_value",
|
|
42084
|
+
"contract_missing",
|
|
42085
|
+
"conditions_not_met"
|
|
41616
42086
|
]
|
|
41617
42087
|
},
|
|
41618
42088
|
description: "Bills with a hold of this reason."
|
|
@@ -69262,7 +69732,9 @@ var openapi_default = {
|
|
|
69262
69732
|
"already_paid",
|
|
69263
69733
|
"date_check",
|
|
69264
69734
|
"policy_rule",
|
|
69265
|
-
"above_order_value"
|
|
69735
|
+
"above_order_value",
|
|
69736
|
+
"contract_missing",
|
|
69737
|
+
"conditions_not_met"
|
|
69266
69738
|
]
|
|
69267
69739
|
},
|
|
69268
69740
|
label: {
|
|
@@ -69348,7 +69820,9 @@ var openapi_default = {
|
|
|
69348
69820
|
"already_paid",
|
|
69349
69821
|
"date_check",
|
|
69350
69822
|
"policy_rule",
|
|
69351
|
-
"above_order_value"
|
|
69823
|
+
"above_order_value",
|
|
69824
|
+
"contract_missing",
|
|
69825
|
+
"conditions_not_met"
|
|
69352
69826
|
],
|
|
69353
69827
|
description: "The kind of hold that decides the risk."
|
|
69354
69828
|
},
|
|
@@ -69421,8 +69895,40 @@ var openapi_default = {
|
|
|
69421
69895
|
},
|
|
69422
69896
|
document_type: {
|
|
69423
69897
|
type: "string"
|
|
69898
|
+
},
|
|
69899
|
+
order_value: {
|
|
69900
|
+
type: "string"
|
|
69901
|
+
},
|
|
69902
|
+
document_date: {
|
|
69903
|
+
type: "string"
|
|
69904
|
+
},
|
|
69905
|
+
order_conditions: {
|
|
69906
|
+
type: "string",
|
|
69907
|
+
description: "The column holding the observations a purchase order sets."
|
|
69908
|
+
},
|
|
69909
|
+
contract_conditions: {
|
|
69910
|
+
type: "string",
|
|
69911
|
+
description: "The column holding the conditions a contract sets to release payments."
|
|
69912
|
+
},
|
|
69913
|
+
valid_until: {
|
|
69914
|
+
type: "string",
|
|
69915
|
+
description: "The column holding the date to which a document (a policy, a guarantee) is in force."
|
|
69424
69916
|
}
|
|
69425
69917
|
}
|
|
69918
|
+
},
|
|
69919
|
+
order_type: {
|
|
69920
|
+
type: "string",
|
|
69921
|
+
nullable: true
|
|
69922
|
+
},
|
|
69923
|
+
contract_value: {
|
|
69924
|
+
type: "number",
|
|
69925
|
+
nullable: true,
|
|
69926
|
+
description: "The order value (ledger currency) from which a contract is expected when the order sets no observations."
|
|
69927
|
+
},
|
|
69928
|
+
contract_type: {
|
|
69929
|
+
type: "string",
|
|
69930
|
+
nullable: true,
|
|
69931
|
+
description: "The document type of a contract, looked for in the file of an order that is expected to have one."
|
|
69426
69932
|
}
|
|
69427
69933
|
}
|
|
69428
69934
|
},
|
|
@@ -69773,6 +70279,43 @@ var openapi_default = {
|
|
|
69773
70279
|
],
|
|
69774
70280
|
description: "held: a hold found a problem; evaluating: no hold yet, the contract price check is still running; needs_info: something a definitive call needs is missing; ready: none of these."
|
|
69775
70281
|
},
|
|
70282
|
+
payment: {
|
|
70283
|
+
type: "string",
|
|
70284
|
+
enum: [
|
|
70285
|
+
"pay",
|
|
70286
|
+
"do_not_pay",
|
|
70287
|
+
"pending"
|
|
70288
|
+
],
|
|
70289
|
+
description: "Whether the bill may be paid: do_not_pay while held (its purchase order's observations or contract conditions unmet among the reasons); pay once ready and its order's checklist is known to be met, or it has none; else pending."
|
|
70290
|
+
},
|
|
70291
|
+
outcome: {
|
|
70292
|
+
type: "string",
|
|
70293
|
+
enum: [
|
|
70294
|
+
"to_payment",
|
|
70295
|
+
"manual_review",
|
|
70296
|
+
"adjust_proposal"
|
|
70297
|
+
],
|
|
70298
|
+
description: "Where the bill goes next: to_payment once it may be paid; adjust_proposal when a point of its order's checklist rests on a document whose validity ended (the payment proposal is adjusted, not the invoice); else manual_review."
|
|
70299
|
+
},
|
|
70300
|
+
checks: {
|
|
70301
|
+
type: "object",
|
|
70302
|
+
nullable: true,
|
|
70303
|
+
description: "Its order's checklist points that apply to this bill, by verdict; expired counts those resting on a document whose validity ended. Null: no order, no checklist, or the file is still read.",
|
|
70304
|
+
properties: {
|
|
70305
|
+
met: {
|
|
70306
|
+
type: "integer"
|
|
70307
|
+
},
|
|
70308
|
+
not_met: {
|
|
70309
|
+
type: "integer"
|
|
70310
|
+
},
|
|
70311
|
+
unclear: {
|
|
70312
|
+
type: "integer"
|
|
70313
|
+
},
|
|
70314
|
+
expired: {
|
|
70315
|
+
type: "integer"
|
|
70316
|
+
}
|
|
70317
|
+
}
|
|
70318
|
+
},
|
|
69776
70319
|
holds: {
|
|
69777
70320
|
type: "array",
|
|
69778
70321
|
items: {
|
|
@@ -69911,7 +70454,9 @@ var openapi_default = {
|
|
|
69911
70454
|
"already_paid",
|
|
69912
70455
|
"date_check",
|
|
69913
70456
|
"policy_rule",
|
|
69914
|
-
"above_order_value"
|
|
70457
|
+
"above_order_value",
|
|
70458
|
+
"contract_missing",
|
|
70459
|
+
"conditions_not_met"
|
|
69915
70460
|
]
|
|
69916
70461
|
},
|
|
69917
70462
|
label: {
|
package/openapi.json
CHANGED
|
@@ -221,6 +221,10 @@
|
|
|
221
221
|
"name": "Compliance",
|
|
222
222
|
"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 — `GET /v1/apps` lists a workspace's apps by slug."
|
|
223
223
|
},
|
|
224
|
+
{
|
|
225
|
+
"name": "Processes",
|
|
226
|
+
"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."
|
|
227
|
+
},
|
|
224
228
|
{
|
|
225
229
|
"name": "Contracts",
|
|
226
230
|
"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 — `GET /v1/apps` lists a workspace's apps by slug."
|
|
@@ -33227,6 +33231,470 @@
|
|
|
33227
33231
|
}
|
|
33228
33232
|
}
|
|
33229
33233
|
},
|
|
33234
|
+
"/v1/processes": {
|
|
33235
|
+
"get": {
|
|
33236
|
+
"operationId": "listProcesses",
|
|
33237
|
+
"summary": "Processes of the workspace",
|
|
33238
|
+
"description": "Every process with its live version, folder, tags, step count and last edit. Needs process_view.",
|
|
33239
|
+
"tags": [
|
|
33240
|
+
"Processes"
|
|
33241
|
+
],
|
|
33242
|
+
"responses": {
|
|
33243
|
+
"200": {
|
|
33244
|
+
"description": "The processes.",
|
|
33245
|
+
"content": {
|
|
33246
|
+
"application/json": {
|
|
33247
|
+
"schema": {
|
|
33248
|
+
"type": "object",
|
|
33249
|
+
"properties": {
|
|
33250
|
+
"data": {
|
|
33251
|
+
"type": "array",
|
|
33252
|
+
"items": {
|
|
33253
|
+
"type": "object",
|
|
33254
|
+
"properties": {
|
|
33255
|
+
"id": {
|
|
33256
|
+
"type": "string",
|
|
33257
|
+
"format": "uuid"
|
|
33258
|
+
},
|
|
33259
|
+
"name": {
|
|
33260
|
+
"type": "string"
|
|
33261
|
+
},
|
|
33262
|
+
"liveVersion": {
|
|
33263
|
+
"type": "integer",
|
|
33264
|
+
"nullable": true
|
|
33265
|
+
},
|
|
33266
|
+
"folder": {
|
|
33267
|
+
"type": "string",
|
|
33268
|
+
"nullable": true
|
|
33269
|
+
},
|
|
33270
|
+
"tags": {
|
|
33271
|
+
"type": "array",
|
|
33272
|
+
"items": {
|
|
33273
|
+
"type": "string"
|
|
33274
|
+
}
|
|
33275
|
+
},
|
|
33276
|
+
"steps": {
|
|
33277
|
+
"type": "integer"
|
|
33278
|
+
},
|
|
33279
|
+
"editedAt": {
|
|
33280
|
+
"type": "string",
|
|
33281
|
+
"format": "date-time"
|
|
33282
|
+
}
|
|
33283
|
+
}
|
|
33284
|
+
}
|
|
33285
|
+
}
|
|
33286
|
+
}
|
|
33287
|
+
}
|
|
33288
|
+
}
|
|
33289
|
+
}
|
|
33290
|
+
},
|
|
33291
|
+
"403": {
|
|
33292
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33293
|
+
}
|
|
33294
|
+
}
|
|
33295
|
+
}
|
|
33296
|
+
},
|
|
33297
|
+
"/v1/processes/runs": {
|
|
33298
|
+
"get": {
|
|
33299
|
+
"operationId": "listProcessRuns",
|
|
33300
|
+
"summary": "Runs across processes",
|
|
33301
|
+
"description": "Newest first, 50 a page, with item counts by state. `stuck` is an open run with a failed item. Needs process_view.",
|
|
33302
|
+
"tags": [
|
|
33303
|
+
"Processes"
|
|
33304
|
+
],
|
|
33305
|
+
"parameters": [
|
|
33306
|
+
{
|
|
33307
|
+
"name": "state",
|
|
33308
|
+
"in": "query",
|
|
33309
|
+
"schema": {
|
|
33310
|
+
"type": "string",
|
|
33311
|
+
"enum": [
|
|
33312
|
+
"running",
|
|
33313
|
+
"completed",
|
|
33314
|
+
"failed",
|
|
33315
|
+
"stuck"
|
|
33316
|
+
]
|
|
33317
|
+
}
|
|
33318
|
+
},
|
|
33319
|
+
{
|
|
33320
|
+
"name": "process",
|
|
33321
|
+
"in": "query",
|
|
33322
|
+
"schema": {
|
|
33323
|
+
"type": "string",
|
|
33324
|
+
"format": "uuid"
|
|
33325
|
+
}
|
|
33326
|
+
},
|
|
33327
|
+
{
|
|
33328
|
+
"name": "waitingForMe",
|
|
33329
|
+
"in": "query",
|
|
33330
|
+
"schema": {
|
|
33331
|
+
"type": "string",
|
|
33332
|
+
"enum": [
|
|
33333
|
+
"0",
|
|
33334
|
+
"1"
|
|
33335
|
+
]
|
|
33336
|
+
},
|
|
33337
|
+
"description": "Only runs with a sign-off or form waiting for the key's person."
|
|
33338
|
+
},
|
|
33339
|
+
{
|
|
33340
|
+
"name": "page",
|
|
33341
|
+
"in": "query",
|
|
33342
|
+
"schema": {
|
|
33343
|
+
"type": "integer",
|
|
33344
|
+
"minimum": 0
|
|
33345
|
+
}
|
|
33346
|
+
}
|
|
33347
|
+
],
|
|
33348
|
+
"responses": {
|
|
33349
|
+
"200": {
|
|
33350
|
+
"description": "`{ runs, page, more }`."
|
|
33351
|
+
},
|
|
33352
|
+
"403": {
|
|
33353
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33354
|
+
}
|
|
33355
|
+
}
|
|
33356
|
+
}
|
|
33357
|
+
},
|
|
33358
|
+
"/v1/processes/waiting": {
|
|
33359
|
+
"get": {
|
|
33360
|
+
"operationId": "listProcessWaiting",
|
|
33361
|
+
"summary": "Sign-offs and forms waiting for the key's person",
|
|
33362
|
+
"description": "Per process and step, how many items wait for the person behind the key. Needs process_sign.",
|
|
33363
|
+
"tags": [
|
|
33364
|
+
"Processes"
|
|
33365
|
+
],
|
|
33366
|
+
"responses": {
|
|
33367
|
+
"200": {
|
|
33368
|
+
"description": "`{ data: [{ processId, process, stepId, step, waiting }] }`."
|
|
33369
|
+
},
|
|
33370
|
+
"403": {
|
|
33371
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33372
|
+
}
|
|
33373
|
+
}
|
|
33374
|
+
}
|
|
33375
|
+
},
|
|
33376
|
+
"/v1/processes/{id}": {
|
|
33377
|
+
"get": {
|
|
33378
|
+
"operationId": "getProcess",
|
|
33379
|
+
"summary": "One process with its draft",
|
|
33380
|
+
"tags": [
|
|
33381
|
+
"Processes"
|
|
33382
|
+
],
|
|
33383
|
+
"parameters": [
|
|
33384
|
+
{
|
|
33385
|
+
"name": "id",
|
|
33386
|
+
"in": "path",
|
|
33387
|
+
"required": true,
|
|
33388
|
+
"schema": {
|
|
33389
|
+
"type": "string",
|
|
33390
|
+
"format": "uuid"
|
|
33391
|
+
}
|
|
33392
|
+
}
|
|
33393
|
+
],
|
|
33394
|
+
"responses": {
|
|
33395
|
+
"200": {
|
|
33396
|
+
"description": "The process."
|
|
33397
|
+
},
|
|
33398
|
+
"403": {
|
|
33399
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33400
|
+
},
|
|
33401
|
+
"404": {
|
|
33402
|
+
"$ref": "#/components/responses/NotFound"
|
|
33403
|
+
}
|
|
33404
|
+
}
|
|
33405
|
+
}
|
|
33406
|
+
},
|
|
33407
|
+
"/v1/processes/{id}/items": {
|
|
33408
|
+
"get": {
|
|
33409
|
+
"operationId": "listProcessItems",
|
|
33410
|
+
"summary": "Items of a run and their state",
|
|
33411
|
+
"tags": [
|
|
33412
|
+
"Processes"
|
|
33413
|
+
],
|
|
33414
|
+
"parameters": [
|
|
33415
|
+
{
|
|
33416
|
+
"name": "id",
|
|
33417
|
+
"in": "path",
|
|
33418
|
+
"required": true,
|
|
33419
|
+
"schema": {
|
|
33420
|
+
"type": "string",
|
|
33421
|
+
"format": "uuid"
|
|
33422
|
+
}
|
|
33423
|
+
},
|
|
33424
|
+
{
|
|
33425
|
+
"name": "run",
|
|
33426
|
+
"in": "query",
|
|
33427
|
+
"schema": {
|
|
33428
|
+
"type": "string",
|
|
33429
|
+
"format": "uuid"
|
|
33430
|
+
},
|
|
33431
|
+
"description": "Default: the latest run."
|
|
33432
|
+
}
|
|
33433
|
+
],
|
|
33434
|
+
"responses": {
|
|
33435
|
+
"200": {
|
|
33436
|
+
"description": "`{ runId, items: [{ documentId, name, state, at }] }`."
|
|
33437
|
+
},
|
|
33438
|
+
"403": {
|
|
33439
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33440
|
+
}
|
|
33441
|
+
}
|
|
33442
|
+
},
|
|
33443
|
+
"post": {
|
|
33444
|
+
"operationId": "postProcessItem",
|
|
33445
|
+
"summary": "Start a run for one item",
|
|
33446
|
+
"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.",
|
|
33447
|
+
"tags": [
|
|
33448
|
+
"Processes"
|
|
33449
|
+
],
|
|
33450
|
+
"parameters": [
|
|
33451
|
+
{
|
|
33452
|
+
"name": "id",
|
|
33453
|
+
"in": "path",
|
|
33454
|
+
"required": true,
|
|
33455
|
+
"schema": {
|
|
33456
|
+
"type": "string",
|
|
33457
|
+
"format": "uuid"
|
|
33458
|
+
}
|
|
33459
|
+
}
|
|
33460
|
+
],
|
|
33461
|
+
"requestBody": {
|
|
33462
|
+
"required": true,
|
|
33463
|
+
"content": {
|
|
33464
|
+
"application/json": {
|
|
33465
|
+
"schema": {
|
|
33466
|
+
"type": "object",
|
|
33467
|
+
"required": [
|
|
33468
|
+
"values"
|
|
33469
|
+
],
|
|
33470
|
+
"properties": {
|
|
33471
|
+
"values": {
|
|
33472
|
+
"type": "object",
|
|
33473
|
+
"additionalProperties": true,
|
|
33474
|
+
"example": {
|
|
33475
|
+
"Vendor": "Acme"
|
|
33476
|
+
}
|
|
33477
|
+
}
|
|
33478
|
+
}
|
|
33479
|
+
}
|
|
33480
|
+
}
|
|
33481
|
+
}
|
|
33482
|
+
},
|
|
33483
|
+
"responses": {
|
|
33484
|
+
"201": {
|
|
33485
|
+
"description": "`{ runId, process, reply? }`."
|
|
33486
|
+
},
|
|
33487
|
+
"403": {
|
|
33488
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33489
|
+
},
|
|
33490
|
+
"404": {
|
|
33491
|
+
"$ref": "#/components/responses/NotFound"
|
|
33492
|
+
},
|
|
33493
|
+
"422": {
|
|
33494
|
+
"description": "A field name the process does not have (the answer lists its fields)."
|
|
33495
|
+
}
|
|
33496
|
+
}
|
|
33497
|
+
}
|
|
33498
|
+
},
|
|
33499
|
+
"/v1/processes/{id}/run": {
|
|
33500
|
+
"post": {
|
|
33501
|
+
"operationId": "runProcessOnDocuments",
|
|
33502
|
+
"summary": "Start a run on documents",
|
|
33503
|
+
"description": "Needs process_run and the write scope.",
|
|
33504
|
+
"tags": [
|
|
33505
|
+
"Processes"
|
|
33506
|
+
],
|
|
33507
|
+
"parameters": [
|
|
33508
|
+
{
|
|
33509
|
+
"name": "id",
|
|
33510
|
+
"in": "path",
|
|
33511
|
+
"required": true,
|
|
33512
|
+
"schema": {
|
|
33513
|
+
"type": "string",
|
|
33514
|
+
"format": "uuid"
|
|
33515
|
+
}
|
|
33516
|
+
}
|
|
33517
|
+
],
|
|
33518
|
+
"requestBody": {
|
|
33519
|
+
"required": true,
|
|
33520
|
+
"content": {
|
|
33521
|
+
"application/json": {
|
|
33522
|
+
"schema": {
|
|
33523
|
+
"type": "object",
|
|
33524
|
+
"required": [
|
|
33525
|
+
"documentIds"
|
|
33526
|
+
],
|
|
33527
|
+
"properties": {
|
|
33528
|
+
"documentIds": {
|
|
33529
|
+
"type": "array",
|
|
33530
|
+
"items": {
|
|
33531
|
+
"type": "string",
|
|
33532
|
+
"format": "uuid"
|
|
33533
|
+
}
|
|
33534
|
+
}
|
|
33535
|
+
}
|
|
33536
|
+
}
|
|
33537
|
+
}
|
|
33538
|
+
}
|
|
33539
|
+
},
|
|
33540
|
+
"responses": {
|
|
33541
|
+
"201": {
|
|
33542
|
+
"description": "`{ runId, pipelineIds }`."
|
|
33543
|
+
},
|
|
33544
|
+
"403": {
|
|
33545
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33546
|
+
}
|
|
33547
|
+
}
|
|
33548
|
+
}
|
|
33549
|
+
},
|
|
33550
|
+
"/v1/processes/{id}/status": {
|
|
33551
|
+
"get": {
|
|
33552
|
+
"operationId": "getProcessStatus",
|
|
33553
|
+
"summary": "Per-step counts of a run",
|
|
33554
|
+
"tags": [
|
|
33555
|
+
"Processes"
|
|
33556
|
+
],
|
|
33557
|
+
"parameters": [
|
|
33558
|
+
{
|
|
33559
|
+
"name": "id",
|
|
33560
|
+
"in": "path",
|
|
33561
|
+
"required": true,
|
|
33562
|
+
"schema": {
|
|
33563
|
+
"type": "string",
|
|
33564
|
+
"format": "uuid"
|
|
33565
|
+
}
|
|
33566
|
+
},
|
|
33567
|
+
{
|
|
33568
|
+
"name": "run",
|
|
33569
|
+
"in": "query",
|
|
33570
|
+
"schema": {
|
|
33571
|
+
"type": "string",
|
|
33572
|
+
"format": "uuid"
|
|
33573
|
+
}
|
|
33574
|
+
}
|
|
33575
|
+
],
|
|
33576
|
+
"responses": {
|
|
33577
|
+
"200": {
|
|
33578
|
+
"description": "The run's status by step."
|
|
33579
|
+
},
|
|
33580
|
+
"403": {
|
|
33581
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33582
|
+
}
|
|
33583
|
+
}
|
|
33584
|
+
}
|
|
33585
|
+
},
|
|
33586
|
+
"/v1/processes/{id}/runs/{runId}/items/{itemKey}": {
|
|
33587
|
+
"get": {
|
|
33588
|
+
"operationId": "getProcessItemTrace",
|
|
33589
|
+
"summary": "One item's way through a run, and its values",
|
|
33590
|
+
"tags": [
|
|
33591
|
+
"Processes"
|
|
33592
|
+
],
|
|
33593
|
+
"parameters": [
|
|
33594
|
+
{
|
|
33595
|
+
"name": "id",
|
|
33596
|
+
"in": "path",
|
|
33597
|
+
"required": true,
|
|
33598
|
+
"schema": {
|
|
33599
|
+
"type": "string",
|
|
33600
|
+
"format": "uuid"
|
|
33601
|
+
}
|
|
33602
|
+
},
|
|
33603
|
+
{
|
|
33604
|
+
"name": "runId",
|
|
33605
|
+
"in": "path",
|
|
33606
|
+
"required": true,
|
|
33607
|
+
"schema": {
|
|
33608
|
+
"type": "string",
|
|
33609
|
+
"format": "uuid"
|
|
33610
|
+
}
|
|
33611
|
+
},
|
|
33612
|
+
{
|
|
33613
|
+
"name": "itemKey",
|
|
33614
|
+
"in": "path",
|
|
33615
|
+
"required": true,
|
|
33616
|
+
"schema": {
|
|
33617
|
+
"type": "string"
|
|
33618
|
+
}
|
|
33619
|
+
}
|
|
33620
|
+
],
|
|
33621
|
+
"responses": {
|
|
33622
|
+
"200": {
|
|
33623
|
+
"description": "`{ steps: [{ stepId, name, kind, status, startedAt, endedAt, note, canRetry }], values: [{ name, value }] }`."
|
|
33624
|
+
},
|
|
33625
|
+
"403": {
|
|
33626
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33627
|
+
}
|
|
33628
|
+
}
|
|
33629
|
+
}
|
|
33630
|
+
},
|
|
33631
|
+
"/v1/processes/{id}/runs/{runId}/holds/{stepId}/release": {
|
|
33632
|
+
"post": {
|
|
33633
|
+
"operationId": "signProcessHold",
|
|
33634
|
+
"summary": "Sign a sign-off step",
|
|
33635
|
+
"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.",
|
|
33636
|
+
"tags": [
|
|
33637
|
+
"Processes"
|
|
33638
|
+
],
|
|
33639
|
+
"parameters": [
|
|
33640
|
+
{
|
|
33641
|
+
"name": "id",
|
|
33642
|
+
"in": "path",
|
|
33643
|
+
"required": true,
|
|
33644
|
+
"schema": {
|
|
33645
|
+
"type": "string",
|
|
33646
|
+
"format": "uuid"
|
|
33647
|
+
}
|
|
33648
|
+
},
|
|
33649
|
+
{
|
|
33650
|
+
"name": "runId",
|
|
33651
|
+
"in": "path",
|
|
33652
|
+
"required": true,
|
|
33653
|
+
"schema": {
|
|
33654
|
+
"type": "string",
|
|
33655
|
+
"format": "uuid"
|
|
33656
|
+
}
|
|
33657
|
+
},
|
|
33658
|
+
{
|
|
33659
|
+
"name": "stepId",
|
|
33660
|
+
"in": "path",
|
|
33661
|
+
"required": true,
|
|
33662
|
+
"schema": {
|
|
33663
|
+
"type": "string"
|
|
33664
|
+
}
|
|
33665
|
+
}
|
|
33666
|
+
],
|
|
33667
|
+
"requestBody": {
|
|
33668
|
+
"content": {
|
|
33669
|
+
"application/json": {
|
|
33670
|
+
"schema": {
|
|
33671
|
+
"type": "object",
|
|
33672
|
+
"properties": {
|
|
33673
|
+
"items": {
|
|
33674
|
+
"type": "array",
|
|
33675
|
+
"items": {
|
|
33676
|
+
"type": "string"
|
|
33677
|
+
},
|
|
33678
|
+
"description": "Item keys; default every waiting item."
|
|
33679
|
+
},
|
|
33680
|
+
"decision": {
|
|
33681
|
+
"type": "string"
|
|
33682
|
+
}
|
|
33683
|
+
}
|
|
33684
|
+
}
|
|
33685
|
+
}
|
|
33686
|
+
}
|
|
33687
|
+
},
|
|
33688
|
+
"responses": {
|
|
33689
|
+
"201": {
|
|
33690
|
+
"description": "`{ released, alreadySigned }`."
|
|
33691
|
+
},
|
|
33692
|
+
"403": {
|
|
33693
|
+
"description": "The key has no person, the person lacks the Process Plane permission, or the key lacks the scope."
|
|
33694
|
+
}
|
|
33695
|
+
}
|
|
33696
|
+
}
|
|
33697
|
+
},
|
|
33230
33698
|
"/v1/contracts": {
|
|
33231
33699
|
"get": {
|
|
33232
33700
|
"operationId": "listContracts",
|
|
@@ -41592,7 +42060,9 @@
|
|
|
41592
42060
|
"already_paid",
|
|
41593
42061
|
"date_check",
|
|
41594
42062
|
"policy_rule",
|
|
41595
|
-
"above_order_value"
|
|
42063
|
+
"above_order_value",
|
|
42064
|
+
"contract_missing",
|
|
42065
|
+
"conditions_not_met"
|
|
41596
42066
|
]
|
|
41597
42067
|
},
|
|
41598
42068
|
"description": "Bills with a hold of this reason."
|
|
@@ -69242,7 +69712,9 @@
|
|
|
69242
69712
|
"already_paid",
|
|
69243
69713
|
"date_check",
|
|
69244
69714
|
"policy_rule",
|
|
69245
|
-
"above_order_value"
|
|
69715
|
+
"above_order_value",
|
|
69716
|
+
"contract_missing",
|
|
69717
|
+
"conditions_not_met"
|
|
69246
69718
|
]
|
|
69247
69719
|
},
|
|
69248
69720
|
"label": {
|
|
@@ -69328,7 +69800,9 @@
|
|
|
69328
69800
|
"already_paid",
|
|
69329
69801
|
"date_check",
|
|
69330
69802
|
"policy_rule",
|
|
69331
|
-
"above_order_value"
|
|
69803
|
+
"above_order_value",
|
|
69804
|
+
"contract_missing",
|
|
69805
|
+
"conditions_not_met"
|
|
69332
69806
|
],
|
|
69333
69807
|
"description": "The kind of hold that decides the risk."
|
|
69334
69808
|
},
|
|
@@ -69401,8 +69875,40 @@
|
|
|
69401
69875
|
},
|
|
69402
69876
|
"document_type": {
|
|
69403
69877
|
"type": "string"
|
|
69878
|
+
},
|
|
69879
|
+
"order_value": {
|
|
69880
|
+
"type": "string"
|
|
69881
|
+
},
|
|
69882
|
+
"document_date": {
|
|
69883
|
+
"type": "string"
|
|
69884
|
+
},
|
|
69885
|
+
"order_conditions": {
|
|
69886
|
+
"type": "string",
|
|
69887
|
+
"description": "The column holding the observations a purchase order sets."
|
|
69888
|
+
},
|
|
69889
|
+
"contract_conditions": {
|
|
69890
|
+
"type": "string",
|
|
69891
|
+
"description": "The column holding the conditions a contract sets to release payments."
|
|
69892
|
+
},
|
|
69893
|
+
"valid_until": {
|
|
69894
|
+
"type": "string",
|
|
69895
|
+
"description": "The column holding the date to which a document (a policy, a guarantee) is in force."
|
|
69404
69896
|
}
|
|
69405
69897
|
}
|
|
69898
|
+
},
|
|
69899
|
+
"order_type": {
|
|
69900
|
+
"type": "string",
|
|
69901
|
+
"nullable": true
|
|
69902
|
+
},
|
|
69903
|
+
"contract_value": {
|
|
69904
|
+
"type": "number",
|
|
69905
|
+
"nullable": true,
|
|
69906
|
+
"description": "The order value (ledger currency) from which a contract is expected when the order sets no observations."
|
|
69907
|
+
},
|
|
69908
|
+
"contract_type": {
|
|
69909
|
+
"type": "string",
|
|
69910
|
+
"nullable": true,
|
|
69911
|
+
"description": "The document type of a contract, looked for in the file of an order that is expected to have one."
|
|
69406
69912
|
}
|
|
69407
69913
|
}
|
|
69408
69914
|
},
|
|
@@ -69753,6 +70259,43 @@
|
|
|
69753
70259
|
],
|
|
69754
70260
|
"description": "held: a hold found a problem; evaluating: no hold yet, the contract price check is still running; needs_info: something a definitive call needs is missing; ready: none of these."
|
|
69755
70261
|
},
|
|
70262
|
+
"payment": {
|
|
70263
|
+
"type": "string",
|
|
70264
|
+
"enum": [
|
|
70265
|
+
"pay",
|
|
70266
|
+
"do_not_pay",
|
|
70267
|
+
"pending"
|
|
70268
|
+
],
|
|
70269
|
+
"description": "Whether the bill may be paid: do_not_pay while held (its purchase order's observations or contract conditions unmet among the reasons); pay once ready and its order's checklist is known to be met, or it has none; else pending."
|
|
70270
|
+
},
|
|
70271
|
+
"outcome": {
|
|
70272
|
+
"type": "string",
|
|
70273
|
+
"enum": [
|
|
70274
|
+
"to_payment",
|
|
70275
|
+
"manual_review",
|
|
70276
|
+
"adjust_proposal"
|
|
70277
|
+
],
|
|
70278
|
+
"description": "Where the bill goes next: to_payment once it may be paid; adjust_proposal when a point of its order's checklist rests on a document whose validity ended (the payment proposal is adjusted, not the invoice); else manual_review."
|
|
70279
|
+
},
|
|
70280
|
+
"checks": {
|
|
70281
|
+
"type": "object",
|
|
70282
|
+
"nullable": true,
|
|
70283
|
+
"description": "Its order's checklist points that apply to this bill, by verdict; expired counts those resting on a document whose validity ended. Null: no order, no checklist, or the file is still read.",
|
|
70284
|
+
"properties": {
|
|
70285
|
+
"met": {
|
|
70286
|
+
"type": "integer"
|
|
70287
|
+
},
|
|
70288
|
+
"not_met": {
|
|
70289
|
+
"type": "integer"
|
|
70290
|
+
},
|
|
70291
|
+
"unclear": {
|
|
70292
|
+
"type": "integer"
|
|
70293
|
+
},
|
|
70294
|
+
"expired": {
|
|
70295
|
+
"type": "integer"
|
|
70296
|
+
}
|
|
70297
|
+
}
|
|
70298
|
+
},
|
|
69756
70299
|
"holds": {
|
|
69757
70300
|
"type": "array",
|
|
69758
70301
|
"items": {
|
|
@@ -69891,7 +70434,9 @@
|
|
|
69891
70434
|
"already_paid",
|
|
69892
70435
|
"date_check",
|
|
69893
70436
|
"policy_rule",
|
|
69894
|
-
"above_order_value"
|
|
70437
|
+
"above_order_value",
|
|
70438
|
+
"contract_missing",
|
|
70439
|
+
"conditions_not_met"
|
|
69895
70440
|
]
|
|
69896
70441
|
},
|
|
69897
70442
|
"label": {
|