@talonic/docs 0.21.36 → 0.21.37
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 +8 -8
- package/dist/seo.js +1751 -55
- package/openapi.json +1751 -55
- package/package.json +1 -1
package/dist/seo.js
CHANGED
|
@@ -1140,6 +1140,119 @@ var openapi_default = {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
},
|
|
1143
|
+
"/v1/documents/{id}/file": {
|
|
1144
|
+
get: {
|
|
1145
|
+
operationId: "getDocumentFile",
|
|
1146
|
+
summary: "Stream the document's original file",
|
|
1147
|
+
description: "Streams the document's original uploaded bytes (e.g. the source PDF or\nimage) so a caller can show it alongside extracted data or a review\ndecision \u2014 for example a client-side pdf.js viewer. The platform keeps\nno separate page-image/raster store, so a caller that wants to render\na specific page renders this response itself.\n\nSupports HTTP byte-range requests (`Range: bytes=...`) so a viewer can\nfetch only the pages it needs instead of the whole file; a `206`\nresponse carries `Content-Range` and omits nothing else. Returns 404\nif the document does not exist, is not visible to the API key's\ncreator (Sources IAM), or has no recoverable original file (e.g. a\nlegacy document whose source was never retained \u2014 use\n`GET /v1/documents/{id}/markdown` instead in that case).\n\nA linked duplicate (an exact re-submission of an already-ingested\nfile) streams the CANONICAL document's bytes while keeping this id's\nown filename in `Content-Disposition`.\n",
|
|
1148
|
+
tags: [
|
|
1149
|
+
"Documents"
|
|
1150
|
+
],
|
|
1151
|
+
parameters: [
|
|
1152
|
+
{
|
|
1153
|
+
$ref: "#/components/parameters/ResourceId"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
name: "Range",
|
|
1157
|
+
in: "header",
|
|
1158
|
+
required: false,
|
|
1159
|
+
schema: {
|
|
1160
|
+
type: "string"
|
|
1161
|
+
},
|
|
1162
|
+
example: "bytes=0-1048575",
|
|
1163
|
+
description: "Standard HTTP byte-range request (RFC 7233). Honored end-to-end; an unsatisfiable or multi-range request currently degrades to a full `200` response rather than a `416`."
|
|
1164
|
+
}
|
|
1165
|
+
],
|
|
1166
|
+
responses: {
|
|
1167
|
+
"200": {
|
|
1168
|
+
description: "The full file. `Accept-Ranges: bytes` is always present so a client can switch to ranged requests.",
|
|
1169
|
+
headers: {
|
|
1170
|
+
"Content-Type": {
|
|
1171
|
+
schema: {
|
|
1172
|
+
type: "string"
|
|
1173
|
+
},
|
|
1174
|
+
description: "The document's stored MIME type, or `application/octet-stream` when unknown."
|
|
1175
|
+
},
|
|
1176
|
+
"Content-Disposition": {
|
|
1177
|
+
schema: {
|
|
1178
|
+
type: "string"
|
|
1179
|
+
},
|
|
1180
|
+
description: "`inline; filename=\"...\"; filename*=UTF-8''...` (RFC 5987) \u2014 the document's own filename, sanitized."
|
|
1181
|
+
},
|
|
1182
|
+
"Content-Length": {
|
|
1183
|
+
schema: {
|
|
1184
|
+
type: "integer"
|
|
1185
|
+
},
|
|
1186
|
+
description: "Present only when the byte count is known and positive."
|
|
1187
|
+
},
|
|
1188
|
+
"Accept-Ranges": {
|
|
1189
|
+
schema: {
|
|
1190
|
+
type: "string",
|
|
1191
|
+
example: "bytes"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
content: {
|
|
1196
|
+
"application/octet-stream": {
|
|
1197
|
+
schema: {
|
|
1198
|
+
type: "string",
|
|
1199
|
+
format: "binary"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"application/pdf": {
|
|
1203
|
+
schema: {
|
|
1204
|
+
type: "string",
|
|
1205
|
+
format: "binary"
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"206": {
|
|
1211
|
+
description: "Partial content for a satisfied `Range` request.",
|
|
1212
|
+
headers: {
|
|
1213
|
+
"Content-Range": {
|
|
1214
|
+
schema: {
|
|
1215
|
+
type: "string"
|
|
1216
|
+
},
|
|
1217
|
+
example: "bytes 0-1048575/5242880"
|
|
1218
|
+
},
|
|
1219
|
+
"Content-Type": {
|
|
1220
|
+
schema: {
|
|
1221
|
+
type: "string"
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
content: {
|
|
1226
|
+
"application/octet-stream": {
|
|
1227
|
+
schema: {
|
|
1228
|
+
type: "string",
|
|
1229
|
+
format: "binary"
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
"401": {
|
|
1235
|
+
$ref: "#/components/responses/Unauthorized"
|
|
1236
|
+
},
|
|
1237
|
+
"404": {
|
|
1238
|
+
$ref: "#/components/responses/NotFound"
|
|
1239
|
+
},
|
|
1240
|
+
"416": {
|
|
1241
|
+
description: 'The `Range` value is syntactically invalid or entirely outside the\nfile (documented for RFC 7233 completeness \u2014 the current\nimplementation degrades this case to a full `200` instead of\nreturning `416`; treat both as "the server did not honor the\nrequested range").\n',
|
|
1242
|
+
content: {
|
|
1243
|
+
"application/json": {
|
|
1244
|
+
schema: {
|
|
1245
|
+
$ref: "#/components/schemas/ErrorResponse"
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
"429": {
|
|
1251
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1143
1256
|
"/v1/documents/{id}/span-geometry": {
|
|
1144
1257
|
get: {
|
|
1145
1258
|
operationId: "getDocumentSpanGeometry",
|
|
@@ -1806,7 +1919,7 @@ var openapi_default = {
|
|
|
1806
1919
|
patch: {
|
|
1807
1920
|
operationId: "updateExtractionData",
|
|
1808
1921
|
summary: "Correct extraction data",
|
|
1809
|
-
description:
|
|
1922
|
+
description: 'Submit field-level corrections. Each key in the body is a field name; the value\nis the corrected value. Corrected fields are locked at confidence 1.0.\n\nCorrections are written to the **value plane** as new cell versions\n(`source: api_correction`) and mirrored into the extraction data. They pass the\ncentral cell-write authority guard first: a field whose current value was\npromoted by review, or is held for approval, is **withheld** and reported in\n`cells_skipped` instead of being overwritten. A document that has no\ncapture-layer record yet answers `value_plane: "not_migrated"` and is corrected\nin the extraction data only.\n',
|
|
1810
1923
|
tags: [
|
|
1811
1924
|
"Extractions"
|
|
1812
1925
|
],
|
|
@@ -1837,7 +1950,7 @@ var openapi_default = {
|
|
|
1837
1950
|
content: {
|
|
1838
1951
|
"application/json": {
|
|
1839
1952
|
schema: {
|
|
1840
|
-
$ref: "#/components/schemas/
|
|
1953
|
+
$ref: "#/components/schemas/ExtractionCorrectionResponse"
|
|
1841
1954
|
},
|
|
1842
1955
|
example: {
|
|
1843
1956
|
id: "d1a2b3c4-5678-9abc-def0-1234567890ab",
|
|
@@ -1865,6 +1978,12 @@ var openapi_default = {
|
|
|
1865
1978
|
"vendor_name",
|
|
1866
1979
|
"total_amount"
|
|
1867
1980
|
],
|
|
1981
|
+
value_plane: "written",
|
|
1982
|
+
cells_written: [
|
|
1983
|
+
"vendor_name",
|
|
1984
|
+
"total_amount"
|
|
1985
|
+
],
|
|
1986
|
+
cells_skipped: [],
|
|
1868
1987
|
processing: {
|
|
1869
1988
|
duration_ms: 3420,
|
|
1870
1989
|
pages_processed: 3,
|
|
@@ -1881,6 +2000,9 @@ var openapi_default = {
|
|
|
1881
2000
|
}
|
|
1882
2001
|
}
|
|
1883
2002
|
},
|
|
2003
|
+
"400": {
|
|
2004
|
+
$ref: "#/components/responses/BadRequest"
|
|
2005
|
+
},
|
|
1884
2006
|
"401": {
|
|
1885
2007
|
$ref: "#/components/responses/Unauthorized"
|
|
1886
2008
|
},
|
|
@@ -3998,6 +4120,7 @@ var openapi_default = {
|
|
|
3998
4120
|
delete: {
|
|
3999
4121
|
operationId: "deleteDeliveryDestination",
|
|
4000
4122
|
summary: "Delete a delivery destination",
|
|
4123
|
+
description: "Deletes the destination and ORPHANS the bindings routed to it: each\nis deactivated, stamped `last_status: destination_deleted`, and keeps\nevery other setting with `destination_id: null`. Re-point such a\nbinding with `PUT /v1/delivery/bindings/{id}` (`destination_id` is\nrequired on that update) and set `is_active: true` to resume. The\ndestination's delivery history is deleted with it.\n",
|
|
4001
4124
|
tags: [
|
|
4002
4125
|
"Delivery"
|
|
4003
4126
|
],
|
|
@@ -4008,7 +4131,7 @@ var openapi_default = {
|
|
|
4008
4131
|
],
|
|
4009
4132
|
responses: {
|
|
4010
4133
|
"200": {
|
|
4011
|
-
description: "Destination deleted.",
|
|
4134
|
+
description: "Destination deleted; its bindings remain, orphaned.",
|
|
4012
4135
|
content: {
|
|
4013
4136
|
"application/json": {
|
|
4014
4137
|
schema: {
|
|
@@ -4491,7 +4614,7 @@ var openapi_default = {
|
|
|
4491
4614
|
"write"
|
|
4492
4615
|
],
|
|
4493
4616
|
summary: "Bulk-clear the delivery log",
|
|
4494
|
-
description: "Deletes every delivery attempt record for the tenant matching the\noptional `binding_id` / `destination_id` / `status` filters, the\nsame filters as the list route (no filters clears the whole log).\nThis is a deliberate admin cleanup: dead-letter rows referencing a\ndeleted item are de-linked, not removed. Requires an\norganization-scoped API key.\n",
|
|
4617
|
+
description: "Deletes every delivery attempt record for the tenant matching the\noptional `binding_id` / `destination_id` / `status` filters, the\nsame filters as the list route (no filters clears the whole log).\nThis is a deliberate admin cleanup: dead-letter rows referencing a\ndeleted item are de-linked, not removed. Requires an\norganization-scoped API key.\n\nRows are removed in bounded batches for a fixed time budget per\nrequest; a large log answers `remaining: true` with the count removed\nso far, and the caller repeats the same request until it answers\n`remaining: false`.\n",
|
|
4495
4618
|
tags: [
|
|
4496
4619
|
"Delivery"
|
|
4497
4620
|
],
|
|
@@ -4527,7 +4650,7 @@ var openapi_default = {
|
|
|
4527
4650
|
],
|
|
4528
4651
|
responses: {
|
|
4529
4652
|
"200": {
|
|
4530
|
-
description: "Rows removed.",
|
|
4653
|
+
description: "Rows removed in this request.",
|
|
4531
4654
|
content: {
|
|
4532
4655
|
"application/json": {
|
|
4533
4656
|
schema: {
|
|
@@ -4535,6 +4658,10 @@ var openapi_default = {
|
|
|
4535
4658
|
properties: {
|
|
4536
4659
|
deleted: {
|
|
4537
4660
|
type: "integer"
|
|
4661
|
+
},
|
|
4662
|
+
remaining: {
|
|
4663
|
+
type: "boolean",
|
|
4664
|
+
description: "True when the time budget ended before the matching set was exhausted; call again."
|
|
4538
4665
|
}
|
|
4539
4666
|
}
|
|
4540
4667
|
}
|
|
@@ -10765,7 +10892,7 @@ var openapi_default = {
|
|
|
10765
10892
|
},
|
|
10766
10893
|
scopes: {
|
|
10767
10894
|
type: "array",
|
|
10768
|
-
description: "Subset of: extract, read, write, operations, billing, delivery, usage. Defaults to extract/read/write/operations. `usage` (
|
|
10895
|
+
description: "Subset of: extract, read, write, operations, billing, delivery, usage, records_write. Defaults to extract/read/write/operations. `usage` (the cost-visibility routes `GET /v1/usage/pipelines/:id` and `GET /v1/usage/runs/:id`) and `records_write` (record-set writes) are scope-attenuated: requesting one is rejected with `403` (`scope_not_grantable`) unless the calling key itself already carries it \u2014 a key can only ever narrow its own privilege on a newly minted key, never widen it. De-novo grants of either happen only through owner+ key management, never through self-serve key creation.",
|
|
10769
10896
|
items: {
|
|
10770
10897
|
type: "string",
|
|
10771
10898
|
enum: [
|
|
@@ -10775,7 +10902,8 @@ var openapi_default = {
|
|
|
10775
10902
|
"operations",
|
|
10776
10903
|
"billing",
|
|
10777
10904
|
"delivery",
|
|
10778
|
-
"usage"
|
|
10905
|
+
"usage",
|
|
10906
|
+
"records_write"
|
|
10779
10907
|
]
|
|
10780
10908
|
}
|
|
10781
10909
|
}
|
|
@@ -21771,7 +21899,7 @@ var openapi_default = {
|
|
|
21771
21899
|
"Events"
|
|
21772
21900
|
],
|
|
21773
21901
|
summary: "List tenant events",
|
|
21774
|
-
description: "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved, and the Field Registry lifecycle family field.graduated / field.promoted / field.demoted / field.merged / field.renamed \u2014 every payload names the concept by stable `field_id`, so a consumer caching /v1/fields can invalidate instead of polling). Alias of /v1/delivery/events at the API root.\n",
|
|
21902
|
+
description: "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved, and the Field Registry lifecycle family field.graduated / field.promoted / field.demoted / field.merged / field.renamed \u2014 every payload names the concept by stable `field_id`, so a consumer caching /v1/fields can invalidate instead of polling). Also carries the external-work family: app.decision_task.offered and agent_task.offered (each written in the same transaction as the task row it announces, so the task is always loadable when the event is visible) and app.run.sealed (a sealed App run, with record_set_id / subjects when the sealed record names them). The exhaustive list is /v1/delivery/catalog/signals. Alias of /v1/delivery/events at the API root.\n",
|
|
21775
21903
|
operationId: "listEvents",
|
|
21776
21904
|
security: [
|
|
21777
21905
|
{
|
|
@@ -22608,7 +22736,7 @@ var openapi_default = {
|
|
|
22608
22736
|
"Extractions"
|
|
22609
22737
|
],
|
|
22610
22738
|
summary: "Correct extracted field values",
|
|
22611
|
-
description: "Overrides field values on an extraction (each set to confidence 1.0 and locked). Body is a flat map of field name to corrected value. Requires write scope.\n",
|
|
22739
|
+
description: "Alias of `PATCH /v1/extractions/{id}/data`, with identical semantics. Overrides field values on an extraction (each set to confidence 1.0 and locked) by writing new value-plane cell versions under the cell-write authority guard; fields the guard withholds come back in `cells_skipped` and are left unchanged. Body is a flat map of field name to corrected value. Requires write scope.\n",
|
|
22612
22740
|
operationId: "correctExtraction",
|
|
22613
22741
|
security: [
|
|
22614
22742
|
{
|
|
@@ -22640,7 +22768,17 @@ var openapi_default = {
|
|
|
22640
22768
|
},
|
|
22641
22769
|
responses: {
|
|
22642
22770
|
"200": {
|
|
22643
|
-
description: "Updated extraction"
|
|
22771
|
+
description: "Updated extraction, with the value-plane correction outcome.",
|
|
22772
|
+
content: {
|
|
22773
|
+
"application/json": {
|
|
22774
|
+
schema: {
|
|
22775
|
+
$ref: "#/components/schemas/ExtractionCorrectionResponse"
|
|
22776
|
+
}
|
|
22777
|
+
}
|
|
22778
|
+
}
|
|
22779
|
+
},
|
|
22780
|
+
"400": {
|
|
22781
|
+
description: "Body is not a JSON object"
|
|
22644
22782
|
},
|
|
22645
22783
|
"404": {
|
|
22646
22784
|
description: "Not found"
|
|
@@ -24016,6 +24154,465 @@ var openapi_default = {
|
|
|
24016
24154
|
}
|
|
24017
24155
|
}
|
|
24018
24156
|
},
|
|
24157
|
+
"/v1/apps/{id}/decision-tasks": {
|
|
24158
|
+
get: {
|
|
24159
|
+
operationId: "listDecisionTasks",
|
|
24160
|
+
summary: "List an External app's decision tasks",
|
|
24161
|
+
description: "The polling alternative to the `app.decision_task.offered` webhook. Requires a `decide` grant on the app; machine callers only.\n",
|
|
24162
|
+
tags: [
|
|
24163
|
+
"Apps"
|
|
24164
|
+
],
|
|
24165
|
+
parameters: [
|
|
24166
|
+
{
|
|
24167
|
+
name: "id",
|
|
24168
|
+
in: "path",
|
|
24169
|
+
required: true,
|
|
24170
|
+
schema: {
|
|
24171
|
+
type: "string",
|
|
24172
|
+
format: "uuid"
|
|
24173
|
+
}
|
|
24174
|
+
},
|
|
24175
|
+
{
|
|
24176
|
+
name: "status",
|
|
24177
|
+
in: "query",
|
|
24178
|
+
schema: {
|
|
24179
|
+
type: "string",
|
|
24180
|
+
enum: [
|
|
24181
|
+
"available",
|
|
24182
|
+
"claimed",
|
|
24183
|
+
"submitted",
|
|
24184
|
+
"released",
|
|
24185
|
+
"failed",
|
|
24186
|
+
"timed_out",
|
|
24187
|
+
"cancelled"
|
|
24188
|
+
]
|
|
24189
|
+
}
|
|
24190
|
+
},
|
|
24191
|
+
{
|
|
24192
|
+
name: "limit",
|
|
24193
|
+
in: "query",
|
|
24194
|
+
schema: {
|
|
24195
|
+
type: "integer",
|
|
24196
|
+
minimum: 1,
|
|
24197
|
+
maximum: 100,
|
|
24198
|
+
default: 50
|
|
24199
|
+
}
|
|
24200
|
+
},
|
|
24201
|
+
{
|
|
24202
|
+
name: "cursor",
|
|
24203
|
+
in: "query",
|
|
24204
|
+
schema: {
|
|
24205
|
+
type: "string"
|
|
24206
|
+
}
|
|
24207
|
+
}
|
|
24208
|
+
],
|
|
24209
|
+
responses: {
|
|
24210
|
+
"200": {
|
|
24211
|
+
description: "Cursor-paginated decision-task metadata. The frozen input package is never inlined.",
|
|
24212
|
+
content: {
|
|
24213
|
+
"application/json": {
|
|
24214
|
+
schema: {
|
|
24215
|
+
type: "object",
|
|
24216
|
+
properties: {
|
|
24217
|
+
data: {
|
|
24218
|
+
type: "array",
|
|
24219
|
+
items: {
|
|
24220
|
+
$ref: "#/components/schemas/DecisionTaskMetadata"
|
|
24221
|
+
}
|
|
24222
|
+
},
|
|
24223
|
+
pagination: {
|
|
24224
|
+
$ref: "#/components/schemas/CursorPagination"
|
|
24225
|
+
}
|
|
24226
|
+
}
|
|
24227
|
+
}
|
|
24228
|
+
}
|
|
24229
|
+
}
|
|
24230
|
+
},
|
|
24231
|
+
"400": {
|
|
24232
|
+
$ref: "#/components/responses/BadRequest"
|
|
24233
|
+
},
|
|
24234
|
+
"401": {
|
|
24235
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24236
|
+
},
|
|
24237
|
+
"403": {
|
|
24238
|
+
$ref: "#/components/responses/Forbidden"
|
|
24239
|
+
},
|
|
24240
|
+
"429": {
|
|
24241
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24242
|
+
}
|
|
24243
|
+
}
|
|
24244
|
+
}
|
|
24245
|
+
},
|
|
24246
|
+
"/v1/decision-tasks/{id}/claim": {
|
|
24247
|
+
post: {
|
|
24248
|
+
operationId: "claimDecisionTask",
|
|
24249
|
+
summary: "Claim an External-mode decision task",
|
|
24250
|
+
description: "Takes the exclusive lease, bumps `execution_epoch`, and returns the decision bundle: task metadata, the output contract, the run's precedent block, and a package DESCRIPTOR. The package itself is read in pages through `GET /v1/decision-tasks/{id}/package`.\n",
|
|
24251
|
+
tags: [
|
|
24252
|
+
"Apps"
|
|
24253
|
+
],
|
|
24254
|
+
parameters: [
|
|
24255
|
+
{
|
|
24256
|
+
name: "id",
|
|
24257
|
+
in: "path",
|
|
24258
|
+
required: true,
|
|
24259
|
+
schema: {
|
|
24260
|
+
type: "string",
|
|
24261
|
+
format: "uuid"
|
|
24262
|
+
}
|
|
24263
|
+
}
|
|
24264
|
+
],
|
|
24265
|
+
responses: {
|
|
24266
|
+
"200": {
|
|
24267
|
+
description: "The decision bundle for the claimed task.",
|
|
24268
|
+
content: {
|
|
24269
|
+
"application/json": {
|
|
24270
|
+
schema: {
|
|
24271
|
+
$ref: "#/components/schemas/DecisionTaskBundle"
|
|
24272
|
+
}
|
|
24273
|
+
}
|
|
24274
|
+
}
|
|
24275
|
+
},
|
|
24276
|
+
"401": {
|
|
24277
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24278
|
+
},
|
|
24279
|
+
"403": {
|
|
24280
|
+
$ref: "#/components/responses/Forbidden"
|
|
24281
|
+
},
|
|
24282
|
+
"404": {
|
|
24283
|
+
$ref: "#/components/responses/NotFound"
|
|
24284
|
+
},
|
|
24285
|
+
"409": {
|
|
24286
|
+
$ref: "#/components/responses/Conflict"
|
|
24287
|
+
},
|
|
24288
|
+
"429": {
|
|
24289
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24290
|
+
}
|
|
24291
|
+
}
|
|
24292
|
+
}
|
|
24293
|
+
},
|
|
24294
|
+
"/v1/decision-tasks/{id}/package": {
|
|
24295
|
+
get: {
|
|
24296
|
+
operationId: "readDecisionTaskPackage",
|
|
24297
|
+
summary: "Read a page of the run's frozen input package",
|
|
24298
|
+
description: "Serves the persisted package exactly as assembled, in cursor pages. Readable by the client holding the claim only; every page is journaled onto the run as `package_read`.\n",
|
|
24299
|
+
tags: [
|
|
24300
|
+
"Apps"
|
|
24301
|
+
],
|
|
24302
|
+
parameters: [
|
|
24303
|
+
{
|
|
24304
|
+
name: "id",
|
|
24305
|
+
in: "path",
|
|
24306
|
+
required: true,
|
|
24307
|
+
schema: {
|
|
24308
|
+
type: "string",
|
|
24309
|
+
format: "uuid"
|
|
24310
|
+
}
|
|
24311
|
+
},
|
|
24312
|
+
{
|
|
24313
|
+
name: "cursor",
|
|
24314
|
+
in: "query",
|
|
24315
|
+
description: "Opaque cursor from a previous page; omit for the first page.",
|
|
24316
|
+
schema: {
|
|
24317
|
+
type: "string"
|
|
24318
|
+
}
|
|
24319
|
+
},
|
|
24320
|
+
{
|
|
24321
|
+
name: "limit",
|
|
24322
|
+
in: "query",
|
|
24323
|
+
description: "Page size; defaults to apps.package_page_size, capped at apps.package_page_size_max.",
|
|
24324
|
+
schema: {
|
|
24325
|
+
type: "integer",
|
|
24326
|
+
minimum: 1,
|
|
24327
|
+
maximum: 2e3
|
|
24328
|
+
}
|
|
24329
|
+
}
|
|
24330
|
+
],
|
|
24331
|
+
responses: {
|
|
24332
|
+
"200": {
|
|
24333
|
+
description: "One page of package records, in the package's frozen order.",
|
|
24334
|
+
content: {
|
|
24335
|
+
"application/json": {
|
|
24336
|
+
schema: {
|
|
24337
|
+
$ref: "#/components/schemas/DecisionTaskPackagePage"
|
|
24338
|
+
}
|
|
24339
|
+
}
|
|
24340
|
+
}
|
|
24341
|
+
},
|
|
24342
|
+
"400": {
|
|
24343
|
+
$ref: "#/components/responses/BadRequest"
|
|
24344
|
+
},
|
|
24345
|
+
"401": {
|
|
24346
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24347
|
+
},
|
|
24348
|
+
"403": {
|
|
24349
|
+
$ref: "#/components/responses/Forbidden"
|
|
24350
|
+
},
|
|
24351
|
+
"404": {
|
|
24352
|
+
$ref: "#/components/responses/NotFound"
|
|
24353
|
+
},
|
|
24354
|
+
"409": {
|
|
24355
|
+
$ref: "#/components/responses/Conflict"
|
|
24356
|
+
},
|
|
24357
|
+
"429": {
|
|
24358
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24359
|
+
}
|
|
24360
|
+
}
|
|
24361
|
+
}
|
|
24362
|
+
},
|
|
24363
|
+
"/v1/decision-tasks/{id}/heartbeat": {
|
|
24364
|
+
post: {
|
|
24365
|
+
operationId: "heartbeatDecisionTask",
|
|
24366
|
+
summary: "Extend the decision-task lease",
|
|
24367
|
+
description: "The lease never extends past the task's SLA deadline. A stale epoch is a 409 and journals nothing.",
|
|
24368
|
+
tags: [
|
|
24369
|
+
"Apps"
|
|
24370
|
+
],
|
|
24371
|
+
parameters: [
|
|
24372
|
+
{
|
|
24373
|
+
name: "id",
|
|
24374
|
+
in: "path",
|
|
24375
|
+
required: true,
|
|
24376
|
+
schema: {
|
|
24377
|
+
type: "string",
|
|
24378
|
+
format: "uuid"
|
|
24379
|
+
}
|
|
24380
|
+
}
|
|
24381
|
+
],
|
|
24382
|
+
requestBody: {
|
|
24383
|
+
required: true,
|
|
24384
|
+
content: {
|
|
24385
|
+
"application/json": {
|
|
24386
|
+
schema: {
|
|
24387
|
+
$ref: "#/components/schemas/DecisionTaskEpoch"
|
|
24388
|
+
}
|
|
24389
|
+
}
|
|
24390
|
+
}
|
|
24391
|
+
},
|
|
24392
|
+
responses: {
|
|
24393
|
+
"200": {
|
|
24394
|
+
description: "Updated task metadata.",
|
|
24395
|
+
content: {
|
|
24396
|
+
"application/json": {
|
|
24397
|
+
schema: {
|
|
24398
|
+
$ref: "#/components/schemas/DecisionTaskMetadata"
|
|
24399
|
+
}
|
|
24400
|
+
}
|
|
24401
|
+
}
|
|
24402
|
+
},
|
|
24403
|
+
"400": {
|
|
24404
|
+
$ref: "#/components/responses/BadRequest"
|
|
24405
|
+
},
|
|
24406
|
+
"401": {
|
|
24407
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24408
|
+
},
|
|
24409
|
+
"403": {
|
|
24410
|
+
$ref: "#/components/responses/Forbidden"
|
|
24411
|
+
},
|
|
24412
|
+
"404": {
|
|
24413
|
+
$ref: "#/components/responses/NotFound"
|
|
24414
|
+
},
|
|
24415
|
+
"409": {
|
|
24416
|
+
$ref: "#/components/responses/Conflict"
|
|
24417
|
+
},
|
|
24418
|
+
"429": {
|
|
24419
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24420
|
+
}
|
|
24421
|
+
}
|
|
24422
|
+
}
|
|
24423
|
+
},
|
|
24424
|
+
"/v1/decision-tasks/{id}/submit": {
|
|
24425
|
+
post: {
|
|
24426
|
+
operationId: "submitDecisionTask",
|
|
24427
|
+
summary: "Submit the decision and resume the run",
|
|
24428
|
+
description: "`outcome` is validated against the task's output contract, every evidence locator must exist in the frozen input package, and a decision rationale is mandatory. Rejections journal a `rejected` event. Submit is idempotent per claimant + epoch.\n",
|
|
24429
|
+
tags: [
|
|
24430
|
+
"Apps"
|
|
24431
|
+
],
|
|
24432
|
+
parameters: [
|
|
24433
|
+
{
|
|
24434
|
+
name: "id",
|
|
24435
|
+
in: "path",
|
|
24436
|
+
required: true,
|
|
24437
|
+
schema: {
|
|
24438
|
+
type: "string",
|
|
24439
|
+
format: "uuid"
|
|
24440
|
+
}
|
|
24441
|
+
}
|
|
24442
|
+
],
|
|
24443
|
+
requestBody: {
|
|
24444
|
+
required: true,
|
|
24445
|
+
content: {
|
|
24446
|
+
"application/json": {
|
|
24447
|
+
schema: {
|
|
24448
|
+
$ref: "#/components/schemas/DecisionTaskSubmit"
|
|
24449
|
+
}
|
|
24450
|
+
}
|
|
24451
|
+
}
|
|
24452
|
+
},
|
|
24453
|
+
responses: {
|
|
24454
|
+
"200": {
|
|
24455
|
+
description: "Submitted task metadata.",
|
|
24456
|
+
content: {
|
|
24457
|
+
"application/json": {
|
|
24458
|
+
schema: {
|
|
24459
|
+
$ref: "#/components/schemas/DecisionTaskMetadata"
|
|
24460
|
+
}
|
|
24461
|
+
}
|
|
24462
|
+
}
|
|
24463
|
+
},
|
|
24464
|
+
"400": {
|
|
24465
|
+
$ref: "#/components/responses/BadRequest"
|
|
24466
|
+
},
|
|
24467
|
+
"401": {
|
|
24468
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24469
|
+
},
|
|
24470
|
+
"403": {
|
|
24471
|
+
$ref: "#/components/responses/Forbidden"
|
|
24472
|
+
},
|
|
24473
|
+
"404": {
|
|
24474
|
+
$ref: "#/components/responses/NotFound"
|
|
24475
|
+
},
|
|
24476
|
+
"409": {
|
|
24477
|
+
$ref: "#/components/responses/Conflict"
|
|
24478
|
+
},
|
|
24479
|
+
"413": {
|
|
24480
|
+
$ref: "#/components/responses/PayloadTooLarge"
|
|
24481
|
+
},
|
|
24482
|
+
"422": {
|
|
24483
|
+
$ref: "#/components/responses/ValidationError"
|
|
24484
|
+
},
|
|
24485
|
+
"429": {
|
|
24486
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24487
|
+
}
|
|
24488
|
+
}
|
|
24489
|
+
}
|
|
24490
|
+
},
|
|
24491
|
+
"/v1/decision-tasks/{id}/release": {
|
|
24492
|
+
post: {
|
|
24493
|
+
operationId: "releaseDecisionTask",
|
|
24494
|
+
summary: "Give a claimed decision task back",
|
|
24495
|
+
description: "The task returns to `available`; the next claim bumps the epoch.",
|
|
24496
|
+
tags: [
|
|
24497
|
+
"Apps"
|
|
24498
|
+
],
|
|
24499
|
+
parameters: [
|
|
24500
|
+
{
|
|
24501
|
+
name: "id",
|
|
24502
|
+
in: "path",
|
|
24503
|
+
required: true,
|
|
24504
|
+
schema: {
|
|
24505
|
+
type: "string",
|
|
24506
|
+
format: "uuid"
|
|
24507
|
+
}
|
|
24508
|
+
}
|
|
24509
|
+
],
|
|
24510
|
+
requestBody: {
|
|
24511
|
+
required: true,
|
|
24512
|
+
content: {
|
|
24513
|
+
"application/json": {
|
|
24514
|
+
schema: {
|
|
24515
|
+
$ref: "#/components/schemas/DecisionTaskEpoch"
|
|
24516
|
+
}
|
|
24517
|
+
}
|
|
24518
|
+
}
|
|
24519
|
+
},
|
|
24520
|
+
responses: {
|
|
24521
|
+
"200": {
|
|
24522
|
+
description: "Released task metadata.",
|
|
24523
|
+
content: {
|
|
24524
|
+
"application/json": {
|
|
24525
|
+
schema: {
|
|
24526
|
+
$ref: "#/components/schemas/DecisionTaskMetadata"
|
|
24527
|
+
}
|
|
24528
|
+
}
|
|
24529
|
+
}
|
|
24530
|
+
},
|
|
24531
|
+
"400": {
|
|
24532
|
+
$ref: "#/components/responses/BadRequest"
|
|
24533
|
+
},
|
|
24534
|
+
"401": {
|
|
24535
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24536
|
+
},
|
|
24537
|
+
"403": {
|
|
24538
|
+
$ref: "#/components/responses/Forbidden"
|
|
24539
|
+
},
|
|
24540
|
+
"404": {
|
|
24541
|
+
$ref: "#/components/responses/NotFound"
|
|
24542
|
+
},
|
|
24543
|
+
"409": {
|
|
24544
|
+
$ref: "#/components/responses/Conflict"
|
|
24545
|
+
},
|
|
24546
|
+
"429": {
|
|
24547
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24548
|
+
}
|
|
24549
|
+
}
|
|
24550
|
+
}
|
|
24551
|
+
},
|
|
24552
|
+
"/v1/decision-tasks/{id}/fail": {
|
|
24553
|
+
post: {
|
|
24554
|
+
operationId: "failDecisionTask",
|
|
24555
|
+
summary: "Report that the agent cannot decide",
|
|
24556
|
+
description: "Terminates the task, raises a Human Review carrying the stated reason, and applies the app's declared fallback policy (`rules`, `hold`, or `none`) exactly as an SLA expiry does. Permitted after the lease has lapsed: reporting failure must always stay possible.\n",
|
|
24557
|
+
tags: [
|
|
24558
|
+
"Apps"
|
|
24559
|
+
],
|
|
24560
|
+
parameters: [
|
|
24561
|
+
{
|
|
24562
|
+
name: "id",
|
|
24563
|
+
in: "path",
|
|
24564
|
+
required: true,
|
|
24565
|
+
schema: {
|
|
24566
|
+
type: "string",
|
|
24567
|
+
format: "uuid"
|
|
24568
|
+
}
|
|
24569
|
+
}
|
|
24570
|
+
],
|
|
24571
|
+
requestBody: {
|
|
24572
|
+
required: true,
|
|
24573
|
+
content: {
|
|
24574
|
+
"application/json": {
|
|
24575
|
+
schema: {
|
|
24576
|
+
$ref: "#/components/schemas/DecisionTaskFail"
|
|
24577
|
+
}
|
|
24578
|
+
}
|
|
24579
|
+
}
|
|
24580
|
+
},
|
|
24581
|
+
responses: {
|
|
24582
|
+
"200": {
|
|
24583
|
+
description: "Failed task metadata.",
|
|
24584
|
+
content: {
|
|
24585
|
+
"application/json": {
|
|
24586
|
+
schema: {
|
|
24587
|
+
$ref: "#/components/schemas/DecisionTaskMetadata"
|
|
24588
|
+
}
|
|
24589
|
+
}
|
|
24590
|
+
}
|
|
24591
|
+
},
|
|
24592
|
+
"400": {
|
|
24593
|
+
$ref: "#/components/responses/BadRequest"
|
|
24594
|
+
},
|
|
24595
|
+
"401": {
|
|
24596
|
+
$ref: "#/components/responses/Unauthorized"
|
|
24597
|
+
},
|
|
24598
|
+
"403": {
|
|
24599
|
+
$ref: "#/components/responses/Forbidden"
|
|
24600
|
+
},
|
|
24601
|
+
"404": {
|
|
24602
|
+
$ref: "#/components/responses/NotFound"
|
|
24603
|
+
},
|
|
24604
|
+
"409": {
|
|
24605
|
+
$ref: "#/components/responses/Conflict"
|
|
24606
|
+
},
|
|
24607
|
+
"422": {
|
|
24608
|
+
$ref: "#/components/responses/ValidationError"
|
|
24609
|
+
},
|
|
24610
|
+
"429": {
|
|
24611
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
24612
|
+
}
|
|
24613
|
+
}
|
|
24614
|
+
}
|
|
24615
|
+
},
|
|
24019
24616
|
"/v1/apps": {
|
|
24020
24617
|
get: {
|
|
24021
24618
|
operationId: "listApps",
|
|
@@ -24329,6 +24926,96 @@ var openapi_default = {
|
|
|
24329
24926
|
}
|
|
24330
24927
|
}
|
|
24331
24928
|
},
|
|
24929
|
+
"/v1/apps/import": {
|
|
24930
|
+
post: {
|
|
24931
|
+
operationId: "importApp",
|
|
24932
|
+
summary: "Import a previously exported app manifest as a new app (spec B3.2 Portability)",
|
|
24933
|
+
description: "Creates the app then saves `content` as its draft, through the same create+saveDraft path as POST /v1/apps/{id}/duplicate. `mode` defaults from `content.mode` when the body omits it. Counterpart to GET /v1/apps/{id}/export.",
|
|
24934
|
+
tags: [
|
|
24935
|
+
"Apps"
|
|
24936
|
+
],
|
|
24937
|
+
requestBody: {
|
|
24938
|
+
required: true,
|
|
24939
|
+
content: {
|
|
24940
|
+
"application/json": {
|
|
24941
|
+
schema: {
|
|
24942
|
+
type: "object",
|
|
24943
|
+
required: [
|
|
24944
|
+
"slug",
|
|
24945
|
+
"display_name",
|
|
24946
|
+
"content",
|
|
24947
|
+
"export_version"
|
|
24948
|
+
],
|
|
24949
|
+
properties: {
|
|
24950
|
+
slug: {
|
|
24951
|
+
type: "string",
|
|
24952
|
+
pattern: "^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$"
|
|
24953
|
+
},
|
|
24954
|
+
display_name: {
|
|
24955
|
+
type: "string",
|
|
24956
|
+
maxLength: 200
|
|
24957
|
+
},
|
|
24958
|
+
mode: {
|
|
24959
|
+
type: "string",
|
|
24960
|
+
enum: [
|
|
24961
|
+
"rules",
|
|
24962
|
+
"assisted",
|
|
24963
|
+
"external"
|
|
24964
|
+
]
|
|
24965
|
+
},
|
|
24966
|
+
content: {
|
|
24967
|
+
type: "object"
|
|
24968
|
+
},
|
|
24969
|
+
export_version: {
|
|
24970
|
+
type: "integer",
|
|
24971
|
+
enum: [
|
|
24972
|
+
1
|
|
24973
|
+
]
|
|
24974
|
+
}
|
|
24975
|
+
}
|
|
24976
|
+
}
|
|
24977
|
+
}
|
|
24978
|
+
}
|
|
24979
|
+
},
|
|
24980
|
+
responses: {
|
|
24981
|
+
"201": {
|
|
24982
|
+
description: "The created app's manifest plus the saved draft version.",
|
|
24983
|
+
content: {
|
|
24984
|
+
"application/json": {
|
|
24985
|
+
schema: {
|
|
24986
|
+
type: "object",
|
|
24987
|
+
properties: {
|
|
24988
|
+
app: {
|
|
24989
|
+
$ref: "#/components/schemas/AppManifest"
|
|
24990
|
+
},
|
|
24991
|
+
draft: {
|
|
24992
|
+
type: "object",
|
|
24993
|
+
properties: {
|
|
24994
|
+
version: {
|
|
24995
|
+
type: "integer"
|
|
24996
|
+
},
|
|
24997
|
+
status: {
|
|
24998
|
+
type: "string"
|
|
24999
|
+
},
|
|
25000
|
+
content_hash: {
|
|
25001
|
+
type: "string"
|
|
25002
|
+
}
|
|
25003
|
+
}
|
|
25004
|
+
}
|
|
25005
|
+
}
|
|
25006
|
+
}
|
|
25007
|
+
}
|
|
25008
|
+
}
|
|
25009
|
+
},
|
|
25010
|
+
"409": {
|
|
25011
|
+
$ref: "#/components/responses/Conflict"
|
|
25012
|
+
},
|
|
25013
|
+
"422": {
|
|
25014
|
+
$ref: "#/components/responses/ValidationError"
|
|
25015
|
+
}
|
|
25016
|
+
}
|
|
25017
|
+
}
|
|
25018
|
+
},
|
|
24332
25019
|
"/v1/apps/{id}/logic/compile": {
|
|
24333
25020
|
post: {
|
|
24334
25021
|
operationId: "compileAppRules",
|
|
@@ -25013,19 +25700,241 @@ var openapi_default = {
|
|
|
25013
25700
|
],
|
|
25014
25701
|
responses: {
|
|
25015
25702
|
"200": {
|
|
25016
|
-
description: "The version row."
|
|
25703
|
+
description: "The version row."
|
|
25704
|
+
},
|
|
25705
|
+
"404": {
|
|
25706
|
+
$ref: "#/components/responses/NotFound"
|
|
25707
|
+
}
|
|
25708
|
+
}
|
|
25709
|
+
}
|
|
25710
|
+
},
|
|
25711
|
+
"/v1/apps/{id}/export": {
|
|
25712
|
+
get: {
|
|
25713
|
+
operationId: "exportApp",
|
|
25714
|
+
summary: "Environment-free manifest of the app's active version (spec B3.2 Portability)",
|
|
25715
|
+
description: "slug/display_name/mode plus the published content unmodified \u2014 no grants, keys, install state, or `endpoints`. Counterpart to POST /v1/apps/import.",
|
|
25716
|
+
tags: [
|
|
25717
|
+
"Apps"
|
|
25718
|
+
],
|
|
25719
|
+
parameters: [
|
|
25720
|
+
{
|
|
25721
|
+
name: "id",
|
|
25722
|
+
in: "path",
|
|
25723
|
+
required: true,
|
|
25724
|
+
schema: {
|
|
25725
|
+
type: "string",
|
|
25726
|
+
format: "uuid"
|
|
25727
|
+
}
|
|
25728
|
+
}
|
|
25729
|
+
],
|
|
25730
|
+
responses: {
|
|
25731
|
+
"200": {
|
|
25732
|
+
description: "The environment-free manifest.",
|
|
25733
|
+
content: {
|
|
25734
|
+
"application/json": {
|
|
25735
|
+
schema: {
|
|
25736
|
+
type: "object",
|
|
25737
|
+
properties: {
|
|
25738
|
+
export_version: {
|
|
25739
|
+
type: "integer",
|
|
25740
|
+
enum: [
|
|
25741
|
+
1
|
|
25742
|
+
]
|
|
25743
|
+
},
|
|
25744
|
+
app: {
|
|
25745
|
+
type: "object",
|
|
25746
|
+
properties: {
|
|
25747
|
+
slug: {
|
|
25748
|
+
type: "string"
|
|
25749
|
+
},
|
|
25750
|
+
display_name: {
|
|
25751
|
+
type: "string"
|
|
25752
|
+
},
|
|
25753
|
+
mode: {
|
|
25754
|
+
type: "string",
|
|
25755
|
+
enum: [
|
|
25756
|
+
"rules",
|
|
25757
|
+
"assisted",
|
|
25758
|
+
"external"
|
|
25759
|
+
]
|
|
25760
|
+
}
|
|
25761
|
+
}
|
|
25762
|
+
},
|
|
25763
|
+
version: {
|
|
25764
|
+
type: "integer"
|
|
25765
|
+
},
|
|
25766
|
+
content: {
|
|
25767
|
+
type: "object"
|
|
25768
|
+
}
|
|
25769
|
+
}
|
|
25770
|
+
}
|
|
25771
|
+
}
|
|
25772
|
+
}
|
|
25773
|
+
},
|
|
25774
|
+
"404": {
|
|
25775
|
+
$ref: "#/components/responses/NotFound"
|
|
25776
|
+
},
|
|
25777
|
+
"409": {
|
|
25778
|
+
description: "The app has no published version."
|
|
25779
|
+
}
|
|
25780
|
+
}
|
|
25781
|
+
}
|
|
25782
|
+
},
|
|
25783
|
+
"/v1/apps/{id}/duplicate": {
|
|
25784
|
+
post: {
|
|
25785
|
+
operationId: "duplicateApp",
|
|
25786
|
+
summary: "Duplicate an app's active version into a new app (spec B3.2 Portability)",
|
|
25787
|
+
description: "Copies content only, through the same create+saveDraft path as POST /v1/apps/import \u2014 no grants, keys, or install state carry over. Default slug `<slug>-copy` (existing slug-collision 409 applies unchanged); default display name `<display_name> (copy)`.",
|
|
25788
|
+
tags: [
|
|
25789
|
+
"Apps"
|
|
25790
|
+
],
|
|
25791
|
+
parameters: [
|
|
25792
|
+
{
|
|
25793
|
+
name: "id",
|
|
25794
|
+
in: "path",
|
|
25795
|
+
required: true,
|
|
25796
|
+
schema: {
|
|
25797
|
+
type: "string",
|
|
25798
|
+
format: "uuid"
|
|
25799
|
+
}
|
|
25800
|
+
}
|
|
25801
|
+
],
|
|
25802
|
+
requestBody: {
|
|
25803
|
+
required: false,
|
|
25804
|
+
content: {
|
|
25805
|
+
"application/json": {
|
|
25806
|
+
schema: {
|
|
25807
|
+
type: "object",
|
|
25808
|
+
properties: {
|
|
25809
|
+
slug: {
|
|
25810
|
+
type: "string",
|
|
25811
|
+
pattern: "^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$"
|
|
25812
|
+
},
|
|
25813
|
+
display_name: {
|
|
25814
|
+
type: "string",
|
|
25815
|
+
maxLength: 200
|
|
25816
|
+
}
|
|
25817
|
+
}
|
|
25818
|
+
}
|
|
25819
|
+
}
|
|
25820
|
+
}
|
|
25821
|
+
},
|
|
25822
|
+
responses: {
|
|
25823
|
+
"201": {
|
|
25824
|
+
description: "The new app's manifest plus the saved draft version.",
|
|
25825
|
+
content: {
|
|
25826
|
+
"application/json": {
|
|
25827
|
+
schema: {
|
|
25828
|
+
type: "object",
|
|
25829
|
+
properties: {
|
|
25830
|
+
app: {
|
|
25831
|
+
$ref: "#/components/schemas/AppManifest"
|
|
25832
|
+
},
|
|
25833
|
+
draft: {
|
|
25834
|
+
type: "object",
|
|
25835
|
+
properties: {
|
|
25836
|
+
version: {
|
|
25837
|
+
type: "integer"
|
|
25838
|
+
},
|
|
25839
|
+
status: {
|
|
25840
|
+
type: "string"
|
|
25841
|
+
},
|
|
25842
|
+
content_hash: {
|
|
25843
|
+
type: "string"
|
|
25844
|
+
}
|
|
25845
|
+
}
|
|
25846
|
+
}
|
|
25847
|
+
}
|
|
25848
|
+
}
|
|
25849
|
+
}
|
|
25850
|
+
}
|
|
25851
|
+
},
|
|
25852
|
+
"409": {
|
|
25853
|
+
$ref: "#/components/responses/Conflict"
|
|
25854
|
+
},
|
|
25855
|
+
"422": {
|
|
25856
|
+
$ref: "#/components/responses/ValidationError"
|
|
25857
|
+
}
|
|
25858
|
+
}
|
|
25859
|
+
}
|
|
25860
|
+
},
|
|
25861
|
+
"/v1/apps/{id}/versions/{n}/publish": {
|
|
25862
|
+
post: {
|
|
25863
|
+
operationId: "publishAppVersion",
|
|
25864
|
+
summary: "Publish the draft (freezes it, supersedes the prior version, activates)",
|
|
25865
|
+
description: "No-ops when the draft's content hash matches the active version. First publish locks the slug.",
|
|
25866
|
+
tags: [
|
|
25867
|
+
"Apps"
|
|
25868
|
+
],
|
|
25869
|
+
parameters: [
|
|
25870
|
+
{
|
|
25871
|
+
name: "id",
|
|
25872
|
+
in: "path",
|
|
25873
|
+
required: true,
|
|
25874
|
+
schema: {
|
|
25875
|
+
type: "string",
|
|
25876
|
+
format: "uuid"
|
|
25877
|
+
}
|
|
25878
|
+
},
|
|
25879
|
+
{
|
|
25880
|
+
name: "n",
|
|
25881
|
+
in: "path",
|
|
25882
|
+
required: true,
|
|
25883
|
+
schema: {
|
|
25884
|
+
type: "integer"
|
|
25885
|
+
}
|
|
25886
|
+
}
|
|
25887
|
+
],
|
|
25888
|
+
responses: {
|
|
25889
|
+
"200": {
|
|
25890
|
+
description: "Published version summary."
|
|
25891
|
+
},
|
|
25892
|
+
"409": {
|
|
25893
|
+
$ref: "#/components/responses/Conflict"
|
|
25894
|
+
}
|
|
25895
|
+
}
|
|
25896
|
+
}
|
|
25897
|
+
},
|
|
25898
|
+
"/v1/apps/{id}/versions/{n}/activate": {
|
|
25899
|
+
post: {
|
|
25900
|
+
operationId: "activateAppVersion",
|
|
25901
|
+
summary: "Activate a version (v1 activates on publish; rollback activation is not implemented yet)",
|
|
25902
|
+
tags: [
|
|
25903
|
+
"Apps"
|
|
25904
|
+
],
|
|
25905
|
+
parameters: [
|
|
25906
|
+
{
|
|
25907
|
+
name: "id",
|
|
25908
|
+
in: "path",
|
|
25909
|
+
required: true,
|
|
25910
|
+
schema: {
|
|
25911
|
+
type: "string",
|
|
25912
|
+
format: "uuid"
|
|
25913
|
+
}
|
|
25914
|
+
},
|
|
25915
|
+
{
|
|
25916
|
+
name: "n",
|
|
25917
|
+
in: "path",
|
|
25918
|
+
required: true,
|
|
25919
|
+
schema: {
|
|
25920
|
+
type: "integer"
|
|
25921
|
+
}
|
|
25922
|
+
}
|
|
25923
|
+
],
|
|
25924
|
+
responses: {
|
|
25925
|
+
"200": {
|
|
25926
|
+
description: "Already active."
|
|
25017
25927
|
},
|
|
25018
|
-
"
|
|
25019
|
-
|
|
25928
|
+
"501": {
|
|
25929
|
+
description: "Rollback activation of a superseded version is not implemented yet."
|
|
25020
25930
|
}
|
|
25021
25931
|
}
|
|
25022
25932
|
}
|
|
25023
25933
|
},
|
|
25024
|
-
"/v1/apps/{id}/
|
|
25934
|
+
"/v1/apps/{id}/enable": {
|
|
25025
25935
|
post: {
|
|
25026
|
-
operationId: "
|
|
25027
|
-
summary: "
|
|
25028
|
-
description: "No-ops when the draft's content hash matches the active version. First publish locks the slug.",
|
|
25936
|
+
operationId: "enableApp",
|
|
25937
|
+
summary: "Enable an app (owner required when the app has actions)",
|
|
25029
25938
|
tags: [
|
|
25030
25939
|
"Apps"
|
|
25031
25940
|
],
|
|
@@ -25038,30 +25947,51 @@ var openapi_default = {
|
|
|
25038
25947
|
type: "string",
|
|
25039
25948
|
format: "uuid"
|
|
25040
25949
|
}
|
|
25950
|
+
}
|
|
25951
|
+
],
|
|
25952
|
+
responses: {
|
|
25953
|
+
"200": {
|
|
25954
|
+
description: "Enabled."
|
|
25955
|
+
},
|
|
25956
|
+
"403": {
|
|
25957
|
+
$ref: "#/components/responses/Forbidden"
|
|
25041
25958
|
},
|
|
25959
|
+
"409": {
|
|
25960
|
+
$ref: "#/components/responses/Conflict"
|
|
25961
|
+
}
|
|
25962
|
+
}
|
|
25963
|
+
}
|
|
25964
|
+
},
|
|
25965
|
+
"/v1/apps/{id}/disable": {
|
|
25966
|
+
post: {
|
|
25967
|
+
operationId: "disableApp",
|
|
25968
|
+
summary: "Disable an app (the kill switch \u2014 always one call)",
|
|
25969
|
+
tags: [
|
|
25970
|
+
"Apps"
|
|
25971
|
+
],
|
|
25972
|
+
parameters: [
|
|
25042
25973
|
{
|
|
25043
|
-
name: "
|
|
25974
|
+
name: "id",
|
|
25044
25975
|
in: "path",
|
|
25045
25976
|
required: true,
|
|
25046
25977
|
schema: {
|
|
25047
|
-
type: "
|
|
25978
|
+
type: "string",
|
|
25979
|
+
format: "uuid"
|
|
25048
25980
|
}
|
|
25049
25981
|
}
|
|
25050
25982
|
],
|
|
25051
25983
|
responses: {
|
|
25052
25984
|
"200": {
|
|
25053
|
-
description: "
|
|
25054
|
-
},
|
|
25055
|
-
"409": {
|
|
25056
|
-
$ref: "#/components/responses/Conflict"
|
|
25985
|
+
description: "Disabled."
|
|
25057
25986
|
}
|
|
25058
25987
|
}
|
|
25059
25988
|
}
|
|
25060
25989
|
},
|
|
25061
|
-
"/v1/apps/{id}/
|
|
25990
|
+
"/v1/apps/{id}/install": {
|
|
25062
25991
|
post: {
|
|
25063
|
-
operationId: "
|
|
25064
|
-
summary: "
|
|
25992
|
+
operationId: "installApp",
|
|
25993
|
+
summary: "Install an external app (human workspace owner only)",
|
|
25994
|
+
description: "Mints the service key carrying the `decide` grant plus the manifest's `required_grants`, stores the surface URL and allowed browser origin, and pre-consents the OAuth client. The plaintext key is returned ONCE and is never retrievable again. Machine callers are 403 whatever grants they hold.",
|
|
25065
25995
|
tags: [
|
|
25066
25996
|
"Apps"
|
|
25067
25997
|
],
|
|
@@ -25074,30 +26004,241 @@ var openapi_default = {
|
|
|
25074
26004
|
type: "string",
|
|
25075
26005
|
format: "uuid"
|
|
25076
26006
|
}
|
|
26007
|
+
}
|
|
26008
|
+
],
|
|
26009
|
+
requestBody: {
|
|
26010
|
+
required: false,
|
|
26011
|
+
content: {
|
|
26012
|
+
"application/json": {
|
|
26013
|
+
schema: {
|
|
26014
|
+
type: "object",
|
|
26015
|
+
properties: {
|
|
26016
|
+
surface_url: {
|
|
26017
|
+
type: "string",
|
|
26018
|
+
maxLength: 2048,
|
|
26019
|
+
description: "https URL of the external service UI; surfaces as endpoints.surface."
|
|
26020
|
+
},
|
|
26021
|
+
allowed_origin: {
|
|
26022
|
+
type: "string",
|
|
26023
|
+
maxLength: 2048,
|
|
26024
|
+
description: "Exact https origin admitted for the surface's browser calls. Must match the host of one of the OAuth client's registered redirect URIs, so oauth_client_id is required with it."
|
|
26025
|
+
},
|
|
26026
|
+
oauth_client_id: {
|
|
26027
|
+
type: "string",
|
|
26028
|
+
format: "uuid"
|
|
26029
|
+
},
|
|
26030
|
+
key_name: {
|
|
26031
|
+
type: "string",
|
|
26032
|
+
maxLength: 100
|
|
26033
|
+
}
|
|
26034
|
+
}
|
|
26035
|
+
}
|
|
26036
|
+
}
|
|
26037
|
+
}
|
|
26038
|
+
},
|
|
26039
|
+
responses: {
|
|
26040
|
+
"201": {
|
|
26041
|
+
description: "Installed. The service key appears here and nowhere else.",
|
|
26042
|
+
content: {
|
|
26043
|
+
"application/json": {
|
|
26044
|
+
schema: {
|
|
26045
|
+
type: "object",
|
|
26046
|
+
properties: {
|
|
26047
|
+
install: {
|
|
26048
|
+
$ref: "#/components/schemas/AppInstall"
|
|
26049
|
+
},
|
|
26050
|
+
service_key: {
|
|
26051
|
+
type: "string"
|
|
26052
|
+
},
|
|
26053
|
+
masked_prefix: {
|
|
26054
|
+
type: "string"
|
|
26055
|
+
},
|
|
26056
|
+
warning: {
|
|
26057
|
+
type: "string"
|
|
26058
|
+
}
|
|
26059
|
+
}
|
|
26060
|
+
}
|
|
26061
|
+
}
|
|
26062
|
+
}
|
|
26063
|
+
},
|
|
26064
|
+
"403": {
|
|
26065
|
+
$ref: "#/components/responses/Forbidden"
|
|
25077
26066
|
},
|
|
26067
|
+
"409": {
|
|
26068
|
+
$ref: "#/components/responses/Conflict"
|
|
26069
|
+
},
|
|
26070
|
+
"422": {
|
|
26071
|
+
description: "A required grant target does not exist here, or the origin is not admissible."
|
|
26072
|
+
}
|
|
26073
|
+
}
|
|
26074
|
+
},
|
|
26075
|
+
get: {
|
|
26076
|
+
operationId: "getAppInstall",
|
|
26077
|
+
summary: "The app's install row (human workspace owner only)",
|
|
26078
|
+
tags: [
|
|
26079
|
+
"Apps"
|
|
26080
|
+
],
|
|
26081
|
+
parameters: [
|
|
25078
26082
|
{
|
|
25079
|
-
name: "
|
|
26083
|
+
name: "id",
|
|
25080
26084
|
in: "path",
|
|
25081
26085
|
required: true,
|
|
25082
26086
|
schema: {
|
|
25083
|
-
type: "
|
|
26087
|
+
type: "string",
|
|
26088
|
+
format: "uuid"
|
|
25084
26089
|
}
|
|
25085
26090
|
}
|
|
25086
26091
|
],
|
|
25087
26092
|
responses: {
|
|
25088
26093
|
"200": {
|
|
25089
|
-
description: "
|
|
26094
|
+
description: "The install, or null when the app was never installed.",
|
|
26095
|
+
content: {
|
|
26096
|
+
"application/json": {
|
|
26097
|
+
schema: {
|
|
26098
|
+
type: "object",
|
|
26099
|
+
properties: {
|
|
26100
|
+
install: {
|
|
26101
|
+
allOf: [
|
|
26102
|
+
{
|
|
26103
|
+
$ref: "#/components/schemas/AppInstall"
|
|
26104
|
+
}
|
|
26105
|
+
],
|
|
26106
|
+
nullable: true
|
|
26107
|
+
}
|
|
26108
|
+
}
|
|
26109
|
+
}
|
|
26110
|
+
}
|
|
26111
|
+
}
|
|
25090
26112
|
},
|
|
25091
|
-
"
|
|
25092
|
-
|
|
26113
|
+
"403": {
|
|
26114
|
+
$ref: "#/components/responses/Forbidden"
|
|
26115
|
+
}
|
|
26116
|
+
}
|
|
26117
|
+
},
|
|
26118
|
+
patch: {
|
|
26119
|
+
operationId: "updateAppInstall",
|
|
26120
|
+
summary: "Re-point a live install (human workspace owner only)",
|
|
26121
|
+
description: "Updates the surface URL, the allowed browser origin, and the OAuth client the origin is bound to. An absent field is unchanged; an explicit null clears the value. The origin and client are validated by exactly the rules install applies, against the merged next state. The service key, its grants, and the install status are not touched here. 409 when the install is uninstalled - install again instead.",
|
|
26122
|
+
tags: [
|
|
26123
|
+
"Apps"
|
|
26124
|
+
],
|
|
26125
|
+
parameters: [
|
|
26126
|
+
{
|
|
26127
|
+
name: "id",
|
|
26128
|
+
in: "path",
|
|
26129
|
+
required: true,
|
|
26130
|
+
schema: {
|
|
26131
|
+
type: "string",
|
|
26132
|
+
format: "uuid"
|
|
26133
|
+
}
|
|
26134
|
+
}
|
|
26135
|
+
],
|
|
26136
|
+
requestBody: {
|
|
26137
|
+
required: false,
|
|
26138
|
+
content: {
|
|
26139
|
+
"application/json": {
|
|
26140
|
+
schema: {
|
|
26141
|
+
type: "object",
|
|
26142
|
+
properties: {
|
|
26143
|
+
surface_url: {
|
|
26144
|
+
type: "string",
|
|
26145
|
+
maxLength: 2048,
|
|
26146
|
+
nullable: true
|
|
26147
|
+
},
|
|
26148
|
+
allowed_origin: {
|
|
26149
|
+
type: "string",
|
|
26150
|
+
maxLength: 2048,
|
|
26151
|
+
nullable: true,
|
|
26152
|
+
description: "Exact https origin admitted for the surface's browser calls. Must match the host of one of the OAuth client's registered redirect URIs, so a non-null origin requires an oauth_client_id on the merged row."
|
|
26153
|
+
},
|
|
26154
|
+
oauth_client_id: {
|
|
26155
|
+
type: "string",
|
|
26156
|
+
format: "uuid",
|
|
26157
|
+
nullable: true
|
|
26158
|
+
}
|
|
26159
|
+
}
|
|
26160
|
+
}
|
|
26161
|
+
}
|
|
26162
|
+
}
|
|
26163
|
+
},
|
|
26164
|
+
responses: {
|
|
26165
|
+
"200": {
|
|
26166
|
+
description: "Updated.",
|
|
26167
|
+
content: {
|
|
26168
|
+
"application/json": {
|
|
26169
|
+
schema: {
|
|
26170
|
+
type: "object",
|
|
26171
|
+
properties: {
|
|
26172
|
+
install: {
|
|
26173
|
+
$ref: "#/components/schemas/AppInstall"
|
|
26174
|
+
}
|
|
26175
|
+
}
|
|
26176
|
+
}
|
|
26177
|
+
}
|
|
26178
|
+
}
|
|
26179
|
+
},
|
|
26180
|
+
"403": {
|
|
26181
|
+
$ref: "#/components/responses/Forbidden"
|
|
26182
|
+
},
|
|
26183
|
+
"404": {
|
|
26184
|
+
$ref: "#/components/responses/NotFound"
|
|
26185
|
+
},
|
|
26186
|
+
"409": {
|
|
26187
|
+
$ref: "#/components/responses/Conflict"
|
|
26188
|
+
},
|
|
26189
|
+
"422": {
|
|
26190
|
+
description: "The origin is not admissible for the bound OAuth client."
|
|
26191
|
+
}
|
|
26192
|
+
}
|
|
26193
|
+
},
|
|
26194
|
+
delete: {
|
|
26195
|
+
operationId: "uninstallApp",
|
|
26196
|
+
summary: "Uninstall (revokes the service key, drops decide, clears the origin)",
|
|
26197
|
+
description: "Open decision tasks get an execution_epoch bump and return to available. The row survives as uninstalled for the audit trail.",
|
|
26198
|
+
tags: [
|
|
26199
|
+
"Apps"
|
|
26200
|
+
],
|
|
26201
|
+
parameters: [
|
|
26202
|
+
{
|
|
26203
|
+
name: "id",
|
|
26204
|
+
in: "path",
|
|
26205
|
+
required: true,
|
|
26206
|
+
schema: {
|
|
26207
|
+
type: "string",
|
|
26208
|
+
format: "uuid"
|
|
26209
|
+
}
|
|
26210
|
+
}
|
|
26211
|
+
],
|
|
26212
|
+
responses: {
|
|
26213
|
+
"200": {
|
|
26214
|
+
description: "Uninstalled.",
|
|
26215
|
+
content: {
|
|
26216
|
+
"application/json": {
|
|
26217
|
+
schema: {
|
|
26218
|
+
type: "object",
|
|
26219
|
+
properties: {
|
|
26220
|
+
install: {
|
|
26221
|
+
$ref: "#/components/schemas/AppInstall"
|
|
26222
|
+
}
|
|
26223
|
+
}
|
|
26224
|
+
}
|
|
26225
|
+
}
|
|
26226
|
+
}
|
|
26227
|
+
},
|
|
26228
|
+
"403": {
|
|
26229
|
+
$ref: "#/components/responses/Forbidden"
|
|
26230
|
+
},
|
|
26231
|
+
"404": {
|
|
26232
|
+
$ref: "#/components/responses/NotFound"
|
|
25093
26233
|
}
|
|
25094
26234
|
}
|
|
25095
26235
|
}
|
|
25096
26236
|
},
|
|
25097
|
-
"/v1/apps/{id}/
|
|
26237
|
+
"/v1/apps/{id}/install/suspend": {
|
|
25098
26238
|
post: {
|
|
25099
|
-
operationId: "
|
|
25100
|
-
summary: "
|
|
26239
|
+
operationId: "suspendAppInstall",
|
|
26240
|
+
summary: "Suspend an install (human workspace owner only)",
|
|
26241
|
+
description: "Stops the offered-task producer and bumps execution_epoch on every open decision task of the app, invalidating open leases. Also happens automatically when the service key is revoked (reason key_revoked).",
|
|
25101
26242
|
tags: [
|
|
25102
26243
|
"Apps"
|
|
25103
26244
|
],
|
|
@@ -25112,23 +26253,55 @@ var openapi_default = {
|
|
|
25112
26253
|
}
|
|
25113
26254
|
}
|
|
25114
26255
|
],
|
|
26256
|
+
requestBody: {
|
|
26257
|
+
required: false,
|
|
26258
|
+
content: {
|
|
26259
|
+
"application/json": {
|
|
26260
|
+
schema: {
|
|
26261
|
+
type: "object",
|
|
26262
|
+
properties: {
|
|
26263
|
+
reason: {
|
|
26264
|
+
type: "string",
|
|
26265
|
+
maxLength: 500
|
|
26266
|
+
}
|
|
26267
|
+
}
|
|
26268
|
+
}
|
|
26269
|
+
}
|
|
26270
|
+
}
|
|
26271
|
+
},
|
|
25115
26272
|
responses: {
|
|
25116
26273
|
"200": {
|
|
25117
|
-
description: "
|
|
26274
|
+
description: "Suspended.",
|
|
26275
|
+
content: {
|
|
26276
|
+
"application/json": {
|
|
26277
|
+
schema: {
|
|
26278
|
+
type: "object",
|
|
26279
|
+
properties: {
|
|
26280
|
+
install: {
|
|
26281
|
+
$ref: "#/components/schemas/AppInstall"
|
|
26282
|
+
}
|
|
26283
|
+
}
|
|
26284
|
+
}
|
|
26285
|
+
}
|
|
26286
|
+
}
|
|
25118
26287
|
},
|
|
25119
26288
|
"403": {
|
|
25120
26289
|
$ref: "#/components/responses/Forbidden"
|
|
25121
26290
|
},
|
|
26291
|
+
"404": {
|
|
26292
|
+
$ref: "#/components/responses/NotFound"
|
|
26293
|
+
},
|
|
25122
26294
|
"409": {
|
|
25123
26295
|
$ref: "#/components/responses/Conflict"
|
|
25124
26296
|
}
|
|
25125
26297
|
}
|
|
25126
26298
|
}
|
|
25127
26299
|
},
|
|
25128
|
-
"/v1/apps/{id}/
|
|
26300
|
+
"/v1/apps/{id}/install/resume": {
|
|
25129
26301
|
post: {
|
|
25130
|
-
operationId: "
|
|
25131
|
-
summary: "
|
|
26302
|
+
operationId: "resumeAppInstall",
|
|
26303
|
+
summary: "Resume a suspended install (human workspace owner only)",
|
|
26304
|
+
description: "409 when the install's service key is revoked - that install cannot be made to work again; uninstall and install afresh to mint a new key.",
|
|
25132
26305
|
tags: [
|
|
25133
26306
|
"Apps"
|
|
25134
26307
|
],
|
|
@@ -25145,7 +26318,28 @@ var openapi_default = {
|
|
|
25145
26318
|
],
|
|
25146
26319
|
responses: {
|
|
25147
26320
|
"200": {
|
|
25148
|
-
description: "
|
|
26321
|
+
description: "Resumed.",
|
|
26322
|
+
content: {
|
|
26323
|
+
"application/json": {
|
|
26324
|
+
schema: {
|
|
26325
|
+
type: "object",
|
|
26326
|
+
properties: {
|
|
26327
|
+
install: {
|
|
26328
|
+
$ref: "#/components/schemas/AppInstall"
|
|
26329
|
+
}
|
|
26330
|
+
}
|
|
26331
|
+
}
|
|
26332
|
+
}
|
|
26333
|
+
}
|
|
26334
|
+
},
|
|
26335
|
+
"403": {
|
|
26336
|
+
$ref: "#/components/responses/Forbidden"
|
|
26337
|
+
},
|
|
26338
|
+
"404": {
|
|
26339
|
+
$ref: "#/components/responses/NotFound"
|
|
26340
|
+
},
|
|
26341
|
+
"409": {
|
|
26342
|
+
$ref: "#/components/responses/Conflict"
|
|
25149
26343
|
}
|
|
25150
26344
|
}
|
|
25151
26345
|
}
|
|
@@ -25771,7 +26965,8 @@ var openapi_default = {
|
|
|
25771
26965
|
type: "string",
|
|
25772
26966
|
enum: [
|
|
25773
26967
|
"read",
|
|
25774
|
-
"act"
|
|
26968
|
+
"act",
|
|
26969
|
+
"write"
|
|
25775
26970
|
]
|
|
25776
26971
|
}
|
|
25777
26972
|
}
|
|
@@ -26973,7 +28168,7 @@ var openapi_default = {
|
|
|
26973
28168
|
type: "http",
|
|
26974
28169
|
scheme: "bearer",
|
|
26975
28170
|
bearerFormat: "JWT",
|
|
26976
|
-
description: "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n"
|
|
28171
|
+
description: "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n\nScopes a client may request (the live list is served by\n`GET /.well-known/oauth-authorization-server` as `scopes_supported`):\n\n| Scope | Grants |\n|---|---|\n| `extract:write` | Create extractions; every legacy `write` route |\n| `documents:read` | Read documents and extraction results |\n| `schemas:read` | Read schemas and field definitions |\n| `sources:read` | List connected sources |\n| `webhooks:manage` | Create and manage webhooks |\n| `apps:read` | Read apps, runs and results |\n| `apps:operate` | Run and operate apps |\n| `records:write` | Write record-set data |\n| `identity:read` | Identity only (`/oauth/userinfo`); no `/v1` privilege |\n\nA client that omits `scope` receives the five legacy public-API scopes\nonly. `apps:read`, `apps:operate`, `records:write` and `identity:read`\nare never granted implicitly and must be requested by name. The Apps\nscopes are checked directly by the routes that need them: holding\n`extract:write` does not satisfy an Apps write or a record-set write,\nand `apps:read` alone cannot start a run.\n"
|
|
26977
28172
|
}
|
|
26978
28173
|
},
|
|
26979
28174
|
parameters: {
|
|
@@ -27644,11 +28839,83 @@ var openapi_default = {
|
|
|
27644
28839
|
},
|
|
27645
28840
|
rest: {
|
|
27646
28841
|
type: "string"
|
|
28842
|
+
},
|
|
28843
|
+
surface: {
|
|
28844
|
+
type: "string",
|
|
28845
|
+
description: "The installed external service's UI. The one install-derived value a manifest carries - read-only, absent when the app is not installed."
|
|
27647
28846
|
}
|
|
27648
28847
|
}
|
|
27649
28848
|
}
|
|
27650
28849
|
}
|
|
27651
28850
|
},
|
|
28851
|
+
AppInstall: {
|
|
28852
|
+
type: "object",
|
|
28853
|
+
description: "The binding between one workspace and one external service (Apps spec B7.1). Not versioned and never part of the manifest: it holds the ids that exist in one deployment only (service key, OAuth client, URL, origin).",
|
|
28854
|
+
properties: {
|
|
28855
|
+
app_id: {
|
|
28856
|
+
type: "string",
|
|
28857
|
+
format: "uuid"
|
|
28858
|
+
},
|
|
28859
|
+
status: {
|
|
28860
|
+
type: "string",
|
|
28861
|
+
enum: [
|
|
28862
|
+
"installed",
|
|
28863
|
+
"suspended",
|
|
28864
|
+
"uninstalled"
|
|
28865
|
+
]
|
|
28866
|
+
},
|
|
28867
|
+
service_api_key_id: {
|
|
28868
|
+
type: "string",
|
|
28869
|
+
format: "uuid",
|
|
28870
|
+
nullable: true,
|
|
28871
|
+
description: "The workspace key the service authenticates with; null once revoked."
|
|
28872
|
+
},
|
|
28873
|
+
oauth_client_id: {
|
|
28874
|
+
type: "string",
|
|
28875
|
+
format: "uuid",
|
|
28876
|
+
nullable: true,
|
|
28877
|
+
description: "The pre-consented OAuth public client the surface exchanges a session code for."
|
|
28878
|
+
},
|
|
28879
|
+
surface_url: {
|
|
28880
|
+
type: "string",
|
|
28881
|
+
nullable: true
|
|
28882
|
+
},
|
|
28883
|
+
allowed_origin: {
|
|
28884
|
+
type: "string",
|
|
28885
|
+
nullable: true,
|
|
28886
|
+
description: "Exact https origin (scheme + host + optional port), no wildcard, no path."
|
|
28887
|
+
},
|
|
28888
|
+
installed_by: {
|
|
28889
|
+
type: "string",
|
|
28890
|
+
nullable: true
|
|
28891
|
+
},
|
|
28892
|
+
installed_at: {
|
|
28893
|
+
type: "string",
|
|
28894
|
+
format: "date-time",
|
|
28895
|
+
nullable: true
|
|
28896
|
+
},
|
|
28897
|
+
suspended_at: {
|
|
28898
|
+
type: "string",
|
|
28899
|
+
format: "date-time",
|
|
28900
|
+
nullable: true
|
|
28901
|
+
},
|
|
28902
|
+
suspended_reason: {
|
|
28903
|
+
type: "string",
|
|
28904
|
+
nullable: true,
|
|
28905
|
+
description: "'key_revoked' when the service key was revoked; otherwise the owner's reason."
|
|
28906
|
+
},
|
|
28907
|
+
last_seen_at: {
|
|
28908
|
+
type: "string",
|
|
28909
|
+
format: "date-time",
|
|
28910
|
+
nullable: true
|
|
28911
|
+
},
|
|
28912
|
+
uninstalled_at: {
|
|
28913
|
+
type: "string",
|
|
28914
|
+
format: "date-time",
|
|
28915
|
+
nullable: true
|
|
28916
|
+
}
|
|
28917
|
+
}
|
|
28918
|
+
},
|
|
27652
28919
|
AppRun: {
|
|
27653
28920
|
type: "object",
|
|
27654
28921
|
description: "Run projection. The journal (/events) and the sealed record (/record) are the ledger.",
|
|
@@ -28030,6 +29297,340 @@ var openapi_default = {
|
|
|
28030
29297
|
}
|
|
28031
29298
|
}
|
|
28032
29299
|
},
|
|
29300
|
+
DecisionTaskMetadata: {
|
|
29301
|
+
type: "object",
|
|
29302
|
+
required: [
|
|
29303
|
+
"id",
|
|
29304
|
+
"customer_id",
|
|
29305
|
+
"run_id",
|
|
29306
|
+
"app_id",
|
|
29307
|
+
"status",
|
|
29308
|
+
"execution_epoch",
|
|
29309
|
+
"sla_deadline_at",
|
|
29310
|
+
"created_at",
|
|
29311
|
+
"updated_at"
|
|
29312
|
+
],
|
|
29313
|
+
properties: {
|
|
29314
|
+
id: {
|
|
29315
|
+
type: "string",
|
|
29316
|
+
format: "uuid"
|
|
29317
|
+
},
|
|
29318
|
+
customer_id: {
|
|
29319
|
+
type: "string",
|
|
29320
|
+
format: "uuid"
|
|
29321
|
+
},
|
|
29322
|
+
run_id: {
|
|
29323
|
+
type: "string",
|
|
29324
|
+
format: "uuid"
|
|
29325
|
+
},
|
|
29326
|
+
app_id: {
|
|
29327
|
+
type: "string",
|
|
29328
|
+
format: "uuid"
|
|
29329
|
+
},
|
|
29330
|
+
status: {
|
|
29331
|
+
type: "string",
|
|
29332
|
+
enum: [
|
|
29333
|
+
"available",
|
|
29334
|
+
"claimed",
|
|
29335
|
+
"submitted",
|
|
29336
|
+
"released",
|
|
29337
|
+
"failed",
|
|
29338
|
+
"timed_out",
|
|
29339
|
+
"cancelled"
|
|
29340
|
+
]
|
|
29341
|
+
},
|
|
29342
|
+
execution_epoch: {
|
|
29343
|
+
type: "integer",
|
|
29344
|
+
minimum: 0
|
|
29345
|
+
},
|
|
29346
|
+
input_package_ref: {
|
|
29347
|
+
type: "string",
|
|
29348
|
+
description: "Where the frozen package lives; `run` in v1."
|
|
29349
|
+
},
|
|
29350
|
+
lease_seconds: {
|
|
29351
|
+
type: "integer",
|
|
29352
|
+
minimum: 1
|
|
29353
|
+
},
|
|
29354
|
+
claimed_by: {
|
|
29355
|
+
type: [
|
|
29356
|
+
"string",
|
|
29357
|
+
"null"
|
|
29358
|
+
],
|
|
29359
|
+
description: "Id of the API key holding the claim."
|
|
29360
|
+
},
|
|
29361
|
+
claimed_at: {
|
|
29362
|
+
type: [
|
|
29363
|
+
"string",
|
|
29364
|
+
"null"
|
|
29365
|
+
],
|
|
29366
|
+
format: "date-time"
|
|
29367
|
+
},
|
|
29368
|
+
lease_expires_at: {
|
|
29369
|
+
type: [
|
|
29370
|
+
"string",
|
|
29371
|
+
"null"
|
|
29372
|
+
],
|
|
29373
|
+
format: "date-time"
|
|
29374
|
+
},
|
|
29375
|
+
heartbeat_at: {
|
|
29376
|
+
type: [
|
|
29377
|
+
"string",
|
|
29378
|
+
"null"
|
|
29379
|
+
],
|
|
29380
|
+
format: "date-time"
|
|
29381
|
+
},
|
|
29382
|
+
sla_deadline_at: {
|
|
29383
|
+
type: "string",
|
|
29384
|
+
format: "date-time",
|
|
29385
|
+
description: "Hard decision deadline; heartbeats never extend the lease past it."
|
|
29386
|
+
},
|
|
29387
|
+
submitted_at: {
|
|
29388
|
+
type: [
|
|
29389
|
+
"string",
|
|
29390
|
+
"null"
|
|
29391
|
+
],
|
|
29392
|
+
format: "date-time"
|
|
29393
|
+
},
|
|
29394
|
+
created_at: {
|
|
29395
|
+
type: "string",
|
|
29396
|
+
format: "date-time"
|
|
29397
|
+
},
|
|
29398
|
+
updated_at: {
|
|
29399
|
+
type: "string",
|
|
29400
|
+
format: "date-time"
|
|
29401
|
+
}
|
|
29402
|
+
}
|
|
29403
|
+
},
|
|
29404
|
+
DecisionTaskPackageDescriptor: {
|
|
29405
|
+
type: "object",
|
|
29406
|
+
required: [
|
|
29407
|
+
"record_count",
|
|
29408
|
+
"page_size",
|
|
29409
|
+
"first_cursor"
|
|
29410
|
+
],
|
|
29411
|
+
properties: {
|
|
29412
|
+
record_count: {
|
|
29413
|
+
type: "integer",
|
|
29414
|
+
minimum: 0,
|
|
29415
|
+
description: "Total records across every binding of the frozen package."
|
|
29416
|
+
},
|
|
29417
|
+
page_size: {
|
|
29418
|
+
type: "integer",
|
|
29419
|
+
minimum: 1,
|
|
29420
|
+
description: "Default page size for GET /v1/decision-tasks/{id}/package."
|
|
29421
|
+
},
|
|
29422
|
+
first_cursor: {
|
|
29423
|
+
type: [
|
|
29424
|
+
"string",
|
|
29425
|
+
"null"
|
|
29426
|
+
],
|
|
29427
|
+
description: "Cursor for the first page; null when the package holds no records."
|
|
29428
|
+
},
|
|
29429
|
+
documents: {
|
|
29430
|
+
type: "array",
|
|
29431
|
+
description: "Source documents the package's cells cite, unique, first-seen order; empty on runs assembled before enrichment. Bytes are served by `GET /v1/documents/{id}/file`, which applies Sources IAM as the key's minting user.",
|
|
29432
|
+
items: {
|
|
29433
|
+
$ref: "#/components/schemas/DecisionTaskPackageDocument"
|
|
29434
|
+
}
|
|
29435
|
+
}
|
|
29436
|
+
}
|
|
29437
|
+
},
|
|
29438
|
+
DecisionTaskPackageDocument: {
|
|
29439
|
+
type: "object",
|
|
29440
|
+
required: [
|
|
29441
|
+
"document_id",
|
|
29442
|
+
"filename",
|
|
29443
|
+
"file_url"
|
|
29444
|
+
],
|
|
29445
|
+
properties: {
|
|
29446
|
+
document_id: {
|
|
29447
|
+
type: "string",
|
|
29448
|
+
format: "uuid"
|
|
29449
|
+
},
|
|
29450
|
+
filename: {
|
|
29451
|
+
type: [
|
|
29452
|
+
"string",
|
|
29453
|
+
"null"
|
|
29454
|
+
]
|
|
29455
|
+
},
|
|
29456
|
+
mime_type: {
|
|
29457
|
+
type: "string"
|
|
29458
|
+
},
|
|
29459
|
+
file_url: {
|
|
29460
|
+
type: "string",
|
|
29461
|
+
description: "Relative API path, `/v1/documents/{id}/file`."
|
|
29462
|
+
}
|
|
29463
|
+
}
|
|
29464
|
+
},
|
|
29465
|
+
DecisionTaskBundle: {
|
|
29466
|
+
type: "object",
|
|
29467
|
+
required: [
|
|
29468
|
+
"task",
|
|
29469
|
+
"output_contract",
|
|
29470
|
+
"precedents",
|
|
29471
|
+
"package"
|
|
29472
|
+
],
|
|
29473
|
+
properties: {
|
|
29474
|
+
task: {
|
|
29475
|
+
$ref: "#/components/schemas/DecisionTaskMetadata"
|
|
29476
|
+
},
|
|
29477
|
+
output_contract: {
|
|
29478
|
+
type: "object",
|
|
29479
|
+
description: "For a `single` contract, the bare JSON Schema the submitted `outcome` must validate against (unchanged wire shape). For `verdict_matrix` and `record_set` contracts, the wrapped form `{ kind, schema }`: the client submits the envelope that kind defines (see DecisionTaskSubmit) and the platform validates it against the app version's declaration.",
|
|
29480
|
+
additionalProperties: true
|
|
29481
|
+
},
|
|
29482
|
+
precedents: {
|
|
29483
|
+
type: "array",
|
|
29484
|
+
description: "Precedent references injected into this run's context.",
|
|
29485
|
+
items: {
|
|
29486
|
+
type: "object",
|
|
29487
|
+
additionalProperties: true
|
|
29488
|
+
}
|
|
29489
|
+
},
|
|
29490
|
+
package: {
|
|
29491
|
+
$ref: "#/components/schemas/DecisionTaskPackageDescriptor"
|
|
29492
|
+
}
|
|
29493
|
+
}
|
|
29494
|
+
},
|
|
29495
|
+
DecisionTaskPackagePage: {
|
|
29496
|
+
type: "object",
|
|
29497
|
+
required: [
|
|
29498
|
+
"task_id",
|
|
29499
|
+
"run_id",
|
|
29500
|
+
"record_count",
|
|
29501
|
+
"page_size",
|
|
29502
|
+
"data",
|
|
29503
|
+
"pagination"
|
|
29504
|
+
],
|
|
29505
|
+
properties: {
|
|
29506
|
+
task_id: {
|
|
29507
|
+
type: "string",
|
|
29508
|
+
format: "uuid"
|
|
29509
|
+
},
|
|
29510
|
+
run_id: {
|
|
29511
|
+
type: "string",
|
|
29512
|
+
format: "uuid"
|
|
29513
|
+
},
|
|
29514
|
+
record_count: {
|
|
29515
|
+
type: "integer",
|
|
29516
|
+
minimum: 0
|
|
29517
|
+
},
|
|
29518
|
+
page_size: {
|
|
29519
|
+
type: "integer",
|
|
29520
|
+
minimum: 1
|
|
29521
|
+
},
|
|
29522
|
+
documents: {
|
|
29523
|
+
type: "array",
|
|
29524
|
+
description: "Present on the first page only; same shape as the claim descriptor's `documents`.",
|
|
29525
|
+
items: {
|
|
29526
|
+
$ref: "#/components/schemas/DecisionTaskPackageDocument"
|
|
29527
|
+
}
|
|
29528
|
+
},
|
|
29529
|
+
data: {
|
|
29530
|
+
type: "array",
|
|
29531
|
+
items: {
|
|
29532
|
+
type: "object",
|
|
29533
|
+
required: [
|
|
29534
|
+
"binding",
|
|
29535
|
+
"index",
|
|
29536
|
+
"record"
|
|
29537
|
+
],
|
|
29538
|
+
properties: {
|
|
29539
|
+
binding: {
|
|
29540
|
+
type: "string",
|
|
29541
|
+
description: "Input-binding alias the record came from."
|
|
29542
|
+
},
|
|
29543
|
+
index: {
|
|
29544
|
+
type: "integer",
|
|
29545
|
+
minimum: 0,
|
|
29546
|
+
description: "Position within that binding."
|
|
29547
|
+
},
|
|
29548
|
+
record: {
|
|
29549
|
+
type: "object",
|
|
29550
|
+
additionalProperties: true,
|
|
29551
|
+
description: "The record as persisted, each cell carrying its provenance locator."
|
|
29552
|
+
}
|
|
29553
|
+
}
|
|
29554
|
+
}
|
|
29555
|
+
},
|
|
29556
|
+
pagination: {
|
|
29557
|
+
$ref: "#/components/schemas/CursorPagination"
|
|
29558
|
+
}
|
|
29559
|
+
}
|
|
29560
|
+
},
|
|
29561
|
+
DecisionTaskEpoch: {
|
|
29562
|
+
type: "object",
|
|
29563
|
+
required: [
|
|
29564
|
+
"execution_epoch"
|
|
29565
|
+
],
|
|
29566
|
+
properties: {
|
|
29567
|
+
execution_epoch: {
|
|
29568
|
+
type: "integer",
|
|
29569
|
+
minimum: 1
|
|
29570
|
+
}
|
|
29571
|
+
}
|
|
29572
|
+
},
|
|
29573
|
+
DecisionTaskFail: {
|
|
29574
|
+
type: "object",
|
|
29575
|
+
required: [
|
|
29576
|
+
"execution_epoch",
|
|
29577
|
+
"reason"
|
|
29578
|
+
],
|
|
29579
|
+
properties: {
|
|
29580
|
+
execution_epoch: {
|
|
29581
|
+
type: "integer",
|
|
29582
|
+
minimum: 1
|
|
29583
|
+
},
|
|
29584
|
+
reason: {
|
|
29585
|
+
type: "string",
|
|
29586
|
+
maxLength: 2e3,
|
|
29587
|
+
description: "Stated on the Human Review this raises."
|
|
29588
|
+
}
|
|
29589
|
+
}
|
|
29590
|
+
},
|
|
29591
|
+
DecisionTaskSubmit: {
|
|
29592
|
+
type: "object",
|
|
29593
|
+
required: [
|
|
29594
|
+
"execution_epoch",
|
|
29595
|
+
"outcome",
|
|
29596
|
+
"evidence",
|
|
29597
|
+
"rationale"
|
|
29598
|
+
],
|
|
29599
|
+
properties: {
|
|
29600
|
+
execution_epoch: {
|
|
29601
|
+
type: "integer",
|
|
29602
|
+
minimum: 1
|
|
29603
|
+
},
|
|
29604
|
+
outcome: {
|
|
29605
|
+
type: "object",
|
|
29606
|
+
additionalProperties: true,
|
|
29607
|
+
description: "`single`: validated against the task's output contract. `verdict_matrix`: `{ subjects: [{ subject_key, rule_outcomes: { <rule id>: passed | failed | indeterminate }, auto?, detail? }] }` over the version's declared `logic.rules`; `rolled_outcome`, `substantive_passes` and `auto` are recomputed by the platform (a disagreeing advisory `auto` is journaled `decision_rejected` and overridden). `record_set`: `{ fields: [{ key, label?, data_type }], records: [{ source_record_id?, values }] }`, where each entry of `values` is either a bare value or `{ value, confidence?, status? }` (`status` one of filled, empty, flagged, pending_approval). Under the version's `record_set_output.mode = derive` the platform materializes a NEW `app_run` record set and ignores `confidence`/`status`; under `mode = promote` it appends cell versions into `record_set_output.target` (an `app_run` set the app holds a `write` grant on), matching rows by `source_record_id` against the target's record ids and columns against the target's fields, under the version's autonomy contract (`observe` rejects any value output, `propose` lands cells `pending_approval`, a value below `confidence_floor` is flagged and not written). Whole body \u2264 `apps.submit_max_bytes` (413)."
|
|
29608
|
+
},
|
|
29609
|
+
confidence: {
|
|
29610
|
+
type: "number",
|
|
29611
|
+
minimum: 0,
|
|
29612
|
+
maximum: 1
|
|
29613
|
+
},
|
|
29614
|
+
evidence: {
|
|
29615
|
+
type: "array",
|
|
29616
|
+
description: "Provenance locators the decision relied on. Each must exist in the frozen input package, or parse as `db:{connectionId}:{table}:{rowKey}:{column}` / `ref:{referenceDataId}:{rowKey}:{column}` against a resource the app holds a `read` grant on: such locators are accepted as attestations (recorded `{ locator, external: true }`, journaled `evidence_attested`, never resolved). Anything else is 422 `evidence_outside_grants`; `api:` is reserved. An empty block is accepted only when the app allows unevidenced decisions.",
|
|
29617
|
+
items: {
|
|
29618
|
+
type: "string",
|
|
29619
|
+
maxLength: 512
|
|
29620
|
+
}
|
|
29621
|
+
},
|
|
29622
|
+
rationale: {
|
|
29623
|
+
type: "string",
|
|
29624
|
+
maxLength: 4e3,
|
|
29625
|
+
description: "Decision rationale \u2014 never private chain-of-thought."
|
|
29626
|
+
},
|
|
29627
|
+
service_version: {
|
|
29628
|
+
type: "string",
|
|
29629
|
+
maxLength: 64,
|
|
29630
|
+
description: "Build identifier of the deciding service; recorded in `decided_by.label`."
|
|
29631
|
+
}
|
|
29632
|
+
}
|
|
29633
|
+
},
|
|
28033
29634
|
BindingResolutionRequest: {
|
|
28034
29635
|
type: "object",
|
|
28035
29636
|
required: [
|
|
@@ -29438,6 +31039,63 @@ var openapi_default = {
|
|
|
29438
31039
|
}
|
|
29439
31040
|
}
|
|
29440
31041
|
},
|
|
31042
|
+
ExtractionCorrectionResponse: {
|
|
31043
|
+
description: "An extraction, plus what the correction did in the value plane. The top-level shape is unchanged from ExtractionResponse; the three correction fields are additive.\n",
|
|
31044
|
+
allOf: [
|
|
31045
|
+
{
|
|
31046
|
+
$ref: "#/components/schemas/ExtractionResponse"
|
|
31047
|
+
},
|
|
31048
|
+
{
|
|
31049
|
+
type: "object",
|
|
31050
|
+
required: [
|
|
31051
|
+
"value_plane",
|
|
31052
|
+
"cells_written",
|
|
31053
|
+
"cells_skipped"
|
|
31054
|
+
],
|
|
31055
|
+
properties: {
|
|
31056
|
+
value_plane: {
|
|
31057
|
+
type: "string",
|
|
31058
|
+
enum: [
|
|
31059
|
+
"written",
|
|
31060
|
+
"not_migrated"
|
|
31061
|
+
],
|
|
31062
|
+
description: "`written` \u2014 the corrections landed as new value-plane cell versions. `not_migrated` \u2014 the document has no capture-layer record yet, so the correction was applied to the legacy extraction JSONB only.\n"
|
|
31063
|
+
},
|
|
31064
|
+
cells_written: {
|
|
31065
|
+
type: "array",
|
|
31066
|
+
items: {
|
|
31067
|
+
type: "string"
|
|
31068
|
+
},
|
|
31069
|
+
description: "Field names that became new value-plane cell versions."
|
|
31070
|
+
},
|
|
31071
|
+
cells_skipped: {
|
|
31072
|
+
type: "array",
|
|
31073
|
+
description: "Fields the central cell-write authority guard withheld. A value promoted by review (`human_review`, `auto_adjudication`, `agentic_review`) outranks a machine correction, and a cell held for approval stays held. A withheld field is not applied to the extraction data either \u2014 it keeps its previous value everywhere.\n",
|
|
31074
|
+
items: {
|
|
31075
|
+
type: "object",
|
|
31076
|
+
required: [
|
|
31077
|
+
"field",
|
|
31078
|
+
"reason"
|
|
31079
|
+
],
|
|
31080
|
+
properties: {
|
|
31081
|
+
field: {
|
|
31082
|
+
type: "string",
|
|
31083
|
+
description: "The field name as submitted in the request body."
|
|
31084
|
+
},
|
|
31085
|
+
reason: {
|
|
31086
|
+
type: "string",
|
|
31087
|
+
enum: [
|
|
31088
|
+
"review_authority",
|
|
31089
|
+
"pending_approval"
|
|
31090
|
+
]
|
|
31091
|
+
}
|
|
31092
|
+
}
|
|
31093
|
+
}
|
|
31094
|
+
}
|
|
31095
|
+
}
|
|
31096
|
+
}
|
|
31097
|
+
]
|
|
31098
|
+
},
|
|
29441
31099
|
SchemaResponse: {
|
|
29442
31100
|
type: "object",
|
|
29443
31101
|
required: [
|
|
@@ -31401,20 +33059,31 @@ var openapi_default = {
|
|
|
31401
33059
|
},
|
|
31402
33060
|
config: {
|
|
31403
33061
|
type: "object",
|
|
31404
|
-
additionalProperties: true
|
|
33062
|
+
additionalProperties: true,
|
|
33063
|
+
description: "Connector-specific transport settings (e.g. `{ url, method, headers }` for `webhook`)."
|
|
31405
33064
|
},
|
|
31406
33065
|
auth_config: {
|
|
31407
|
-
type:
|
|
31408
|
-
|
|
31409
|
-
|
|
31410
|
-
|
|
31411
|
-
|
|
33066
|
+
description: "Transport credentials for the connector, discriminated by `type`\n(see `DestinationAuthConfig` and `/v1/delivery/catalog/connectors`).\nFor a `webhook` destination a `signing_secret` key may also be\nplaced here; it is stored as the destination's signing secret\n(encrypted, never echoed) and stripped from the credentials, so a\nbody whose `auth_config` holds only the secret reads back as\n`has_auth_config: false, has_signing_secret: true`.\n",
|
|
33067
|
+
anyOf: [
|
|
33068
|
+
{
|
|
33069
|
+
$ref: "#/components/schemas/DestinationAuthConfig"
|
|
33070
|
+
},
|
|
33071
|
+
{
|
|
33072
|
+
type: "object",
|
|
33073
|
+
additionalProperties: true
|
|
33074
|
+
},
|
|
33075
|
+
{
|
|
33076
|
+
type: "null"
|
|
33077
|
+
}
|
|
33078
|
+
]
|
|
31412
33079
|
},
|
|
31413
33080
|
signing_secret: {
|
|
31414
33081
|
type: [
|
|
31415
33082
|
"string",
|
|
31416
33083
|
"null"
|
|
31417
|
-
]
|
|
33084
|
+
],
|
|
33085
|
+
description: 'HMAC-SHA256 secret for `webhook` destinations. Deliveries then carry\n`X-Talonic-Signature: t=<ms>,v1=<hex>` with `hex = HMAC(secret, "<t>.<body>")`\n(see the Signature verification section). Equivalent to\n`auth_config.signing_secret`; supplying both with different values is a 400.\n',
|
|
33086
|
+
example: "whsec_rotate_monthly"
|
|
31418
33087
|
},
|
|
31419
33088
|
payload_cap_bytes: {
|
|
31420
33089
|
type: [
|
|
@@ -31439,17 +33108,26 @@ var openapi_default = {
|
|
|
31439
33108
|
additionalProperties: true
|
|
31440
33109
|
},
|
|
31441
33110
|
auth_config: {
|
|
31442
|
-
|
|
31443
|
-
|
|
31444
|
-
|
|
31445
|
-
|
|
31446
|
-
|
|
33111
|
+
description: "Replaces the stored credentials. `auth_config.signing_secret` is\nlifted onto the destination's signing secret exactly as on create.\n",
|
|
33112
|
+
anyOf: [
|
|
33113
|
+
{
|
|
33114
|
+
$ref: "#/components/schemas/DestinationAuthConfig"
|
|
33115
|
+
},
|
|
33116
|
+
{
|
|
33117
|
+
type: "object",
|
|
33118
|
+
additionalProperties: true
|
|
33119
|
+
},
|
|
33120
|
+
{
|
|
33121
|
+
type: "null"
|
|
33122
|
+
}
|
|
33123
|
+
]
|
|
31447
33124
|
},
|
|
31448
33125
|
signing_secret: {
|
|
31449
33126
|
type: [
|
|
31450
33127
|
"string",
|
|
31451
33128
|
"null"
|
|
31452
|
-
]
|
|
33129
|
+
],
|
|
33130
|
+
description: "Set or rotate the HMAC signing secret; `null` clears it."
|
|
31453
33131
|
},
|
|
31454
33132
|
payload_cap_bytes: {
|
|
31455
33133
|
type: [
|
|
@@ -31921,7 +33599,11 @@ var openapi_default = {
|
|
|
31921
33599
|
description: "Must resolve to a registered deliverable resolver."
|
|
31922
33600
|
},
|
|
31923
33601
|
destination_id: {
|
|
31924
|
-
type:
|
|
33602
|
+
type: [
|
|
33603
|
+
"string",
|
|
33604
|
+
"null"
|
|
33605
|
+
],
|
|
33606
|
+
description: "Null when the destination was deleted: the binding is orphaned (inactive, last_status destination_deleted) until re-pointed.",
|
|
31925
33607
|
format: "uuid",
|
|
31926
33608
|
example: "e1f2a3b4-c5d6-7890-efab-901234567890"
|
|
31927
33609
|
},
|
|
@@ -35289,6 +36971,13 @@ var openapi_default = {
|
|
|
35289
36971
|
nullable: true,
|
|
35290
36972
|
additionalProperties: true,
|
|
35291
36973
|
description: "Row values after the change; null on `removed`."
|
|
36974
|
+
},
|
|
36975
|
+
changed_at: {
|
|
36976
|
+
type: [
|
|
36977
|
+
"string",
|
|
36978
|
+
"null"
|
|
36979
|
+
],
|
|
36980
|
+
description: "Exact write time of the row's newest change in the window, as the source's change history recorded it (external-history sources); null on platform captures, which only know the capture time."
|
|
35292
36981
|
}
|
|
35293
36982
|
}
|
|
35294
36983
|
},
|
|
@@ -35357,6 +37046,13 @@ var openapi_default = {
|
|
|
35357
37046
|
type: "object",
|
|
35358
37047
|
nullable: true,
|
|
35359
37048
|
additionalProperties: true
|
|
37049
|
+
},
|
|
37050
|
+
changed_at: {
|
|
37051
|
+
type: [
|
|
37052
|
+
"string",
|
|
37053
|
+
"null"
|
|
37054
|
+
],
|
|
37055
|
+
description: "Exact write time from the source's change history (external-history sources); null on platform captures."
|
|
35360
37056
|
}
|
|
35361
37057
|
}
|
|
35362
37058
|
}
|