@talonic/docs 0.21.2 → 0.21.4

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.
Files changed (3) hide show
  1. package/dist/seo.js +216 -5
  2. package/openapi.json +216 -5
  3. package/package.json +1 -1
package/dist/seo.js CHANGED
@@ -166,6 +166,10 @@ var openapi_default = {
166
166
  name: "Pipelines",
167
167
  description: "Run a configured Spec end to end (the One Engine) over a set of documents, poll progress, and produce a data product."
168
168
  },
169
+ {
170
+ name: "Run",
171
+ description: "One-call ingest + Spec-pipeline run. `POST /v1/run` accepts files and/or file URLs directly (no separate ingest step), starts the named Spec's compiled pipeline, and returns a poll target \u2014 unlike `POST /v1/pipelines`, which requires documents to already exist. Poll `GET /v1/run/{id}` or register a webhook (`POST /v1/webhooks`, events `run.completed` / `run.failed`) to be notified on completion.\n"
172
+ },
169
173
  {
170
174
  name: "Webhooks",
171
175
  description: "Outbound HMAC-signed event webhooks \u2014 configure endpoints and read the event catalog, delivery format, signature scheme, and retry policy."
@@ -17139,8 +17143,7 @@ var openapi_default = {
17139
17143
  description: "Created pipeline run with links to progress + data-product."
17140
17144
  },
17141
17145
  "400": {
17142
- description: "The Spec has no composed rail",
17143
- "or the body failed validation.": null
17146
+ description: "The Spec has no composed rail, or the body failed validation."
17144
17147
  }
17145
17148
  }
17146
17149
  }
@@ -17339,6 +17342,213 @@ var openapi_default = {
17339
17342
  }
17340
17343
  }
17341
17344
  },
17345
+ "/v1/run": {
17346
+ post: {
17347
+ tags: [
17348
+ "Run"
17349
+ ],
17350
+ summary: "Ingest documents and run a Spec's pipeline in one call",
17351
+ description: 'Accepts one or more files, one or more `file_urls`, or a mix of both \u2014 at least one input is required. Ingests every input (metering each ingest leg), waits for OCR to finish, then compiles the named Spec\'s saved rail into a pipeline and starts it \u2014 the same compile step `POST /v1/pipelines` uses, minus the separate "upload documents first" step. Always returns 202; poll `GET /v1/run/{id}` or listen for the `run.completed` / `run.failed` webhook (`POST /v1/webhooks`). Requires write scope. Unlike `POST /v1/process`, this endpoint does not dedup \u2014 every call starts a fresh run.\n',
17352
+ operationId: "createRun",
17353
+ security: [
17354
+ {
17355
+ BearerAuth: []
17356
+ }
17357
+ ],
17358
+ requestBody: {
17359
+ required: true,
17360
+ content: {
17361
+ "multipart/form-data": {
17362
+ schema: {
17363
+ type: "object",
17364
+ required: [
17365
+ "spec_id"
17366
+ ],
17367
+ properties: {
17368
+ spec_id: {
17369
+ type: "string",
17370
+ format: "uuid",
17371
+ description: "The Spec (user_schema) whose saved rail runs."
17372
+ },
17373
+ files: {
17374
+ type: "array",
17375
+ items: {
17376
+ type: "string",
17377
+ format: "binary"
17378
+ },
17379
+ description: "Zero or more document files (max 20 per call, 500 MB each). At least one of files/file_urls is required."
17380
+ },
17381
+ file_urls: {
17382
+ type: "array",
17383
+ items: {
17384
+ type: "string",
17385
+ format: "uri"
17386
+ },
17387
+ description: "Zero or more remote document URLs (SSRF-guarded downstream)."
17388
+ },
17389
+ name: {
17390
+ type: "string",
17391
+ maxLength: 200,
17392
+ description: "Optional display name for the run."
17393
+ },
17394
+ metadata: {
17395
+ type: "string",
17396
+ description: "Optional JSON string, persisted on the run request and returned by GET /v1/run/{id}."
17397
+ }
17398
+ }
17399
+ }
17400
+ }
17401
+ }
17402
+ },
17403
+ responses: {
17404
+ "202": {
17405
+ description: "Ingest + run accepted.",
17406
+ content: {
17407
+ "application/json": {
17408
+ schema: {
17409
+ type: "object",
17410
+ properties: {
17411
+ run_id: {
17412
+ type: "string",
17413
+ format: "uuid"
17414
+ },
17415
+ spec_id: {
17416
+ type: "string",
17417
+ format: "uuid"
17418
+ },
17419
+ status: {
17420
+ type: "string",
17421
+ enum: [
17422
+ "processing"
17423
+ ]
17424
+ },
17425
+ input_count: {
17426
+ type: "integer",
17427
+ description: "Total files + file_urls accepted."
17428
+ },
17429
+ poll_url: {
17430
+ type: "string",
17431
+ example: "/v1/run/3d44a4dc-e3e4-4bca-b079-a9c85bf75026"
17432
+ }
17433
+ }
17434
+ }
17435
+ }
17436
+ }
17437
+ },
17438
+ "400": {
17439
+ description: "Missing spec_id, no input provided (both files and file_urls empty), or metadata is not valid JSON."
17440
+ },
17441
+ "402": {
17442
+ description: "Insufficient credits for an ingest leg."
17443
+ },
17444
+ "429": {
17445
+ $ref: "#/components/responses/RateLimitExceeded"
17446
+ }
17447
+ }
17448
+ }
17449
+ },
17450
+ "/v1/run/{id}": {
17451
+ get: {
17452
+ tags: [
17453
+ "Run"
17454
+ ],
17455
+ summary: "Poll a /v1/run request",
17456
+ description: "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (ingest/OCR wait still running, no pipeline yet), `running` (pipeline active), `completed`, or `failed`. Requires read scope.\n",
17457
+ operationId: "pollRunRequest",
17458
+ security: [
17459
+ {
17460
+ BearerAuth: []
17461
+ }
17462
+ ],
17463
+ parameters: [
17464
+ {
17465
+ name: "id",
17466
+ in: "path",
17467
+ required: true,
17468
+ schema: {
17469
+ type: "string",
17470
+ format: "uuid"
17471
+ }
17472
+ }
17473
+ ],
17474
+ responses: {
17475
+ "200": {
17476
+ description: "Run request status.",
17477
+ content: {
17478
+ "application/json": {
17479
+ schema: {
17480
+ type: "object",
17481
+ properties: {
17482
+ run_id: {
17483
+ type: "string",
17484
+ format: "uuid"
17485
+ },
17486
+ spec_id: {
17487
+ type: "string",
17488
+ format: "uuid"
17489
+ },
17490
+ status: {
17491
+ type: "string",
17492
+ enum: [
17493
+ "processing",
17494
+ "running",
17495
+ "completed",
17496
+ "failed"
17497
+ ]
17498
+ },
17499
+ pipeline_id: {
17500
+ type: "string",
17501
+ format: "uuid",
17502
+ nullable: true
17503
+ },
17504
+ input_count: {
17505
+ type: "integer"
17506
+ },
17507
+ error_message: {
17508
+ type: "string",
17509
+ nullable: true
17510
+ },
17511
+ metadata: {
17512
+ type: "object",
17513
+ nullable: true,
17514
+ additionalProperties: true,
17515
+ description: "The opaque JSON supplied on POST /v1/run, echoed back here."
17516
+ },
17517
+ created_at: {
17518
+ type: "string",
17519
+ format: "date-time"
17520
+ },
17521
+ updated_at: {
17522
+ type: "string",
17523
+ format: "date-time"
17524
+ },
17525
+ progress: {
17526
+ type: "object",
17527
+ nullable: true,
17528
+ description: "Present once the pipeline has started.",
17529
+ properties: {
17530
+ total_documents: {
17531
+ type: "integer"
17532
+ },
17533
+ completed_documents: {
17534
+ type: "integer"
17535
+ },
17536
+ error_documents: {
17537
+ type: "integer"
17538
+ }
17539
+ }
17540
+ }
17541
+ }
17542
+ }
17543
+ }
17544
+ }
17545
+ },
17546
+ "404": {
17547
+ description: "Run request not found."
17548
+ }
17549
+ }
17550
+ }
17551
+ },
17342
17552
  "/v1/webhooks": {
17343
17553
  get: {
17344
17554
  tags: [
@@ -17391,7 +17601,7 @@ var openapi_default = {
17391
17601
  items: {
17392
17602
  type: "string"
17393
17603
  },
17394
- description: "Event types to subscribe to (default: extraction.complete, extraction.failed)."
17604
+ description: "Event types to subscribe to (default: extraction.complete, extraction.failed). Includes run.completed / run.failed \u2014 fired on POST /v1/run pipeline completion (see GET /v1/webhooks/events for the full, current catalog)."
17395
17605
  },
17396
17606
  source_connection_id: {
17397
17607
  type: "string",
@@ -17633,6 +17843,7 @@ var openapi_default = {
17633
17843
  "Webhooks"
17634
17844
  ],
17635
17845
  summary: "List supported webhook event types",
17846
+ description: 'Live catalog served from code (not a static enum) \u2014 includes run.completed ("A /v1/run pipeline finished; structured output is available, review-held fields null") and run.failed ("A /v1/run pipeline failed \u2014 all documents errored during ingest or extraction") alongside the document/extraction/job/delivery/process event families.\n',
17636
17847
  operationId: "listWebhookEvents",
17637
17848
  security: [
17638
17849
  {
@@ -20367,7 +20578,7 @@ var openapi_default = {
20367
20578
  type: "string",
20368
20579
  format: "uuid",
20369
20580
  example: "f0e1d2c3-b4a5-9687-8765-432109876543",
20370
- description: "ID of the created document (absent if duplicate)."
20581
+ description: "ID of the created document. When status is `duplicate`, this is the id of the linked-duplicate row created for this upload (see `existing_document_id` for the canonical document)."
20371
20582
  },
20372
20583
  filename: {
20373
20584
  type: "string",
@@ -20399,7 +20610,7 @@ var openapi_default = {
20399
20610
  ],
20400
20611
  format: "uuid",
20401
20612
  example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
20402
- description: "Present when status is `duplicate`."
20613
+ description: "Present when status is `duplicate` \u2014 the canonical document this upload deduplicated to (the linked duplicate reads its extracted data from it). The `document_id` field carries the id of the linked-duplicate row created for this upload."
20403
20614
  },
20404
20615
  links: {
20405
20616
  type: "object",
package/openapi.json CHANGED
@@ -165,6 +165,10 @@
165
165
  "name": "Pipelines",
166
166
  "description": "Run a configured Spec end to end (the One Engine) over a set of documents, poll progress, and produce a data product."
167
167
  },
168
+ {
169
+ "name": "Run",
170
+ "description": "One-call ingest + Spec-pipeline run. `POST /v1/run` accepts files and/or file URLs directly (no separate ingest step), starts the named Spec's compiled pipeline, and returns a poll target — unlike `POST /v1/pipelines`, which requires documents to already exist. Poll `GET /v1/run/{id}` or register a webhook (`POST /v1/webhooks`, events `run.completed` / `run.failed`) to be notified on completion.\n"
171
+ },
168
172
  {
169
173
  "name": "Webhooks",
170
174
  "description": "Outbound HMAC-signed event webhooks — configure endpoints and read the event catalog, delivery format, signature scheme, and retry policy."
@@ -17119,8 +17123,7 @@
17119
17123
  "description": "Created pipeline run with links to progress + data-product."
17120
17124
  },
17121
17125
  "400": {
17122
- "description": "The Spec has no composed rail",
17123
- "or the body failed validation.": null
17126
+ "description": "The Spec has no composed rail, or the body failed validation."
17124
17127
  }
17125
17128
  }
17126
17129
  }
@@ -17319,6 +17322,213 @@
17319
17322
  }
17320
17323
  }
17321
17324
  },
17325
+ "/v1/run": {
17326
+ "post": {
17327
+ "tags": [
17328
+ "Run"
17329
+ ],
17330
+ "summary": "Ingest documents and run a Spec's pipeline in one call",
17331
+ "description": "Accepts one or more files, one or more `file_urls`, or a mix of both — at least one input is required. Ingests every input (metering each ingest leg), waits for OCR to finish, then compiles the named Spec's saved rail into a pipeline and starts it — the same compile step `POST /v1/pipelines` uses, minus the separate \"upload documents first\" step. Always returns 202; poll `GET /v1/run/{id}` or listen for the `run.completed` / `run.failed` webhook (`POST /v1/webhooks`). Requires write scope. Unlike `POST /v1/process`, this endpoint does not dedup — every call starts a fresh run.\n",
17332
+ "operationId": "createRun",
17333
+ "security": [
17334
+ {
17335
+ "BearerAuth": []
17336
+ }
17337
+ ],
17338
+ "requestBody": {
17339
+ "required": true,
17340
+ "content": {
17341
+ "multipart/form-data": {
17342
+ "schema": {
17343
+ "type": "object",
17344
+ "required": [
17345
+ "spec_id"
17346
+ ],
17347
+ "properties": {
17348
+ "spec_id": {
17349
+ "type": "string",
17350
+ "format": "uuid",
17351
+ "description": "The Spec (user_schema) whose saved rail runs."
17352
+ },
17353
+ "files": {
17354
+ "type": "array",
17355
+ "items": {
17356
+ "type": "string",
17357
+ "format": "binary"
17358
+ },
17359
+ "description": "Zero or more document files (max 20 per call, 500 MB each). At least one of files/file_urls is required."
17360
+ },
17361
+ "file_urls": {
17362
+ "type": "array",
17363
+ "items": {
17364
+ "type": "string",
17365
+ "format": "uri"
17366
+ },
17367
+ "description": "Zero or more remote document URLs (SSRF-guarded downstream)."
17368
+ },
17369
+ "name": {
17370
+ "type": "string",
17371
+ "maxLength": 200,
17372
+ "description": "Optional display name for the run."
17373
+ },
17374
+ "metadata": {
17375
+ "type": "string",
17376
+ "description": "Optional JSON string, persisted on the run request and returned by GET /v1/run/{id}."
17377
+ }
17378
+ }
17379
+ }
17380
+ }
17381
+ }
17382
+ },
17383
+ "responses": {
17384
+ "202": {
17385
+ "description": "Ingest + run accepted.",
17386
+ "content": {
17387
+ "application/json": {
17388
+ "schema": {
17389
+ "type": "object",
17390
+ "properties": {
17391
+ "run_id": {
17392
+ "type": "string",
17393
+ "format": "uuid"
17394
+ },
17395
+ "spec_id": {
17396
+ "type": "string",
17397
+ "format": "uuid"
17398
+ },
17399
+ "status": {
17400
+ "type": "string",
17401
+ "enum": [
17402
+ "processing"
17403
+ ]
17404
+ },
17405
+ "input_count": {
17406
+ "type": "integer",
17407
+ "description": "Total files + file_urls accepted."
17408
+ },
17409
+ "poll_url": {
17410
+ "type": "string",
17411
+ "example": "/v1/run/3d44a4dc-e3e4-4bca-b079-a9c85bf75026"
17412
+ }
17413
+ }
17414
+ }
17415
+ }
17416
+ }
17417
+ },
17418
+ "400": {
17419
+ "description": "Missing spec_id, no input provided (both files and file_urls empty), or metadata is not valid JSON."
17420
+ },
17421
+ "402": {
17422
+ "description": "Insufficient credits for an ingest leg."
17423
+ },
17424
+ "429": {
17425
+ "$ref": "#/components/responses/RateLimitExceeded"
17426
+ }
17427
+ }
17428
+ }
17429
+ },
17430
+ "/v1/run/{id}": {
17431
+ "get": {
17432
+ "tags": [
17433
+ "Run"
17434
+ ],
17435
+ "summary": "Poll a /v1/run request",
17436
+ "description": "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (ingest/OCR wait still running, no pipeline yet), `running` (pipeline active), `completed`, or `failed`. Requires read scope.\n",
17437
+ "operationId": "pollRunRequest",
17438
+ "security": [
17439
+ {
17440
+ "BearerAuth": []
17441
+ }
17442
+ ],
17443
+ "parameters": [
17444
+ {
17445
+ "name": "id",
17446
+ "in": "path",
17447
+ "required": true,
17448
+ "schema": {
17449
+ "type": "string",
17450
+ "format": "uuid"
17451
+ }
17452
+ }
17453
+ ],
17454
+ "responses": {
17455
+ "200": {
17456
+ "description": "Run request status.",
17457
+ "content": {
17458
+ "application/json": {
17459
+ "schema": {
17460
+ "type": "object",
17461
+ "properties": {
17462
+ "run_id": {
17463
+ "type": "string",
17464
+ "format": "uuid"
17465
+ },
17466
+ "spec_id": {
17467
+ "type": "string",
17468
+ "format": "uuid"
17469
+ },
17470
+ "status": {
17471
+ "type": "string",
17472
+ "enum": [
17473
+ "processing",
17474
+ "running",
17475
+ "completed",
17476
+ "failed"
17477
+ ]
17478
+ },
17479
+ "pipeline_id": {
17480
+ "type": "string",
17481
+ "format": "uuid",
17482
+ "nullable": true
17483
+ },
17484
+ "input_count": {
17485
+ "type": "integer"
17486
+ },
17487
+ "error_message": {
17488
+ "type": "string",
17489
+ "nullable": true
17490
+ },
17491
+ "metadata": {
17492
+ "type": "object",
17493
+ "nullable": true,
17494
+ "additionalProperties": true,
17495
+ "description": "The opaque JSON supplied on POST /v1/run, echoed back here."
17496
+ },
17497
+ "created_at": {
17498
+ "type": "string",
17499
+ "format": "date-time"
17500
+ },
17501
+ "updated_at": {
17502
+ "type": "string",
17503
+ "format": "date-time"
17504
+ },
17505
+ "progress": {
17506
+ "type": "object",
17507
+ "nullable": true,
17508
+ "description": "Present once the pipeline has started.",
17509
+ "properties": {
17510
+ "total_documents": {
17511
+ "type": "integer"
17512
+ },
17513
+ "completed_documents": {
17514
+ "type": "integer"
17515
+ },
17516
+ "error_documents": {
17517
+ "type": "integer"
17518
+ }
17519
+ }
17520
+ }
17521
+ }
17522
+ }
17523
+ }
17524
+ }
17525
+ },
17526
+ "404": {
17527
+ "description": "Run request not found."
17528
+ }
17529
+ }
17530
+ }
17531
+ },
17322
17532
  "/v1/webhooks": {
17323
17533
  "get": {
17324
17534
  "tags": [
@@ -17371,7 +17581,7 @@
17371
17581
  "items": {
17372
17582
  "type": "string"
17373
17583
  },
17374
- "description": "Event types to subscribe to (default: extraction.complete, extraction.failed)."
17584
+ "description": "Event types to subscribe to (default: extraction.complete, extraction.failed). Includes run.completed / run.failed — fired on POST /v1/run pipeline completion (see GET /v1/webhooks/events for the full, current catalog)."
17375
17585
  },
17376
17586
  "source_connection_id": {
17377
17587
  "type": "string",
@@ -17613,6 +17823,7 @@
17613
17823
  "Webhooks"
17614
17824
  ],
17615
17825
  "summary": "List supported webhook event types",
17826
+ "description": "Live catalog served from code (not a static enum) — includes run.completed (\"A /v1/run pipeline finished; structured output is available, review-held fields null\") and run.failed (\"A /v1/run pipeline failed — all documents errored during ingest or extraction\") alongside the document/extraction/job/delivery/process event families.\n",
17616
17827
  "operationId": "listWebhookEvents",
17617
17828
  "security": [
17618
17829
  {
@@ -20347,7 +20558,7 @@
20347
20558
  "type": "string",
20348
20559
  "format": "uuid",
20349
20560
  "example": "f0e1d2c3-b4a5-9687-8765-432109876543",
20350
- "description": "ID of the created document (absent if duplicate)."
20561
+ "description": "ID of the created document. When status is `duplicate`, this is the id of the linked-duplicate row created for this upload (see `existing_document_id` for the canonical document)."
20351
20562
  },
20352
20563
  "filename": {
20353
20564
  "type": "string",
@@ -20379,7 +20590,7 @@
20379
20590
  ],
20380
20591
  "format": "uuid",
20381
20592
  "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
20382
- "description": "Present when status is `duplicate`."
20593
+ "description": "Present when status is `duplicate` — the canonical document this upload deduplicated to (the linked duplicate reads its extracted data from it). The `document_id` field carries the id of the linked-duplicate row created for this upload."
20383
20594
  },
20384
20595
  "links": {
20385
20596
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.2",
3
+ "version": "0.21.4",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,