@celigo/api-specs 0.2.201 → 0.2.203
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/agent.yml +80 -13
- package/dist/alert.yml +36 -7
- package/dist/audit.yml +26 -25
- package/dist/editransaction.yml +534 -5
- package/dist/export.yml +17 -6
- package/dist/filedefinition.yml +26 -17
- package/dist/filedefinitionrules.yml +98 -21
- package/dist/fileserver.yml +615 -101
- package/dist/filestorage.yml +826 -19
- package/dist/flow.yml +308 -23
- package/dist/integration.yml +50 -18
- package/dist/job.yml +71 -32
- package/dist/mcp-server.yml +442 -0
- package/dist/processor.yml +93 -2
- package/dist/template.yml +122 -11
- package/dist/tool.yml +57 -12
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/filedefinition.yml
CHANGED
|
@@ -13,8 +13,9 @@ info:
|
|
|
13
13
|
They define how rows, columns, segments, and elements are parsed or generated,
|
|
14
14
|
including delimiters, padding, and hierarchical rule structures.
|
|
15
15
|
|
|
16
|
-
EDI file definitions (X12 and EDIFACT formats)
|
|
17
|
-
|
|
16
|
+
EDI file definitions (X12 and EDIFACT formats) carry a `globalId` that maps to a
|
|
17
|
+
known standard document definition; on an EDI-licensed account the server assigns
|
|
18
|
+
one when a create omits it.
|
|
18
19
|
servers:
|
|
19
20
|
- url: https://api.integrator.io
|
|
20
21
|
description: Production (US / default region)
|
|
@@ -36,7 +37,7 @@ tags:
|
|
|
36
37
|
|
|
37
38
|
Four formats are supported: `delimited` (CSV/TSV), `delimited/x12` (EDI X12),
|
|
38
39
|
`delimited/edifact` (EDI EDIFACT), and `fixed` (fixed-width). EDI formats
|
|
39
|
-
|
|
40
|
+
carry a `globalId` linking to a standard document definition.
|
|
40
41
|
|
|
41
42
|
## File definition schema
|
|
42
43
|
|
|
@@ -204,9 +205,10 @@ paths:
|
|
|
204
205
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
205
206
|
x-celigo-ai-guidance:
|
|
206
207
|
- |-
|
|
207
|
-
For EDI formats (`delimited/x12` or `delimited/edifact`)
|
|
208
|
-
|
|
209
|
-
reference a known standard document definition
|
|
208
|
+
For EDI formats (`delimited/x12` or `delimited/edifact`) on an EDI-licensed
|
|
209
|
+
account, the server assigns a `globalId` when the body omits one; a supplied
|
|
210
|
+
`globalId` must reference a known standard document definition, or the create
|
|
211
|
+
fails with 422 `invalid_global_id`.
|
|
210
212
|
- |-
|
|
211
213
|
For `format: fixed`, send `version`, `fixed.rowDelimiter` and `fixed.paddingChar`;
|
|
212
214
|
without them the create fails with 422 and nothing is saved. Columns are read in
|
|
@@ -274,7 +276,8 @@ paths:
|
|
|
274
276
|
Replaces the file definition with the provided configuration. This
|
|
275
277
|
is a full replace -- include all fields you want to keep. `format`
|
|
276
278
|
cannot be changed between `fixed` and `delimited` families after
|
|
277
|
-
creation, and `globalId` is immutable for EDI formats
|
|
279
|
+
creation, and `globalId` is immutable for EDI formats: a PUT that sends a
|
|
280
|
+
different value, or omits it, keeps the stored id.
|
|
278
281
|
operationId: updateFileDefinition
|
|
279
282
|
tags:
|
|
280
283
|
- File Definitions
|
|
@@ -1025,8 +1028,8 @@ components:
|
|
|
1025
1028
|
- fixed
|
|
1026
1029
|
x-enumDescriptions:
|
|
1027
1030
|
delimited: Standard delimited files (CSV, TSV, etc.).
|
|
1028
|
-
delimited/x12: EDI X12 format.
|
|
1029
|
-
delimited/edifact: EDI EDIFACT format.
|
|
1031
|
+
delimited/x12: EDI X12 format. Carries a `globalId`, assigned by the server when a create on an EDI-licensed account omits it.
|
|
1032
|
+
delimited/edifact: EDI EDIFACT format. Carries a `globalId`, assigned by the server when a create on an EDI-licensed account omits it.
|
|
1030
1033
|
fixed: Fixed-width positional format.
|
|
1031
1034
|
documentType:
|
|
1032
1035
|
type: string
|
|
@@ -1039,15 +1042,21 @@ components:
|
|
|
1039
1042
|
description: EDI document type for acknowledgement documents.
|
|
1040
1043
|
globalId:
|
|
1041
1044
|
type: string
|
|
1042
|
-
description:
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
creation
|
|
1045
|
+
description: |
|
|
1046
|
+
Global identifier mapping to a known EDI standard document definition.
|
|
1047
|
+
|
|
1048
|
+
For EDI formats (`delimited/x12` or `delimited/edifact`) on an account
|
|
1049
|
+
with an EDI license, a create that omits it gets one assigned from the
|
|
1050
|
+
EDI catalog, and a supplied value must be a catalog entry (an unknown one
|
|
1051
|
+
fails the create with 422 `invalid_global_id`). Immutable after creation:
|
|
1052
|
+
a PUT that sends a different value, or none, keeps the stored id.
|
|
1049
1053
|
examples:
|
|
1050
|
-
-
|
|
1054
|
+
- 3c7a8f2e-1234-5678-9abc-def012345678
|
|
1055
|
+
x-celigo-ai-guidance:
|
|
1056
|
+
- |-
|
|
1057
|
+
Send the catalog globalId of the document when you know it. When it is omitted the
|
|
1058
|
+
server picks the id, and a description naming another document type did not change
|
|
1059
|
+
the pick — an X12 create described as an 856 got the same id as a bare X12 create.
|
|
1051
1060
|
rules:
|
|
1052
1061
|
type: array
|
|
1053
1062
|
x-celigo-agent:
|
|
@@ -21,8 +21,10 @@ tags:
|
|
|
21
21
|
description: |-
|
|
22
22
|
Submit an EDI specification PDF (X12 or EDIFACT) and receive parsing
|
|
23
23
|
and/or generation File Definition Rules JSON, generated asynchronously.
|
|
24
|
-
Submit endpoints
|
|
25
|
-
|
|
24
|
+
Submit endpoints take the PDF as a `multipart/form-data` file part
|
|
25
|
+
(or the legacy base64 JSON body) and return a `requestId` immediately
|
|
26
|
+
(202); poll the matching GET endpoint until the job reaches
|
|
27
|
+
`completed` or `failed`.
|
|
26
28
|
Job records expire 24 hours after submission. Submissions are
|
|
27
29
|
rate-limited per caller (10 per hour, with an administrator bypass);
|
|
28
30
|
the document-types catalog allows 100 per hour and 10 per 60 seconds.
|
|
@@ -32,7 +34,7 @@ tags:
|
|
|
32
34
|
|
|
33
35
|
## File definition rules schemas
|
|
34
36
|
|
|
35
|
-
{% openapi-schemas spec="filedefinitionrules" schemas="FdrSubmitRequest,FileDefinitionGenerationJob,FileDefinitionParsingJob" grouped="true" %}
|
|
37
|
+
{% openapi-schemas spec="filedefinitionrules" schemas="FdrSubmitUpload,FdrSubmitRequest,FileDefinitionGenerationJob,FileDefinitionParsingJob" grouped="true" %}
|
|
36
38
|
paths:
|
|
37
39
|
/v1/filedefinitionrules/generate:
|
|
38
40
|
post:
|
|
@@ -46,11 +48,18 @@ paths:
|
|
|
46
48
|
artifacts from the supplied EDI specification PDF. Returns a
|
|
47
49
|
`requestId` immediately; poll
|
|
48
50
|
`GET /v1/filedefinitionrules/generate/{requestId}` for status and
|
|
49
|
-
results.
|
|
50
|
-
|
|
51
|
+
results. Upload the PDF as a `multipart/form-data` file part; the
|
|
52
|
+
base64 JSON body is still accepted. Rate-limited to 10 submissions per
|
|
53
|
+
caller per hour (administrators bypass the limit).
|
|
51
54
|
requestBody:
|
|
52
55
|
required: true
|
|
53
56
|
content:
|
|
57
|
+
multipart/form-data:
|
|
58
|
+
schema:
|
|
59
|
+
$ref: '#/components/schemas/FdrSubmitUpload'
|
|
60
|
+
encoding:
|
|
61
|
+
pdf:
|
|
62
|
+
contentType: application/pdf
|
|
54
63
|
application/json:
|
|
55
64
|
schema:
|
|
56
65
|
$ref: '#/components/schemas/FdrSubmitRequest'
|
|
@@ -179,11 +188,18 @@ paths:
|
|
|
179
188
|
artifact) from the supplied EDI specification PDF. Returns a
|
|
180
189
|
`requestId` immediately; poll
|
|
181
190
|
`GET /v1/filedefinitionrules/parse/{requestId}` for status and
|
|
182
|
-
results.
|
|
183
|
-
|
|
191
|
+
results. Upload the PDF as a `multipart/form-data` file part; the
|
|
192
|
+
base64 JSON body is still accepted. Rate-limited to 10 submissions per
|
|
193
|
+
caller per hour (administrators bypass the limit).
|
|
184
194
|
requestBody:
|
|
185
195
|
required: true
|
|
186
196
|
content:
|
|
197
|
+
multipart/form-data:
|
|
198
|
+
schema:
|
|
199
|
+
$ref: '#/components/schemas/FdrSubmitUpload'
|
|
200
|
+
encoding:
|
|
201
|
+
pdf:
|
|
202
|
+
contentType: application/pdf
|
|
187
203
|
application/json:
|
|
188
204
|
schema:
|
|
189
205
|
$ref: '#/components/schemas/FdrSubmitRequest'
|
|
@@ -349,20 +365,52 @@ components:
|
|
|
349
365
|
type: http
|
|
350
366
|
scheme: bearer
|
|
351
367
|
schemas:
|
|
368
|
+
FdrSubmitUpload:
|
|
369
|
+
type: object
|
|
370
|
+
additionalProperties: false
|
|
371
|
+
required:
|
|
372
|
+
- pdf
|
|
373
|
+
- documentType
|
|
374
|
+
description: |-
|
|
375
|
+
Multipart form for submitting an EDI specification PDF. Send exactly
|
|
376
|
+
these two parts; any other part fails with `400 INVALID_REQUEST`.
|
|
377
|
+
properties:
|
|
378
|
+
pdf:
|
|
379
|
+
type: string
|
|
380
|
+
format: binary
|
|
381
|
+
contentMediaType: application/pdf
|
|
382
|
+
description: |-
|
|
383
|
+
EDI specification PDF, sent as a file part. Bytes that don't start
|
|
384
|
+
with `%PDF` fail with `422 PDF_EXTRACTION_FAILED`, and files over
|
|
385
|
+
50 MB with `413 PAYLOAD_TOO_LARGE`. A scanned or image-only PDF is
|
|
386
|
+
accepted, and the job then fails with `DETECTION_FAILED`.
|
|
387
|
+
documentType:
|
|
388
|
+
type: integer
|
|
389
|
+
description: |-
|
|
390
|
+
X12 transaction set number (e.g. 850), or 0 to auto-detect an
|
|
391
|
+
EDIFACT specification from the PDF contents. Same rules as the
|
|
392
|
+
JSON body's `documentType`.
|
|
393
|
+
examples:
|
|
394
|
+
- 850
|
|
352
395
|
FdrSubmitRequest:
|
|
353
396
|
type: object
|
|
397
|
+
additionalProperties: false
|
|
354
398
|
required:
|
|
355
399
|
- pdf
|
|
356
400
|
- documentType
|
|
401
|
+
description: |-
|
|
402
|
+
JSON body carrying the PDF as base64. The service still accepts it,
|
|
403
|
+
but a multipart upload avoids the base64 size overhead. Any other
|
|
404
|
+
field fails with `400 INVALID_REQUEST`.
|
|
357
405
|
properties:
|
|
358
406
|
pdf:
|
|
359
407
|
type: string
|
|
360
408
|
description: |-
|
|
361
|
-
Base64-encoded EDI specification PDF
|
|
362
|
-
|
|
363
|
-
fails with `
|
|
364
|
-
|
|
365
|
-
|
|
409
|
+
Base64-encoded EDI specification PDF; a `data:application/pdf;base64,`
|
|
410
|
+
prefix is stripped. A value that isn't base64 or doesn't decode to a
|
|
411
|
+
PDF fails with `422 PDF_EXTRACTION_FAILED`, and a decoded PDF over
|
|
412
|
+
50 MB with `413 PAYLOAD_TOO_LARGE`. A scanned or image-only PDF is
|
|
413
|
+
accepted, and the job then fails with `DETECTION_FAILED`.
|
|
366
414
|
documentType:
|
|
367
415
|
type: integer
|
|
368
416
|
description: |-
|
|
@@ -393,13 +441,13 @@ components:
|
|
|
393
441
|
- SERVICE_UNAVAILABLE
|
|
394
442
|
x-enumDescriptions:
|
|
395
443
|
INVALID_DOCUMENT_TYPE: documentType is not 0 and not a supported X12 set (400), or a failed job's PDF is not the submitted documentType
|
|
396
|
-
INVALID_REQUEST: Request body failed
|
|
444
|
+
INVALID_REQUEST: Request body failed validation — wrong Content-Type, malformed JSON, a missing pdf or documentType, or an unexpected field
|
|
397
445
|
UNAUTHORIZED: Missing or non-Bearer Authorization header
|
|
398
446
|
FORBIDDEN: Invalid, expired, or insufficient token or AShare
|
|
399
447
|
REQUEST_NOT_FOUND: Job id missing, wrong operation, or expired
|
|
400
|
-
PAYLOAD_TOO_LARGE:
|
|
448
|
+
PAYLOAD_TOO_LARGE: The PDF, or the multipart body carrying it, exceeds the size limit
|
|
401
449
|
RATE_LIMIT_EXCEEDED: Caller exceeded the endpoint token bucket
|
|
402
|
-
PDF_EXTRACTION_FAILED: pdf is not valid base64 or not
|
|
450
|
+
PDF_EXTRACTION_FAILED: pdf is not valid base64 or its bytes do not start with %PDF
|
|
403
451
|
UNSUPPORTED_TYPE: Worker could not generate an FDR for the detected type
|
|
404
452
|
DETECTION_FAILED: Worker could not classify the PDF as X12 or EDIFACT, including a PDF with no text (a scanned or image-only one)
|
|
405
453
|
GENERATION_FAILED: Unexpected pipeline or server failure
|
|
@@ -419,7 +467,7 @@ components:
|
|
|
419
467
|
description: Human-readable description of this error.
|
|
420
468
|
source:
|
|
421
469
|
type: string
|
|
422
|
-
description: Field or component that produced the error (`pdf`, `documentType`, `Authorization`, `requestId`, `rate_limiter`, `generation`).
|
|
470
|
+
description: Field or component that produced the error (`pdf`, `documentType`, `body`, `Content-Type`, `Authorization`, `requestId`, `rate_limiter`, `generation`), or the name of an unexpected field.
|
|
423
471
|
Error:
|
|
424
472
|
type: object
|
|
425
473
|
additionalProperties: false
|
|
@@ -605,7 +653,12 @@ components:
|
|
|
605
653
|
$ref: '#/components/schemas/FileDefinitionDocumentTypes'
|
|
606
654
|
responses:
|
|
607
655
|
400-bad-request:
|
|
608
|
-
description:
|
|
656
|
+
description: |-
|
|
657
|
+
Invalid documentType, or the request body failed validation: a
|
|
658
|
+
Content-Type other than multipart/form-data or JSON, malformed JSON,
|
|
659
|
+
a missing `pdf` file part or `documentType`, or an unexpected
|
|
660
|
+
field. documentType is checked after the PDF bytes, so a
|
|
661
|
+
non-PDF upload fails with 422 even when documentType is also invalid.
|
|
609
662
|
content:
|
|
610
663
|
application/json:
|
|
611
664
|
schema:
|
|
@@ -617,6 +670,26 @@ components:
|
|
|
617
670
|
- code: INVALID_DOCUMENT_TYPE
|
|
618
671
|
message: Document type must be a valid X12 transaction set number (e.g. 850) or 0 for EDIFACT; got 999
|
|
619
672
|
source: documentType
|
|
673
|
+
missingPdfPart:
|
|
674
|
+
summary: Multipart body without a pdf file part
|
|
675
|
+
value:
|
|
676
|
+
errors:
|
|
677
|
+
- code: INVALID_REQUEST
|
|
678
|
+
message: Field is required
|
|
679
|
+
source: pdf
|
|
680
|
+
unexpectedField:
|
|
681
|
+
summary: Multipart body with an extra field
|
|
682
|
+
value:
|
|
683
|
+
errors:
|
|
684
|
+
- code: INVALID_REQUEST
|
|
685
|
+
message: 'Unexpected field: foo'
|
|
686
|
+
source: foo
|
|
687
|
+
unsupportedContentType:
|
|
688
|
+
value:
|
|
689
|
+
errors:
|
|
690
|
+
- code: INVALID_REQUEST
|
|
691
|
+
message: Content-Type must be multipart/form-data or JSON
|
|
692
|
+
source: Content-Type
|
|
620
693
|
401-unauthorized:
|
|
621
694
|
description: Missing Authorization header or scheme is not Bearer JWT.
|
|
622
695
|
content:
|
|
@@ -644,7 +717,10 @@ components:
|
|
|
644
717
|
message: Bearer token has expired
|
|
645
718
|
source: Authorization
|
|
646
719
|
413-payload-too-large:
|
|
647
|
-
description:
|
|
720
|
+
description: |-
|
|
721
|
+
The PDF exceeds the 50 MB limit. A multipart body is rejected before
|
|
722
|
+
it is read when its Content-Length exceeds the limit plus a small
|
|
723
|
+
allowance for the form envelope.
|
|
648
724
|
content:
|
|
649
725
|
application/json:
|
|
650
726
|
schema:
|
|
@@ -654,10 +730,10 @@ components:
|
|
|
654
730
|
value:
|
|
655
731
|
errors:
|
|
656
732
|
- code: PAYLOAD_TOO_LARGE
|
|
657
|
-
message:
|
|
733
|
+
message: PDF exceeds 50 MB limit
|
|
658
734
|
source: pdf
|
|
659
735
|
422-unprocessable-entity:
|
|
660
|
-
description: pdf
|
|
736
|
+
description: The base64 `pdf` does not decode, or the uploaded or decoded bytes do not start with %PDF.
|
|
661
737
|
content:
|
|
662
738
|
application/json:
|
|
663
739
|
schema:
|
|
@@ -667,8 +743,9 @@ components:
|
|
|
667
743
|
value:
|
|
668
744
|
errors:
|
|
669
745
|
- code: PDF_EXTRACTION_FAILED
|
|
670
|
-
message:
|
|
746
|
+
message: uploaded bytes are not a valid PDF (missing %PDF header)
|
|
671
747
|
source: pdf
|
|
748
|
+
correlationId: 550e8400-e29b-41d4-a716-446655440000
|
|
672
749
|
429-rate-limit:
|
|
673
750
|
description: Caller exceeded the endpoint's rate limit.
|
|
674
751
|
headers:
|