@celigo/api-specs 0.2.265 → 0.2.267
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/ai-agent.yml +8 -8
- package/dist/alert.yml +1 -15
- package/dist/api.yml +59 -15
- package/dist/apim.yml +20 -2
- package/dist/connection.yml +129 -14
- package/dist/connector.yml +44 -7
- package/dist/eventreport.yml +22 -3
- package/dist/flow.yml +12 -1
- package/dist/import.yml +65 -9
- package/dist/job.yml +35 -4
- package/dist/lookupcache.yml +60 -9
- package/dist/notification.yml +19 -2
- package/dist/subscription.yml +18 -0
- package/dist/sync.yml +216 -36
- package/dist/template.yml +28 -13
- package/dist/tool.yml +65 -9
- package/dist/tradingpartnerconnector.yml +36 -21
- package/package.json +1 -1
- package/schemas.json +63 -62
package/dist/sync.yml
CHANGED
|
@@ -143,7 +143,9 @@ paths:
|
|
|
143
143
|
'204':
|
|
144
144
|
description: No syncs exist in the account.
|
|
145
145
|
'401':
|
|
146
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
146
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
147
|
+
'403':
|
|
148
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
147
149
|
'422':
|
|
148
150
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
149
151
|
post:
|
|
@@ -237,7 +239,32 @@ paths:
|
|
|
237
239
|
- code: missing_integration_id
|
|
238
240
|
message: To create sync integration id is required. Not provided in request body.
|
|
239
241
|
'401':
|
|
240
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
242
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
243
|
+
'403':
|
|
244
|
+
description: |-
|
|
245
|
+
Forbidden. Returned for a user with manage access to specific integrations only
|
|
246
|
+
when `_integrationId` is not one of them, or when `source._connectionId` or
|
|
247
|
+
`destination._connectionId` is not registered on any of their integrations
|
|
248
|
+
(`invalid_access`). The account owner and users with account-level access skip
|
|
249
|
+
both checks. A request made with a one-time token is refused with
|
|
250
|
+
`access_restricted`.
|
|
251
|
+
content:
|
|
252
|
+
application/json:
|
|
253
|
+
schema:
|
|
254
|
+
$ref: '#/components/schemas/Error'
|
|
255
|
+
examples:
|
|
256
|
+
unregisteredConnection:
|
|
257
|
+
summary: A connection the caller's integrations don't register
|
|
258
|
+
value:
|
|
259
|
+
errors:
|
|
260
|
+
- code: invalid_access
|
|
261
|
+
message: You don't have the required permission to access the integration. Please contact your account administrator to gain access for the integration.
|
|
262
|
+
oneTimeToken:
|
|
263
|
+
summary: Request made with a one-time token
|
|
264
|
+
value:
|
|
265
|
+
errors:
|
|
266
|
+
- code: access_restricted
|
|
267
|
+
message: Access restricted
|
|
241
268
|
'422':
|
|
242
269
|
description: |-
|
|
243
270
|
Validation failed. `source._connectionId` is missing
|
|
@@ -326,7 +353,9 @@ paths:
|
|
|
326
353
|
reduced: automate
|
|
327
354
|
expanded: automate
|
|
328
355
|
'401':
|
|
329
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
356
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
357
|
+
'403':
|
|
358
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
330
359
|
'404':
|
|
331
360
|
$ref: '#/components/responses/404-not-found'
|
|
332
361
|
put:
|
|
@@ -440,7 +469,31 @@ paths:
|
|
|
440
469
|
- code: sync_integration_id_update
|
|
441
470
|
message: Integration Id cannot be updated in sync once assigned.
|
|
442
471
|
'401':
|
|
443
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
472
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
473
|
+
'403':
|
|
474
|
+
description: |-
|
|
475
|
+
Forbidden. Returned for a user with manage access to specific integrations only
|
|
476
|
+
when the body's `source._connectionId` or `destination._connectionId` is not
|
|
477
|
+
registered on any of their integrations (`invalid_access`); the stored sync is
|
|
478
|
+
unchanged. The account owner and users with account-level access skip this check.
|
|
479
|
+
A request made with a one-time token is refused with `access_restricted`.
|
|
480
|
+
content:
|
|
481
|
+
application/json:
|
|
482
|
+
schema:
|
|
483
|
+
$ref: '#/components/schemas/Error'
|
|
484
|
+
examples:
|
|
485
|
+
unregisteredConnection:
|
|
486
|
+
summary: A connection the caller's integrations don't register
|
|
487
|
+
value:
|
|
488
|
+
errors:
|
|
489
|
+
- code: invalid_access
|
|
490
|
+
message: You don't have the required permission to access the integration. Please contact your account administrator to gain access for the integration.
|
|
491
|
+
oneTimeToken:
|
|
492
|
+
summary: Request made with a one-time token
|
|
493
|
+
value:
|
|
494
|
+
errors:
|
|
495
|
+
- code: access_restricted
|
|
496
|
+
message: Access restricted
|
|
444
497
|
'404':
|
|
445
498
|
$ref: '#/components/responses/404-not-found'
|
|
446
499
|
'422':
|
|
@@ -521,7 +574,9 @@ paths:
|
|
|
521
574
|
- code: sync_delete_not_allowed
|
|
522
575
|
message: Cannot delete an enabled sync. Please disable the sync before deletion.
|
|
523
576
|
'401':
|
|
524
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
577
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
578
|
+
'403':
|
|
579
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
525
580
|
'404':
|
|
526
581
|
$ref: '#/components/responses/404-not-found'
|
|
527
582
|
/v1/integrations/{_integrationId}/syncs:
|
|
@@ -608,7 +663,9 @@ paths:
|
|
|
608
663
|
'204':
|
|
609
664
|
description: The integration has no syncs, or the integration does not exist.
|
|
610
665
|
'401':
|
|
611
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
666
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
667
|
+
'403':
|
|
668
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
612
669
|
'422':
|
|
613
670
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
614
671
|
/v1/syncs/{_syncId}/datasets:
|
|
@@ -618,7 +675,9 @@ paths:
|
|
|
618
675
|
description: |-
|
|
619
676
|
Returns the datasets configured on a sync — the tables/objects it replicates —
|
|
620
677
|
sorted by name. Export-backed datasets whose export no longer uses the sync's
|
|
621
|
-
source connection carry `mismatchSyncConnection: true`.
|
|
678
|
+
source connection carry `mismatchSyncConnection: true`. An export-backed dataset
|
|
679
|
+
whose export was deleted is left out of the list, and the sync's next run deletes
|
|
680
|
+
it.
|
|
622
681
|
operationId: listDatasetsForSync
|
|
623
682
|
tags:
|
|
624
683
|
- Syncs
|
|
@@ -734,9 +793,7 @@ paths:
|
|
|
734
793
|
children: []
|
|
735
794
|
mismatchSyncConnection: true
|
|
736
795
|
'204':
|
|
737
|
-
description:
|
|
738
|
-
The sync has no datasets (none matching `enable`, when it is sent), or the sync
|
|
739
|
-
does not exist.
|
|
796
|
+
description: The sync exists and has no datasets (none matching `enable`, when it is sent).
|
|
740
797
|
'400':
|
|
741
798
|
description: |-
|
|
742
799
|
`enable` is something other than `true` or `false` (`invalid_query_param`). The
|
|
@@ -753,7 +810,22 @@ paths:
|
|
|
753
810
|
- code: invalid_query_param
|
|
754
811
|
message: The query parameter "enable" has invalid value.
|
|
755
812
|
'401':
|
|
756
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
813
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
814
|
+
'403':
|
|
815
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
816
|
+
'404':
|
|
817
|
+
description: The sync does not exist in the account or was deleted (`invalid_ref`).
|
|
818
|
+
content:
|
|
819
|
+
application/json:
|
|
820
|
+
schema:
|
|
821
|
+
$ref: '#/components/schemas/Error'
|
|
822
|
+
examples:
|
|
823
|
+
missingSync:
|
|
824
|
+
summary: Unknown or deleted sync
|
|
825
|
+
value:
|
|
826
|
+
errors:
|
|
827
|
+
- code: invalid_ref
|
|
828
|
+
message: syncs not found.
|
|
757
829
|
'422':
|
|
758
830
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
759
831
|
put:
|
|
@@ -853,7 +925,9 @@ paths:
|
|
|
853
925
|
- code: dataset_externalId_id_required
|
|
854
926
|
message: For creation externalId should be provide and for update dataset id should be provided but not both.
|
|
855
927
|
'401':
|
|
856
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
928
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
929
|
+
'403':
|
|
930
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
857
931
|
'422':
|
|
858
932
|
description: |-
|
|
859
933
|
Validation failed. An enabled dataset is missing `ingestionMode`
|
|
@@ -939,7 +1013,9 @@ paths:
|
|
|
939
1013
|
mask: false
|
|
940
1014
|
children: []
|
|
941
1015
|
'401':
|
|
942
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
1016
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
1017
|
+
'403':
|
|
1018
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
943
1019
|
'404':
|
|
944
1020
|
$ref: '#/components/responses/404-not-found'
|
|
945
1021
|
/v1/syncs/{_syncId}/run:
|
|
@@ -1129,6 +1205,10 @@ paths:
|
|
|
1129
1205
|
set, `queued` and `running` jobs are pinned to the first pages even if they fall outside
|
|
1130
1206
|
the range; `canceling` jobs are not pinned. Follow `Link` header URLs as-is to page
|
|
1131
1207
|
through pinned jobs and then the date-filtered remainder.
|
|
1208
|
+
|
|
1209
|
+
Only `createdAt_gt` and `createdAt_lte` filter by date; `createdAt_gte` and `createdAt_lt`
|
|
1210
|
+
are ignored. A blank or whitespace-only bound counts as not sent. A bound that is not a
|
|
1211
|
+
valid date answers 422 `invalid_query_param` before the sync is looked up.
|
|
1132
1212
|
parameters:
|
|
1133
1213
|
- name: _syncId
|
|
1134
1214
|
in: path
|
|
@@ -1168,7 +1248,7 @@ paths:
|
|
|
1168
1248
|
- name: createdAt_gt
|
|
1169
1249
|
in: query
|
|
1170
1250
|
required: false
|
|
1171
|
-
description: Only return jobs created after this time. Accepts ISO 8601 or epoch milliseconds.
|
|
1251
|
+
description: Only return jobs created after this time. Accepts ISO 8601 or epoch milliseconds; any other non-blank value answers 422.
|
|
1172
1252
|
schema:
|
|
1173
1253
|
type: string
|
|
1174
1254
|
examples:
|
|
@@ -1176,7 +1256,7 @@ paths:
|
|
|
1176
1256
|
- name: createdAt_lte
|
|
1177
1257
|
in: query
|
|
1178
1258
|
required: false
|
|
1179
|
-
description: Only return jobs created at or before this time. Accepts ISO 8601 or epoch milliseconds.
|
|
1259
|
+
description: Only return jobs created at or before this time. Accepts ISO 8601 or epoch milliseconds; any other non-blank value answers 422.
|
|
1180
1260
|
schema:
|
|
1181
1261
|
type: string
|
|
1182
1262
|
examples:
|
|
@@ -1284,6 +1364,21 @@ paths:
|
|
|
1284
1364
|
errors:
|
|
1285
1365
|
- code: invalid_ref
|
|
1286
1366
|
message: Sync not found.
|
|
1367
|
+
'422':
|
|
1368
|
+
description: |-
|
|
1369
|
+
`createdAt_gt` or `createdAt_lte` is not a valid date. Checked before the sync is
|
|
1370
|
+
looked up. Error code: `invalid_query_param`.
|
|
1371
|
+
content:
|
|
1372
|
+
application/json:
|
|
1373
|
+
schema:
|
|
1374
|
+
$ref: '#/components/schemas/Error'
|
|
1375
|
+
examples:
|
|
1376
|
+
invalid_date:
|
|
1377
|
+
summary: createdAt_gt is not a date
|
|
1378
|
+
value:
|
|
1379
|
+
errors:
|
|
1380
|
+
- code: invalid_query_param
|
|
1381
|
+
message: createdAt_gt must be a valid date in ISO 8601 format or epoch milliseconds.
|
|
1287
1382
|
/v1/syncs/{_syncId}/syncJobs/cancel:
|
|
1288
1383
|
put:
|
|
1289
1384
|
x-internal: false
|
|
@@ -3491,8 +3586,10 @@ paths:
|
|
|
3491
3586
|
type: boolean
|
|
3492
3587
|
description: |-
|
|
3493
3588
|
Only present (as `true`) when the export no longer uses the
|
|
3494
|
-
sync's source connection, or is no longer among
|
|
3495
|
-
connection's exports (for example, it was
|
|
3589
|
+
sync's source connection, or still exists but is no longer among
|
|
3590
|
+
the source connection's exports (for example, it was disabled).
|
|
3591
|
+
A saved export dataset whose export was deleted is left out of
|
|
3592
|
+
the list.
|
|
3496
3593
|
examples:
|
|
3497
3594
|
- true
|
|
3498
3595
|
totalFieldCount:
|
|
@@ -4092,6 +4189,37 @@ components:
|
|
|
4092
4189
|
- sf_
|
|
4093
4190
|
driftPolicy:
|
|
4094
4191
|
$ref: '#/components/schemas/SyncDriftPolicy'
|
|
4192
|
+
items:
|
|
4193
|
+
type: object
|
|
4194
|
+
properties:
|
|
4195
|
+
code:
|
|
4196
|
+
oneOf:
|
|
4197
|
+
- type: string
|
|
4198
|
+
- type: integer
|
|
4199
|
+
description: |-
|
|
4200
|
+
Machine-readable error code. Usually a string like
|
|
4201
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
4202
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
4203
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
4204
|
+
and adaptor-proxy responses.
|
|
4205
|
+
message:
|
|
4206
|
+
type: string
|
|
4207
|
+
description: Human-readable description of the error.
|
|
4208
|
+
field:
|
|
4209
|
+
type: string
|
|
4210
|
+
description: |-
|
|
4211
|
+
Optional pointer to the document field that caused the error.
|
|
4212
|
+
Used by structural validation errors (`missing_required_field`,
|
|
4213
|
+
`invalid_ref`) to indicate which field is at fault
|
|
4214
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
4215
|
+
source:
|
|
4216
|
+
type: string
|
|
4217
|
+
description: |-
|
|
4218
|
+
Optional origin layer for the error — e.g. `application` when
|
|
4219
|
+
the error came from the remote system the adaptor called,
|
|
4220
|
+
`connector` when the adaptor itself rejected the request.
|
|
4221
|
+
required:
|
|
4222
|
+
- message
|
|
4095
4223
|
Error:
|
|
4096
4224
|
type: object
|
|
4097
4225
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -5390,17 +5518,16 @@ components:
|
|
|
5390
5518
|
- action: Table removed
|
|
5391
5519
|
resourceType: Table
|
|
5392
5520
|
responses:
|
|
5393
|
-
401-unauthorized:
|
|
5521
|
+
401-unauthorized-or-scoped-token:
|
|
5394
5522
|
description: |-
|
|
5395
|
-
Unauthorized.
|
|
5396
|
-
|
|
5523
|
+
Unauthorized. Either the request has no valid bearer token, or the token is an API
|
|
5524
|
+
token scoped to specific resources instead of `fullAccess`. Sync and dataset
|
|
5525
|
+
endpoints take a full-access API token, a personal access token, or a signed-in
|
|
5526
|
+
session; a scoped token is refused with `access_restricted` before the sync is
|
|
5527
|
+
looked up or changed.
|
|
5397
5528
|
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
5401
|
-
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
5402
|
-
handling 401s should key off the HTTP status and the `message` string,
|
|
5403
|
-
not try to destructure an `errors[]`.
|
|
5529
|
+
A missing or invalid token gets the auth middleware's bare `{message}` body, with no
|
|
5530
|
+
`errors` array. A scoped token gets the standard `{errors: [...]}` envelope.
|
|
5404
5531
|
content:
|
|
5405
5532
|
application/json:
|
|
5406
5533
|
schema:
|
|
@@ -5409,21 +5536,40 @@ components:
|
|
|
5409
5536
|
message:
|
|
5410
5537
|
type: string
|
|
5411
5538
|
description: |-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5539
|
+
Present when the token is missing or invalid: `Unauthorized` (no
|
|
5540
|
+
`Authorization` header) or `Bearer Authentication Failed`.
|
|
5541
|
+
errors:
|
|
5542
|
+
type: array
|
|
5543
|
+
description: Present when the token is a scoped API token.
|
|
5544
|
+
items:
|
|
5545
|
+
$ref: '#/components/schemas/items'
|
|
5418
5546
|
examples:
|
|
5419
|
-
|
|
5420
|
-
summary:
|
|
5547
|
+
scopedToken:
|
|
5548
|
+
summary: An API token scoped to specific resources
|
|
5421
5549
|
value:
|
|
5422
|
-
|
|
5423
|
-
|
|
5550
|
+
errors:
|
|
5551
|
+
- code: access_restricted
|
|
5552
|
+
message: You don't have the required permissions to perform the action.
|
|
5553
|
+
invalidToken:
|
|
5424
5554
|
summary: Bearer token invalid or revoked
|
|
5425
5555
|
value:
|
|
5426
5556
|
message: Bearer Authentication Failed
|
|
5557
|
+
403-one-time-token:
|
|
5558
|
+
description: |-
|
|
5559
|
+
Forbidden. The request was authenticated with a one-time token, which sync and
|
|
5560
|
+
dataset endpoints refuse with `access_restricted` before the sync is looked up or
|
|
5561
|
+
changed. Use a full-access API token or a personal access token.
|
|
5562
|
+
content:
|
|
5563
|
+
application/json:
|
|
5564
|
+
schema:
|
|
5565
|
+
$ref: '#/components/schemas/Error'
|
|
5566
|
+
examples:
|
|
5567
|
+
oneTimeToken:
|
|
5568
|
+
summary: Request made with a one-time token
|
|
5569
|
+
value:
|
|
5570
|
+
errors:
|
|
5571
|
+
- code: access_restricted
|
|
5572
|
+
message: Access restricted
|
|
5427
5573
|
422-unprocessable-entity:
|
|
5428
5574
|
description: |
|
|
5429
5575
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
|
@@ -5450,6 +5596,40 @@ components:
|
|
|
5450
5596
|
errors:
|
|
5451
5597
|
- code: not_found
|
|
5452
5598
|
message: The requested resource was not found.
|
|
5599
|
+
401-unauthorized:
|
|
5600
|
+
description: |-
|
|
5601
|
+
Unauthorized. The request lacks a valid bearer token, or the provided token
|
|
5602
|
+
failed to authenticate.
|
|
5603
|
+
|
|
5604
|
+
Note: the 401 response is produced by the auth middleware **before** the
|
|
5605
|
+
request reaches the endpoint handler, so it does **not** follow the
|
|
5606
|
+
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
5607
|
+
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
5608
|
+
handling 401s should key off the HTTP status and the `message` string,
|
|
5609
|
+
not try to destructure an `errors[]`.
|
|
5610
|
+
content:
|
|
5611
|
+
application/json:
|
|
5612
|
+
schema:
|
|
5613
|
+
type: object
|
|
5614
|
+
properties:
|
|
5615
|
+
message:
|
|
5616
|
+
type: string
|
|
5617
|
+
description: |-
|
|
5618
|
+
Human-readable description of the auth failure. Known values:
|
|
5619
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
5620
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
5621
|
+
is invalid, revoked, or expired.
|
|
5622
|
+
required:
|
|
5623
|
+
- message
|
|
5624
|
+
examples:
|
|
5625
|
+
missing_token:
|
|
5626
|
+
summary: No Authorization header sent
|
|
5627
|
+
value:
|
|
5628
|
+
message: Unauthorized
|
|
5629
|
+
invalid_token:
|
|
5630
|
+
summary: Bearer token invalid or revoked
|
|
5631
|
+
value:
|
|
5632
|
+
message: Bearer Authentication Failed
|
|
5453
5633
|
400-bad-request:
|
|
5454
5634
|
description: |
|
|
5455
5635
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/template.yml
CHANGED
|
@@ -22,9 +22,9 @@ tags:
|
|
|
22
22
|
|
|
23
23
|
The template lifecycle is: create → upload zip (via `GET /v1/s3SignedURL`) → publish.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
**Partner account** — non-partner callers receive 403
|
|
27
|
-
`access_restricted
|
|
25
|
+
Listing, reading, creating, updating, deleting, uploading and publishing
|
|
26
|
+
templates requires a **Partner account** — non-partner callers receive 403
|
|
27
|
+
`access_restricted`, the account owner included. Installing a template (`/v1/integrations/template`
|
|
28
28
|
routes) needs install permission instead: the account owner,
|
|
29
29
|
administrators and manage users have it, and monitor or
|
|
30
30
|
integration-level users only when their access allows creating
|
|
@@ -96,7 +96,7 @@ paths:
|
|
|
96
96
|
'401':
|
|
97
97
|
$ref: '#/components/responses/401-unauthorized'
|
|
98
98
|
'403':
|
|
99
|
-
$ref: '#/components/responses/403-
|
|
99
|
+
$ref: '#/components/responses/403-partner-only'
|
|
100
100
|
post:
|
|
101
101
|
x-internal: false
|
|
102
102
|
operationId: createTemplate
|
|
@@ -148,7 +148,7 @@ paths:
|
|
|
148
148
|
'401':
|
|
149
149
|
$ref: '#/components/responses/401-unauthorized'
|
|
150
150
|
'403':
|
|
151
|
-
$ref: '#/components/responses/403-
|
|
151
|
+
$ref: '#/components/responses/403-partner-only'
|
|
152
152
|
'422':
|
|
153
153
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
154
154
|
/v1/templates/{_id}:
|
|
@@ -205,7 +205,7 @@ paths:
|
|
|
205
205
|
'401':
|
|
206
206
|
$ref: '#/components/responses/401-unauthorized'
|
|
207
207
|
'403':
|
|
208
|
-
$ref: '#/components/responses/403-
|
|
208
|
+
$ref: '#/components/responses/403-partner-only'
|
|
209
209
|
'404':
|
|
210
210
|
$ref: '#/components/responses/404-not-found'
|
|
211
211
|
put:
|
|
@@ -314,7 +314,7 @@ paths:
|
|
|
314
314
|
'401':
|
|
315
315
|
$ref: '#/components/responses/401-unauthorized'
|
|
316
316
|
'403':
|
|
317
|
-
$ref: '#/components/responses/403-
|
|
317
|
+
$ref: '#/components/responses/403-partner-only'
|
|
318
318
|
'404':
|
|
319
319
|
$ref: '#/components/responses/404-not-found'
|
|
320
320
|
/v1/integrations/template/{_id}:
|
|
@@ -1084,19 +1084,21 @@ components:
|
|
|
1084
1084
|
summary: Bearer token invalid or revoked
|
|
1085
1085
|
value:
|
|
1086
1086
|
message: Bearer Authentication Failed
|
|
1087
|
-
403-
|
|
1088
|
-
description:
|
|
1089
|
-
|
|
1087
|
+
403-partner-only:
|
|
1088
|
+
description: |-
|
|
1089
|
+
The account isn't a Celigo Partner account. Every caller on such an account is refused with
|
|
1090
|
+
`access_restricted`, the account owner's full-access API token included.
|
|
1090
1091
|
content:
|
|
1091
1092
|
application/json:
|
|
1092
1093
|
schema:
|
|
1093
1094
|
$ref: '#/components/schemas/Error'
|
|
1094
1095
|
examples:
|
|
1095
|
-
|
|
1096
|
+
notPartner:
|
|
1097
|
+
summary: Account that isn't a Partner account
|
|
1096
1098
|
value:
|
|
1097
1099
|
errors:
|
|
1098
|
-
- code:
|
|
1099
|
-
message: You
|
|
1100
|
+
- code: access_restricted
|
|
1101
|
+
message: You don't have the required permission to perform the request. Please contact Celigo support.
|
|
1100
1102
|
422-unprocessable-entity:
|
|
1101
1103
|
description: |
|
|
1102
1104
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
|
@@ -1136,6 +1138,19 @@ components:
|
|
|
1136
1138
|
errors:
|
|
1137
1139
|
- code: invalid_request
|
|
1138
1140
|
message: The request body failed validation.
|
|
1141
|
+
403-forbidden:
|
|
1142
|
+
description: |
|
|
1143
|
+
Forbidden. The authenticated caller does not have permission to perform this operation.
|
|
1144
|
+
content:
|
|
1145
|
+
application/json:
|
|
1146
|
+
schema:
|
|
1147
|
+
$ref: '#/components/schemas/Error'
|
|
1148
|
+
examples:
|
|
1149
|
+
default:
|
|
1150
|
+
value:
|
|
1151
|
+
errors:
|
|
1152
|
+
- code: forbidden
|
|
1153
|
+
message: You do not have permission to access this resource.
|
|
1139
1154
|
403-cannot-install:
|
|
1140
1155
|
description: |-
|
|
1141
1156
|
The caller may not install templates. The account owner, administrators and manage users
|
package/dist/tool.yml
CHANGED
|
@@ -15753,7 +15753,7 @@ components:
|
|
|
15753
15753
|
| ["per_record"] | query (array of SQL strings) | bulkInsert |
|
|
15754
15754
|
| ["per_page"] | query (array of SQL strings) | bulkInsert |
|
|
15755
15755
|
| ["bulk_insert"] | bulkInsert object | query |
|
|
15756
|
-
| ["bulk_load"] | bulkLoad object
|
|
15756
|
+
| ["bulk_load"] | bulkLoad object; query too when bulkLoad.overrideMergeOrInsertQuery is true | query otherwise |
|
|
15757
15757
|
|
|
15758
15758
|
**Critical:** query IS AN ARRAY OF STRINGS
|
|
15759
15759
|
The query field must be an array of plain strings, NOT a single string and NOT an array of objects.
|
|
@@ -15770,7 +15770,9 @@ components:
|
|
|
15770
15770
|
x-celigo-agent:
|
|
15771
15771
|
- sql
|
|
15772
15772
|
description: |-
|
|
15773
|
-
Array of SQL query strings to execute. REQUIRED when queryType is ["per_record"] or ["per_page"]
|
|
15773
|
+
Array of SQL query strings to execute. REQUIRED when queryType is ["per_record"] or ["per_page"],
|
|
15774
|
+
and on a ["bulk_load"] import whose bulkLoad.overrideMergeOrInsertQuery is true, where its one
|
|
15775
|
+
statement replaces the generated MERGE / INSERT.
|
|
15774
15776
|
|
|
15775
15777
|
Each element is a complete SQL statement as a plain string. Typically contains a single query.
|
|
15776
15778
|
|
|
@@ -15821,7 +15823,7 @@ components:
|
|
|
15821
15823
|
| ["per_record"] | query (array) | bulkInsert |
|
|
15822
15824
|
| ["per_page"] | query (array) | bulkInsert |
|
|
15823
15825
|
| ["bulk_insert"] | bulkInsert object | query |
|
|
15824
|
-
| ["bulk_load"] | bulkLoad object
|
|
15826
|
+
| ["bulk_load"] | bulkLoad object; query too when bulkLoad.overrideMergeOrInsertQuery is true | query otherwise |
|
|
15825
15827
|
|
|
15826
15828
|
**Examples**
|
|
15827
15829
|
- Per-record upsert: ["per_record"]
|
|
@@ -15877,8 +15879,36 @@ components:
|
|
|
15877
15879
|
overrideMergeOrInsertQuery:
|
|
15878
15880
|
type: boolean
|
|
15879
15881
|
description: |-
|
|
15880
|
-
When true,
|
|
15881
|
-
bulk load, enabling ignore-existing logic or conditional updates.
|
|
15882
|
+
When true, the statement in `query` replaces the auto-generated MERGE / INSERT for the
|
|
15883
|
+
bulk load, enabling ignore-existing logic or conditional updates. Saving it true with no
|
|
15884
|
+
`query` entry fails with 422 `missing_required_field` ("jdbc bulk_load imports require a
|
|
15885
|
+
query."), on create and on update.
|
|
15886
|
+
aggregation:
|
|
15887
|
+
type: object
|
|
15888
|
+
description: |-
|
|
15889
|
+
How the staged files are cut and handed to the database. The server fills `type` and
|
|
15890
|
+
`maxFileSizeInMB` when they are omitted, so `loadDataAsAvailable` is the only value to
|
|
15891
|
+
author. A `type` other than `size`, or a `loadDataAsAvailable` that is not a boolean,
|
|
15892
|
+
drops the whole block on save without an error.
|
|
15893
|
+
properties:
|
|
15894
|
+
type:
|
|
15895
|
+
type: string
|
|
15896
|
+
enum:
|
|
15897
|
+
- size
|
|
15898
|
+
x-enumDescriptions:
|
|
15899
|
+
size: Files are cut by size
|
|
15900
|
+
description: Filled by the server on save; the only mode is size-based cutting.
|
|
15901
|
+
maxFileSizeInMB:
|
|
15902
|
+
type: integer
|
|
15903
|
+
description: Size of each staged file in MB; the server fills 250 when the field is omitted, so leave it out.
|
|
15904
|
+
examples:
|
|
15905
|
+
- 250
|
|
15906
|
+
loadDataAsAvailable:
|
|
15907
|
+
type: boolean
|
|
15908
|
+
description: |-
|
|
15909
|
+
When true, each staged file is sent for loading as soon as it is written, so the
|
|
15910
|
+
dataset arrives as several smaller loads. When false, every file is held until all
|
|
15911
|
+
are ready and they are loaded together.
|
|
15882
15912
|
lookups:
|
|
15883
15913
|
type: array
|
|
15884
15914
|
items:
|
|
@@ -15957,6 +15987,27 @@ components:
|
|
|
15957
15987
|
save.
|
|
15958
15988
|
x-celigo-agent:
|
|
15959
15989
|
- lookup
|
|
15990
|
+
if:
|
|
15991
|
+
required:
|
|
15992
|
+
- queryType
|
|
15993
|
+
- bulkLoad
|
|
15994
|
+
properties:
|
|
15995
|
+
queryType:
|
|
15996
|
+
type: array
|
|
15997
|
+
contains:
|
|
15998
|
+
const: bulk_load
|
|
15999
|
+
bulkLoad:
|
|
16000
|
+
required:
|
|
16001
|
+
- overrideMergeOrInsertQuery
|
|
16002
|
+
properties:
|
|
16003
|
+
overrideMergeOrInsertQuery:
|
|
16004
|
+
const: true
|
|
16005
|
+
then:
|
|
16006
|
+
required:
|
|
16007
|
+
- query
|
|
16008
|
+
properties:
|
|
16009
|
+
query:
|
|
16010
|
+
minItems: 1
|
|
15960
16011
|
Mongodb:
|
|
15961
16012
|
type: object
|
|
15962
16013
|
description: Configuration for MongoDB imports. Contains only the MongoDB-specific properties; import-level fields such as ignoreExisting, ignoreMissing, name, and description are set on the parent import, not here.
|
|
@@ -26907,7 +26958,11 @@ components:
|
|
|
26907
26958
|
Sample of the record the import writes, in the destination's own shape — the
|
|
26908
26959
|
mapping editor builds its destination field list from it when none of its earlier
|
|
26909
26960
|
sources applies: an HTTP connector on the connection, a bulk-load table's columns,
|
|
26910
|
-
an Integration App's metadata, then this field.
|
|
26961
|
+
an Integration App's metadata, then this field. `AiAgentImport`, `GuardrailImport`
|
|
26962
|
+
and `ToolImport` are the exception: the editor never reads this field on them — it
|
|
26963
|
+
maps an AI agent or guardrail step into the step's fixed input (`text` and `record`,
|
|
26964
|
+
plus `files` on an AI agent or a moderation guardrail) and a Tool step into the
|
|
26965
|
+
tool's `input.schema`. On a file
|
|
26911
26966
|
transfer it is the generated file's record: for `file.type` `filedefinition` (EDI
|
|
26912
26967
|
X12 / EDIFACT, fixed-width or another custom format) the definition's generate
|
|
26913
26968
|
sample — a record whose nested arrays are the document's repeating loops, carried
|
|
@@ -26917,9 +26972,10 @@ components:
|
|
|
26917
26972
|
is never the flow's source record, which comes from the previous step's preview.
|
|
26918
26973
|
x-celigo-ai-guidance:
|
|
26919
26974
|
- |-
|
|
26920
|
-
|
|
26921
|
-
|
|
26922
|
-
|
|
26975
|
+
Except on `AiAgentImport`, `GuardrailImport` and `ToolImport`, which never take
|
|
26976
|
+
their destination from this field, the destination's source is decided in one
|
|
26977
|
+
order — an HTTP connector on the connection, then a bulk-load table's columns, then
|
|
26978
|
+
an Integration App's metadata, then this field. Where it falls to this field, read
|
|
26923
26979
|
it as the destination structure: on a file definition map into the record's
|
|
26924
26980
|
nested arrays (unwrap a one-element array first; an 846's `LIN` array holds the
|
|
26925
26981
|
item identifier and its `QTY` quantities), on csv / xlsx / xml / json parse the
|