@celigo/api-specs 0.2.302 → 0.2.304

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/enduser.yml CHANGED
@@ -3765,6 +3765,39 @@ components:
3765
3765
  an OAuth 2.0 client."). An update that omits it keeps the stored mode.
3766
3766
  examples:
3767
3767
  - automatic
3768
+ registration:
3769
+ type: object
3770
+ readOnly: true
3771
+ description: |-
3772
+ Client registration discovered for an `automatic` connection. The server writes it,
3773
+ together with the discovered `authURI`, `tokenURI`, `scope`, and `scopeDelimiter`, when
3774
+ the authorization URL is requested (`GET /v1/connection/{_id}/oauth2`); a connection
3775
+ that has only been saved carries none. A value sent on write is ignored.
3776
+ properties:
3777
+ method:
3778
+ type: string
3779
+ enum:
3780
+ - cimd
3781
+ x-enumDescriptions:
3782
+ cimd: Client ID Metadata Document; the client id is a public URL and there is no client secret.
3783
+ description: How integrator.io identifies itself to the MCP server's authorization server.
3784
+ examples:
3785
+ - cimd
3786
+ issuer:
3787
+ type: string
3788
+ description: Issuer identifier the MCP server's authorization server publishes in its metadata.
3789
+ examples:
3790
+ - https://auth.example.com
3791
+ issParameterSupported:
3792
+ type: boolean
3793
+ description: When true, the authorization server's metadata declares that it sends `iss` on authorization responses.
3794
+ examples:
3795
+ - true
3796
+ clientId:
3797
+ type: string
3798
+ description: Metadata document URL sent as `client_id` in the authorization URL.
3799
+ examples:
3800
+ - https://integrator.io/oidc/mcp-client-metadata
3768
3801
  if:
3769
3802
  properties:
3770
3803
  grantType:
@@ -3,7 +3,7 @@ info:
3
3
  version: 1.0.0
4
4
  title: File Definition Rules
5
5
  description: |-
6
- Async AI generation of EDI File Definition Rules (FDR) from specification PDFs.
6
+ AI generation of EDI File Definition Rules (FDR) from specification PDFs.
7
7
  Produces parsing and generation rules JSON; persists nothing.
8
8
  servers:
9
9
  - url: https://api.integrator.io
@@ -20,11 +20,12 @@ tags:
20
20
  - name: File Definition Rules
21
21
  description: |-
22
22
  Submit an EDI specification PDF (X12 or EDIFACT) and receive parsing
23
- and/or generation File Definition Rules JSON, generated asynchronously.
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`.
23
+ and/or generation File Definition Rules JSON. Submit endpoints take the
24
+ PDF as a `multipart/form-data` file part (or the legacy base64 JSON
25
+ body). The generate endpoint waits for the result and returns it
26
+ (200) unless you pass `async=true`; with `async=true`, and on the parse
27
+ endpoint, you get a `requestId` immediately (202) and poll the matching
28
+ GET endpoint until the job reaches `completed` or `failed`.
28
29
  Job records expire 24 hours after submission. Submissions are
29
30
  rate-limited per caller (10 per hour, with an administrator bypass);
30
31
  the document-types catalog allows 100 per hour and 10 per 60 seconds.
@@ -42,15 +43,27 @@ paths:
42
43
  operationId: submitFdrGeneration
43
44
  tags:
44
45
  - File Definition Rules
45
- summary: Submit an FDR generation job
46
+ summary: Generate FDR artifacts
46
47
  description: |-
47
- Submits an async job that produces both parsing and generation FDR
48
- artifacts from the supplied EDI specification PDF. Returns a
49
- `requestId` immediately; poll
50
- `GET /v1/filedefinitionrules/generate/{requestId}` for status and
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).
48
+ Produces both parsing and generation FDR artifacts from the supplied
49
+ EDI specification PDF. By default the call waits for the job and
50
+ returns the artifacts (200), or the job's failure as an error response.
51
+ Pass `async=true` to get the `requestId` immediately (202) instead, then
52
+ poll `GET /v1/filedefinitionrules/generate/{requestId}`. Upload the PDF
53
+ as a `multipart/form-data` file part; the base64 JSON body is still
54
+ accepted. Rate-limited to 10 submissions per caller per hour
55
+ (administrators bypass the limit).
56
+ parameters:
57
+ - name: async
58
+ in: query
59
+ required: false
60
+ description: |-
61
+ When true, the job is queued and its `requestId` returned at once
62
+ (202) instead of waiting for the result. A value that isn't a
63
+ boolean fails with `400 INVALID_REQUEST` (`source: async`).
64
+ schema:
65
+ type: boolean
66
+ default: false
54
67
  requestBody:
55
68
  required: true
56
69
  content:
@@ -70,8 +83,29 @@ paths:
70
83
  pdf: <base64-encoded PDF>
71
84
  documentType: 850
72
85
  responses:
86
+ '200':
87
+ description: Generation completed (the default, without `async=true`).
88
+ content:
89
+ application/json:
90
+ schema:
91
+ $ref: '#/components/schemas/FileDefinitionRulesResult'
92
+ examples:
93
+ x12:
94
+ summary: X12 850 specification
95
+ value:
96
+ format: x12
97
+ docNumber: 850
98
+ parsingFdr: {}
99
+ generationFdr: {}
100
+ edifact:
101
+ summary: EDIFACT specification submitted with documentType 0
102
+ value:
103
+ format: edifact
104
+ docNumber: null
105
+ parsingFdr: {}
106
+ generationFdr: {}
73
107
  '202':
74
- description: Job accepted.
108
+ description: Job accepted (`async=true`).
75
109
  content:
76
110
  application/json:
77
111
  schema:
@@ -94,7 +128,60 @@ paths:
94
128
  fileDefinitionGenerationJob:
95
129
  requestId: 550e8400-e29b-41d4-a716-446655440000
96
130
  '400':
97
- $ref: '#/components/responses/400-bad-request'
131
+ description: |-
132
+ Invalid documentType, a non-boolean `async`, or the request body
133
+ failed validation: a Content-Type other than multipart/form-data or
134
+ JSON, malformed JSON, a missing `pdf` file part or `documentType`, or
135
+ an unexpected field. documentType is checked after the PDF bytes, so
136
+ a non-PDF upload fails with 422 even when documentType is also
137
+ invalid. While waiting, a job that fails because the PDF is for a
138
+ different transaction set than `documentType` also answers
139
+ `INVALID_DOCUMENT_TYPE`.
140
+ content:
141
+ application/json:
142
+ schema:
143
+ $ref: '#/components/schemas/Error'
144
+ examples:
145
+ invalidDocumentType:
146
+ value:
147
+ errors:
148
+ - code: INVALID_DOCUMENT_TYPE
149
+ message: Document type must be a valid X12 transaction set number (e.g. 850) or 0 for EDIFACT; got 999
150
+ source: documentType
151
+ documentTypeMismatch:
152
+ summary: While waiting — the PDF is for another transaction set
153
+ value:
154
+ errors:
155
+ - code: INVALID_DOCUMENT_TYPE
156
+ message: Submitted documentType does not match the PDF
157
+ source: documentType
158
+ invalidAsync:
159
+ summary: async is not a boolean
160
+ value:
161
+ errors:
162
+ - code: INVALID_REQUEST
163
+ message: Input should be a valid boolean, unable to interpret input
164
+ source: async
165
+ missingPdfPart:
166
+ summary: Multipart body without a pdf file part
167
+ value:
168
+ errors:
169
+ - code: INVALID_REQUEST
170
+ message: Field is required
171
+ source: pdf
172
+ unexpectedField:
173
+ summary: Multipart body with an extra field
174
+ value:
175
+ errors:
176
+ - code: INVALID_REQUEST
177
+ message: 'Unexpected field: foo'
178
+ source: foo
179
+ unsupportedContentType:
180
+ value:
181
+ errors:
182
+ - code: INVALID_REQUEST
183
+ message: Content-Type must be multipart/form-data or JSON
184
+ source: Content-Type
98
185
  '401':
99
186
  $ref: '#/components/responses/401-unauthorized'
100
187
  '403':
@@ -102,7 +189,28 @@ paths:
102
189
  '413':
103
190
  $ref: '#/components/responses/413-payload-too-large'
104
191
  '422':
105
- $ref: '#/components/responses/422-unprocessable-entity'
192
+ description: |-
193
+ The upload is not a PDF (`PDF_EXTRACTION_FAILED`), or, while
194
+ waiting, the job failed with `DETECTION_FAILED` (no readable text, or
195
+ not recognizably X12 or EDIFACT), which carries `source: generation`.
196
+ content:
197
+ application/json:
198
+ schema:
199
+ $ref: '#/components/schemas/Error'
200
+ examples:
201
+ notPdf:
202
+ value:
203
+ errors:
204
+ - code: PDF_EXTRACTION_FAILED
205
+ message: uploaded bytes are not a valid PDF (missing %PDF header)
206
+ source: pdf
207
+ detectionFailed:
208
+ summary: While waiting — the job could not classify the PDF
209
+ value:
210
+ errors:
211
+ - code: DETECTION_FAILED
212
+ message: Could not detect EDI format from the PDF
213
+ source: generation
106
214
  '429':
107
215
  $ref: '#/components/responses/429-rate-limit'
108
216
  '500':
@@ -423,6 +531,44 @@ components:
423
531
  with `INVALID_DOCUMENT_TYPE`.
424
532
  examples:
425
533
  - 850
534
+ FileDefinitionRulesResult:
535
+ type: object
536
+ additionalProperties: false
537
+ required:
538
+ - format
539
+ - parsingFdr
540
+ - generationFdr
541
+ description: |-
542
+ Result of a generation the call waited for: the detected format and
543
+ both FDR artifacts.
544
+ properties:
545
+ format:
546
+ type: string
547
+ enum:
548
+ - x12
549
+ - edifact
550
+ x-enumDescriptions:
551
+ x12: The PDF was generated as an X12 transaction set.
552
+ edifact: The PDF was detected as an EDIFACT message (documentType 0).
553
+ description: EDI standard the rules were generated for.
554
+ docNumber:
555
+ type:
556
+ - integer
557
+ - 'null'
558
+ description: |-
559
+ X12 transaction set number the rules were generated for — the
560
+ submitted `documentType`. `null` for an EDIFACT specification
561
+ (submitted with `documentType` 0).
562
+ examples:
563
+ - 850
564
+ parsingFdr:
565
+ type: object
566
+ additionalProperties: true
567
+ description: Opaque parsing FDR JSON artifact.
568
+ generationFdr:
569
+ type: object
570
+ additionalProperties: true
571
+ description: Opaque generation FDR JSON artifact.
426
572
  ErrorCode:
427
573
  type: string
428
574
  description: Machine-readable failure code returned by the FDR service.
@@ -441,7 +587,7 @@ components:
441
587
  - SERVICE_UNAVAILABLE
442
588
  x-enumDescriptions:
443
589
  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
444
- INVALID_REQUEST: Request body failed validation — wrong Content-Type, malformed JSON, a missing pdf or documentType, or an unexpected field
590
+ INVALID_REQUEST: Request failed validation — wrong Content-Type, malformed JSON, a missing pdf or documentType, an unexpected field, or a non-boolean async query value
445
591
  UNAUTHORIZED: Missing or non-Bearer Authorization header
446
592
  FORBIDDEN: Invalid, expired, or insufficient token or AShare
447
593
  REQUEST_NOT_FOUND: Job id missing, wrong operation, or expired
@@ -467,7 +613,7 @@ components:
467
613
  description: Human-readable description of this error.
468
614
  source:
469
615
  type: string
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.
616
+ description: Field or component that produced the error (`pdf`, `documentType`, `async`, `body`, `Content-Type`, `Authorization`, `requestId`, `rate_limiter`, `generation`), or the name of an unexpected field.
471
617
  Error:
472
618
  type: object
473
619
  additionalProperties: false
@@ -652,44 +798,6 @@ components:
652
798
  fileDefinitionDocumentTypes:
653
799
  $ref: '#/components/schemas/FileDefinitionDocumentTypes'
654
800
  responses:
655
- 400-bad-request:
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.
662
- content:
663
- application/json:
664
- schema:
665
- $ref: '#/components/schemas/Error'
666
- examples:
667
- invalidDocumentType:
668
- value:
669
- errors:
670
- - code: INVALID_DOCUMENT_TYPE
671
- message: Document type must be a valid X12 transaction set number (e.g. 850) or 0 for EDIFACT; got 999
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
693
801
  401-unauthorized:
694
802
  description: Missing Authorization header or scheme is not Bearer JWT.
695
803
  content:
@@ -732,20 +840,6 @@ components:
732
840
  - code: PAYLOAD_TOO_LARGE
733
841
  message: PDF exceeds 50 MB limit
734
842
  source: pdf
735
- 422-unprocessable-entity:
736
- description: The base64 `pdf` does not decode, or the uploaded or decoded bytes do not start with %PDF.
737
- content:
738
- application/json:
739
- schema:
740
- $ref: '#/components/schemas/Error'
741
- examples:
742
- notPdf:
743
- value:
744
- errors:
745
- - code: PDF_EXTRACTION_FAILED
746
- message: uploaded bytes are not a valid PDF (missing %PDF header)
747
- source: pdf
748
- correlationId: 550e8400-e29b-41d4-a716-446655440000
749
843
  429-rate-limit:
750
844
  description: Caller exceeded the endpoint's rate limit.
751
845
  headers:
@@ -803,5 +897,57 @@ components:
803
897
  - code: REQUEST_NOT_FOUND
804
898
  message: Request ID not found or expired (24h TTL)
805
899
  source: requestId
900
+ 400-bad-request:
901
+ description: |-
902
+ Invalid documentType, or the request body failed validation: a
903
+ Content-Type other than multipart/form-data or JSON, malformed JSON,
904
+ a missing `pdf` file part or `documentType`, or an unexpected
905
+ field. documentType is checked after the PDF bytes, so a
906
+ non-PDF upload fails with 422 even when documentType is also invalid.
907
+ content:
908
+ application/json:
909
+ schema:
910
+ $ref: '#/components/schemas/Error'
911
+ examples:
912
+ invalidDocumentType:
913
+ value:
914
+ errors:
915
+ - code: INVALID_DOCUMENT_TYPE
916
+ message: Document type must be a valid X12 transaction set number (e.g. 850) or 0 for EDIFACT; got 999
917
+ source: documentType
918
+ missingPdfPart:
919
+ summary: Multipart body without a pdf file part
920
+ value:
921
+ errors:
922
+ - code: INVALID_REQUEST
923
+ message: Field is required
924
+ source: pdf
925
+ unexpectedField:
926
+ summary: Multipart body with an extra field
927
+ value:
928
+ errors:
929
+ - code: INVALID_REQUEST
930
+ message: 'Unexpected field: foo'
931
+ source: foo
932
+ unsupportedContentType:
933
+ value:
934
+ errors:
935
+ - code: INVALID_REQUEST
936
+ message: Content-Type must be multipart/form-data or JSON
937
+ source: Content-Type
938
+ 422-unprocessable-entity:
939
+ description: The base64 `pdf` does not decode, or the uploaded or decoded bytes do not start with %PDF.
940
+ content:
941
+ application/json:
942
+ schema:
943
+ $ref: '#/components/schemas/Error'
944
+ examples:
945
+ notPdf:
946
+ value:
947
+ errors:
948
+ - code: PDF_EXTRACTION_FAILED
949
+ message: uploaded bytes are not a valid PDF (missing %PDF header)
950
+ source: pdf
951
+ correlationId: 550e8400-e29b-41d4-a716-446655440000
806
952
  x-internal: false
807
953
  x-enable-proxy: true
package/dist/flow.yml CHANGED
@@ -534,8 +534,9 @@ paths:
534
534
  Scheduled executions are stopped and any running jobs are cancelled.
535
535
 
536
536
  Check `GET /v1/flows/{_id}/dependencies` first — if other resources reference this flow,
537
- the delete is blocked. Soft-deleted flows can be restored via the recycle bin endpoints
538
- within 30 days.
537
+ the delete is blocked. That includes another flow or a sync whose `_runNextFlowIds` lists
538
+ this flow, even a disabled one. Soft-deleted flows can be restored via the recycle bin
539
+ endpoints within 30 days.
539
540
  operationId: deleteFlow
540
541
  tags:
541
542
  - Flows
@@ -558,11 +559,33 @@ paths:
558
559
  '404':
559
560
  $ref: '#/components/responses/404-not-found'
560
561
  '422':
561
- $ref: '#/components/responses/422-dependency-conflict'
562
+ description: |-
563
+ Another resource still references this flow (`dependencies_not_deleted`); each `errors`
564
+ entry names one. A sync is named when its `_runNextFlowIds` lists this flow: take this
565
+ flow off that list with `PUT /v1/syncs/{_syncId}`, then retry the delete.
566
+ content:
567
+ application/json:
568
+ schema:
569
+ $ref: '#/components/schemas/Error'
570
+ examples:
571
+ runNextReferences:
572
+ summary: Another flow and a sync both list this flow in _runNextFlowIds
573
+ value:
574
+ errors:
575
+ - code: dependencies_not_deleted
576
+ message: flow 69f4b2cb95ec28be9ca1a88d must be deleted before you can delete flow 5f8d43a1b9e5a80011a35f2c
577
+ - code: dependencies_not_deleted
578
+ message: sync 6a4b8bfb731a7a5cae9bd364 must be deleted before you can delete flow 5f8d43a1b9e5a80011a35f2c
562
579
  x-celigo-ai-guidance:
563
580
  - |-
564
581
  Deletes a flow configuration. This will stop any scheduled executions and remove
565
582
  the flow from the system. Any running jobs will be cancelled.
583
+ - |-
584
+ A 422 naming a sync ("sync <_syncId> must be deleted before you can delete flow <_id>")
585
+ means that sync's `_runNextFlowIds` lists this flow. Don't delete the sync to clear it, since
586
+ a deleted sync can't be restored: send PUT /v1/syncs/{_syncId} with the sync's full
587
+ configuration and this flow removed from `_runNextFlowIds` (`[]` when it was the only
588
+ entry), then retry the delete.
566
589
  /v1/flows/{_id}/clone:
567
590
  post:
568
591
  x-internal: false
@@ -4724,9 +4747,12 @@ paths:
4724
4747
  An empty object `{}` means no other resources depend on the target — this is also returned for a
4725
4748
  well-formatted but nonexistent id.
4726
4749
 
4727
- A `flows` entry whose `paths` holds `_runNextFlowIds` is an upstream flow: its own
4728
- `_runNextFlowIds` lists this flow, so this flow starts when a run of that one completes. The
4729
- flows this flow starts are in its own `_runNextFlowIds`, not in this response.
4750
+ A `flows` entry whose `paths` holds `_runNextFlowIds[*]` is an upstream flow: its own
4751
+ `_runNextFlowIds` lists this flow, so this flow starts when a run of that one completes. A
4752
+ `syncs` entry with that path is a sync whose `_runNextFlowIds` lists this flow. The flows
4753
+ this flow starts are in its own `_runNextFlowIds`, not in this response. Each listed flow's
4754
+ or sync's integration is listed under `integrations` too, with empty `paths` and
4755
+ `dependencyIds` naming the flows or syncs it holds.
4730
4756
  parameters:
4731
4757
  - name: _id
4732
4758
  in: path
@@ -4755,7 +4781,35 @@ paths:
4755
4781
  - id: 69f4b2cb95ec28be9ca1a88d
4756
4782
  name: Order Sync (paused)
4757
4783
  paths:
4758
- - _runNextFlowIds
4784
+ - _runNextFlowIds[*]
4785
+ accessLevel: manage
4786
+ dependencyIds:
4787
+ flow:
4788
+ - 650b1a461bedf477d54f2e43
4789
+ integrations:
4790
+ - id: 69f4b2c095ec28be9ca1a880
4791
+ name: Order Management
4792
+ paths: []
4793
+ accessLevel: manage
4794
+ dependencyIds:
4795
+ flow:
4796
+ - 69f4b2cb95ec28be9ca1a88d
4797
+ listedBySync:
4798
+ summary: A sync lists this flow in its _runNextFlowIds
4799
+ value:
4800
+ integrations:
4801
+ - id: 69f4ffd395ec28be9cb8c12e
4802
+ name: Salesforce to Snowflake
4803
+ paths: []
4804
+ accessLevel: manage
4805
+ dependencyIds:
4806
+ sync:
4807
+ - 6a4b8bfb731a7a5cae9bd364
4808
+ syncs:
4809
+ - id: 6a4b8bfb731a7a5cae9bd364
4810
+ name: Salesforce Demo Sync
4811
+ paths:
4812
+ - _runNextFlowIds[*]
4759
4813
  accessLevel: manage
4760
4814
  dependencyIds:
4761
4815
  flow:
@@ -9777,20 +9831,6 @@ components:
9777
9831
  errors:
9778
9832
  - code: not_found
9779
9833
  message: The requested resource was not found.
9780
- 422-dependency-conflict:
9781
- description: |-
9782
- The resource has dependents that must be deleted first. Each entry
9783
- in the `errors` array names one blocking resource.
9784
- content:
9785
- application/json:
9786
- schema:
9787
- $ref: '#/components/schemas/Error'
9788
- examples:
9789
- default:
9790
- value:
9791
- errors:
9792
- - code: dependencies_not_deleted
9793
- message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
9794
9834
  403-forbidden:
9795
9835
  description: |
9796
9836
  Forbidden. The authenticated caller does not have permission to perform this operation.