@celigo/api-specs 0.2.301 → 0.2.303

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.
@@ -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:
@@ -5372,10 +5426,12 @@ components:
5372
5426
 
5373
5427
  Send `version` and `rules` directly on `inputFilter` — not inside the
5374
5428
  `{type: "expression", expression: {...}}` wrapper that export and import
5375
- filters use. A wrapped filter is saved without an error, but the branch is
5376
- stored with no `inputFilter` and takes every record.
5377
- x-celigo-ai-guidance:
5378
- - Read the flow back after saving a branching router and check that each filtered branch still has its `inputFilter`; a filter sent in the export-filter wrapper is dropped on save without an error.
5429
+ filters use. A wrapped filter (no top-level `rules`, and a non-empty
5430
+ `expression` or `script` object) fails the save with 422
5431
+ `invalid_router_branch_input_filter` "routers[0].branches[1].inputFilter uses
5432
+ the export/import filter wrapper { type, expression }. A router branch
5433
+ inputFilter takes the expression fields directly: { version: "1", rules: [...] }."
5434
+ The same check covers the branches under `overrides.routers`.
5379
5435
  properties:
5380
5436
  version:
5381
5437
  type: string
@@ -6046,7 +6102,11 @@ components:
6046
6102
  description: Overrides the branch's description explaining its purpose and criteria.
6047
6103
  inputFilter:
6048
6104
  type: object
6049
- description: Overrides the branch's input filter — the criteria that determine which records are routed to this branch.
6105
+ description: |-
6106
+ Overrides the branch's input filter — the criteria that determine which records are routed to this branch.
6107
+ Send `version` and `rules` directly; the export-filter wrapper
6108
+ `{type: "expression", expression: {...}}` fails the save with 422
6109
+ `invalid_router_branch_input_filter`.
6050
6110
  properties:
6051
6111
  version:
6052
6112
  type: string
@@ -6260,7 +6320,10 @@ components:
6260
6320
  to the account's "Standalone flows" integration (or the create fails
6261
6321
  with `422 standalone_flows_not_supported` when that integration is
6262
6322
  missing). A value that is not a well-formed ObjectId is rejected with
6263
- `400 invalid_ref` rather than auto-assigned. Always set it explicitly.
6323
+ `400 invalid_ref` rather than auto-assigned. Always set it explicitly. An
6324
+ integration with `syncs: true` takes no flows: creating a flow in one, or moving a
6325
+ flow into one, fails with 422 `integration_not_for_flow` "An integration is suppose
6326
+ to have either flows or syncs but not both."
6264
6327
  examples:
6265
6328
  - 60a2c4e6f321d800129a1a3c
6266
6329
  x-celigo-ai-guidance:
@@ -6654,6 +6717,11 @@ components:
6654
6717
  PUT with `draft: false` clears the flag and the expiry, promoting the draft to a
6655
6718
  permanent flow. PUT with `draft: true` on a non-draft flow is silently ignored,
6656
6719
  and a PUT that omits the field leaves an existing draft flag unchanged.
6720
+ - |-
6721
+ Clearing the flag approves the draft, and the approval belongs to the person
6722
+ the draft was created for: in integrator.io they give it by accepting the
6723
+ draft. An agent acting for that person never sends `draft: false` for them,
6724
+ and never gives them this request as the way to keep a draft.
6657
6725
  preSave:
6658
6726
  type: object
6659
6727
  description: Pre-save hook that runs a script before persisting flow changes.
@@ -9763,20 +9831,6 @@ components:
9763
9831
  errors:
9764
9832
  - code: not_found
9765
9833
  message: The requested resource was not found.
9766
- 422-dependency-conflict:
9767
- description: |-
9768
- The resource has dependents that must be deleted first. Each entry
9769
- in the `errors` array names one blocking resource.
9770
- content:
9771
- application/json:
9772
- schema:
9773
- $ref: '#/components/schemas/Error'
9774
- examples:
9775
- default:
9776
- value:
9777
- errors:
9778
- - code: dependencies_not_deleted
9779
- message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
9780
9834
  403-forbidden:
9781
9835
  description: |
9782
9836
  Forbidden. The authenticated caller does not have permission to perform this operation.
package/dist/import.yml CHANGED
@@ -1699,7 +1699,14 @@ components:
1699
1699
  sendPostMappedData:
1700
1700
  type: boolean
1701
1701
  default: true
1702
- description: When true, the request body is the record as reshaped by the import's mapping step. When false, the original pre-mapped record is sent instead, bypassing the mappings for the payload.
1702
+ description: When true, an import with no `body` template sends the record as the request body — as its mapping step leaves it, or unchanged when the import has no mapping. When false, an import with no `body` template sends its request with no body. A `body` template is rendered against the mapped record under either value.
1703
+ x-celigo-ai-guidance:
1704
+ - |-
1705
+ Leave this ``true`` (the default) on an import that sends its record: ``false`` does
1706
+ not send the record as it was before mapping. Live-verified 2026-11-13 on HTTP imports
1707
+ under Mapper 2.0 and Mapper 1.0: with no ``body`` template, ``false`` sent an empty
1708
+ request body with a mapping and without one; with a ``body`` template the request was
1709
+ the same under ``true`` and ``false``.
1703
1710
  isRest:
1704
1711
  type: boolean
1705
1712
  description: Internal flag indicating the import was built with the legacy REST form rather than the unified HTTP framework. Set by the form; not configured directly.
@@ -6143,6 +6150,14 @@ components:
6143
6150
  ```json
6144
6151
  "queryType": ["first_page"]
6145
6152
  ```
6153
+ database:
6154
+ type: string
6155
+ description: |-
6156
+ Database to run the import's queries in when it differs from the connection's
6157
+ `rdbms.database`. Leading and trailing whitespace is trimmed on save, and a
6158
+ whitespace-only value is not stored. A PUT that omits it removes it.
6159
+ examples:
6160
+ - analytics
6146
6161
  bulkInsert:
6147
6162
  type: object
6148
6163
  description: |-
@@ -9163,7 +9178,10 @@ components:
9163
9178
  bring-your-own-keys connection model: the tool declares abstract connection slots, and the
9164
9179
  consumer binds concrete connections here so one tool definition can run against different
9165
9180
  systems without being modified. Bind every connection the tool's steps use; to keep the
9166
- connection a step was authored against, bind it to itself.
9181
+ connection a step was authored against, bind it to itself. A branch `inputFilter` sent
9182
+ under `overrides.routers` takes `version` and `rules` directly; in the export-filter
9183
+ wrapper `{type: "expression", expression: {...}}` it fails the save with 422
9184
+ `invalid_router_branch_input_filter`.
9167
9185
  x-celigo-ai-guidance:
9168
9186
  - |-
9169
9187
  Per-consumer overrides applied when the wrapper invokes the underlying Tool.
@@ -9790,7 +9808,9 @@ components:
9790
9808
  description: |-
9791
9809
  Which batches of a run's records become separate output files. EDI file definitions
9792
9810
  (`file.type: filedefinition`) are written per page or per key, never per run; `key`
9793
- is accepted only for them and only when the account has B2B Manager. The grouping
9811
+ is accepted only for them and only when the account has B2B Manager, and not for a
9812
+ `delimited/tradacoms` definition (422 `not_supported` "Aggregation type key is only
9813
+ supported for B2B Manager"). The grouping
9794
9814
  key and the line-item loop it merges come from the EDI file definition's document
9795
9815
  type, so there is no separate key field to configure.
9796
9816
  examples:
@@ -10328,6 +10348,7 @@ components:
10328
10348
  description: Name of the JSON schema, for `json_schema` output.
10329
10349
  strict:
10330
10350
  type: boolean
10351
+ default: false
10331
10352
  description: When true, the model must conform exactly to `jsonSchema`.
10332
10353
  jsonSchema:
10333
10354
  type: object
@@ -10861,7 +10882,11 @@ components:
10861
10882
  description: Reference to the Tool resource
10862
10883
  overrides:
10863
10884
  type: object
10864
- description: Per-agent overrides for the tool's internal resources
10885
+ description: |-
10886
+ Per-agent overrides for the tool's internal resources. A branch
10887
+ `inputFilter` sent under `overrides.routers` takes `version` and `rules`
10888
+ directly; in the export-filter wrapper `{type: "expression", expression:
10889
+ {...}}` it fails the save with 422 `invalid_router_branch_input_filter`.
10865
10890
  properties:
10866
10891
  connections:
10867
10892
  type: array
@@ -17738,6 +17763,35 @@ components:
17738
17763
  unencrypted:
17739
17764
  type: object
17740
17765
  description: Custom configuration values stored without encryption and returned in API responses.
17766
+ properties:
17767
+ apiType:
17768
+ type: string
17769
+ enum:
17770
+ - Amazon-SP-API
17771
+ - ''
17772
+ x-enumDescriptions:
17773
+ Amazon-SP-API: The import calls Amazon's Selling Partner API
17774
+ '': The import calls Amazon's legacy Marketplace Web Service (MWS) API
17775
+ description: |-
17776
+ Selects which Amazon API family the import calls when its connection is an Amazon
17777
+ Seller Central connection of type `Amazon-Hybrid`, which serves both the Selling
17778
+ Partner API and the legacy Marketplace Web Service (MWS).
17779
+ x-celigo-ai-guidance:
17780
+ - |-
17781
+ This is a field of the import, not of its connection: the connection's `http.type`
17782
+ says which API families it can reach, and each import on an `Amazon-Hybrid`
17783
+ connection names its own. Set `Amazon-SP-API` on every import that calls a Selling
17784
+ Partner API endpoint through such a connection.
17785
+ - |-
17786
+ The import form offers this choice only when the connection's `http.type` is
17787
+ `Amazon-Hybrid`, and writes `Amazon-SP-API` itself on every import whose connection's
17788
+ `http.type` is `Amazon-SP-API`.
17789
+ - |-
17790
+ A full PUT that omits `unencrypted` clears this field, so resend the stored value on
17791
+ every update. On an `Amazon-Hybrid` connection a value outside the enum fails the save
17792
+ with 422 `invalid_value_for_amazon_api_type` on `unencrypted.apiType`.
17793
+ examples:
17794
+ - Amazon-SP-API
17741
17795
  sampleData:
17742
17796
  type:
17743
17797
  - object
@@ -18125,7 +18179,7 @@ components:
18125
18179
  format: objectId
18126
18180
  x-celigo-refModel: ediprofiles
18127
18181
  description: |-
18128
- EDI profile this import uses to generate outbound X12 or EDIFACT documents — it supplies
18182
+ EDI profile this import uses to generate outbound X12, EDIFACT, or TRADACOMS documents — it supplies
18129
18183
  the envelope qualifiers, delimiters, version, and validation rules. Set it when the
18130
18184
  import produces EDI output; omit it otherwise. Accepted on the file-writing imports —
18131
18185
  FTP, AS2, S3 and HTTP file mode (`http.type: "file"`).