@celigo/api-specs 0.2.265 → 0.2.266

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/alert.yml CHANGED
@@ -2,21 +2,7 @@ openapi: 3.2.0
2
2
  info:
3
3
  version: 1.0.0
4
4
  title: Alerts
5
- description: |-
6
- API for managing proactive alerts — account-configured rules that notify
7
- recipients when flows exceed a long-runtime threshold.
8
-
9
- Recipients are supplied as `_recipientEmails` on write; the API resolves
10
- emails to users (creating invites or granting integration access when
11
- needed) and persists `_recipientUserIds`. Soft-deleted alerts are excluded
12
- from list and get responses.
13
-
14
- The Alerts page UI list uses `GET /api/bff/alerts` (grouped by type); that
15
- route is UI-only and is not part of this public `/v1` contract.
16
-
17
- ## Alert schema
18
-
19
- {% openapi-schemas spec="alert" schemas="Alert" grouped="true" %}
5
+ description: Manage long-runtime alerts — rules that notify recipients when a flow runs longer than its threshold.
20
6
  servers:
21
7
  - url: https://api.integrator.io
22
8
  description: Production (US / default region)
package/dist/api.yml CHANGED
@@ -241,8 +241,8 @@ paths:
241
241
 
242
242
  `ioInvocationCount` bills against the Celigo subscription; `apimInvocationCount` is billed
243
243
  separately for external APIM passthrough. To find the resource behind a row, read
244
- `metadata._resourceId` (present for exports/imports) or parse the resource id out of
245
- `relativeURI`.
244
+ `metadata._resourceId` (present on every row except virtual exports and imports) or parse
245
+ the resource id out of `relativeURI`.
246
246
  parameters:
247
247
  - $ref: '#/components/parameters/Include'
248
248
  - $ref: '#/components/parameters/Exclude'
@@ -7396,8 +7396,9 @@ components:
7396
7396
  type: string
7397
7397
  format: objectId
7398
7398
  description: |-
7399
- Id of the underlying export, import, or API resource. Omitted for some resource types
7400
- (e.g. connection-scoped virtual imports) where the URL itself fully identifies the target.
7399
+ Id of the export, import, API Builder API, or script-mode API behind the row. Omitted
7400
+ for virtual exports and imports, which have no saved resource; `relativeURI` names
7401
+ their connection.
7401
7402
  examples:
7402
7403
  - 6878f4a43bc01652c09cdccc
7403
7404
  name:
@@ -7410,18 +7411,21 @@ components:
7410
7411
  enum:
7411
7412
  - export
7412
7413
  - import
7414
+ - virtualExport
7413
7415
  - virtualImport
7414
7416
  - script
7415
7417
  - apiBuilder
7416
7418
  x-enumDescriptions:
7417
7419
  export: A standard export resource invoked as an API endpoint.
7418
7420
  import: A standard import resource invoked as an API endpoint.
7419
- virtualImport: A connection-scoped import embedded in a connector.
7421
+ virtualExport: An unsaved export run against a connection (`POST /v1/connections/{_connectionId}/export`).
7422
+ virtualImport: An unsaved import run against a connection (`POST /v1/connections/{_connectionId}/import`).
7420
7423
  script: A script-mode API driven by custom JavaScript.
7421
7424
  apiBuilder: A builder-mode API configured visually with request/response mappings.
7422
7425
  description: |-
7423
- Resource flavor. `virtualImport` is a connection-scoped import (connector-embedded).
7424
- `script` is a script-mode API. `apiBuilder` is a builder-mode API.
7426
+ Resource flavor. `virtualExport` and `virtualImport` are unsaved exports and imports
7427
+ run against a connection. `script` is a script-mode API. `apiBuilder` is a builder-mode
7428
+ API.
7425
7429
  month:
7426
7430
  type: integer
7427
7431
  minimum: 1
package/dist/apim.yml CHANGED
@@ -224,7 +224,20 @@ paths:
224
224
  '401':
225
225
  $ref: '#/components/responses/401-unauthorized'
226
226
  '403':
227
- $ref: '#/components/responses/403-forbidden'
227
+ description: |-
228
+ The caller may not list APIM APIs. An account without an API Management license gets
229
+ `apim_license_not_enabled` ("APIM license is not enabled.").
230
+ content:
231
+ application/json:
232
+ schema:
233
+ $ref: '#/components/schemas/Error'
234
+ examples:
235
+ noLicense:
236
+ summary: Account without an API Management license
237
+ value:
238
+ errors:
239
+ - code: apim_license_not_enabled
240
+ message: APIM license is not enabled.
228
241
  /v1/apim/{modelPlural}/{_id}/manageAPI:
229
242
  post:
230
243
  x-internal: false
@@ -655,7 +668,9 @@ paths:
655
668
  get:
656
669
  x-internal: false
657
670
  summary: Get APIM settings
658
- description: Returns the APIM subdomain and service account email configured for the account.
671
+ description: |-
672
+ Returns the APIM subdomain and service account email configured for the account. An account
673
+ without API Management gets 200 with an empty object.
659
674
  operationId: getApimSettings
660
675
  tags:
661
676
  - APIM
@@ -671,6 +686,9 @@ paths:
671
686
  value:
672
687
  subdomain: production-subdomain
673
688
  serviceAccountEmail: apim-service@example.com
689
+ notConfigured:
690
+ summary: Account without API Management
691
+ value: {}
674
692
  '401':
675
693
  $ref: '#/components/responses/401-unauthorized'
676
694
  '403':
@@ -71,6 +71,8 @@ paths:
71
71
  description: No connectors exist.
72
72
  '401':
73
73
  $ref: '#/components/responses/401-unauthorized'
74
+ '403':
75
+ $ref: '#/components/responses/403-partner-only'
74
76
  post:
75
77
  x-internal: false
76
78
  operationId: createConnector
@@ -120,6 +122,8 @@ paths:
120
122
  lastModified: '2015-03-06T20:16:56.000Z'
121
123
  '401':
122
124
  $ref: '#/components/responses/401-unauthorized'
125
+ '403':
126
+ $ref: '#/components/responses/403-partner-only'
123
127
  '422':
124
128
  $ref: '#/components/responses/422-unprocessable-entity'
125
129
  /v1/connectors/{_id}:
@@ -168,6 +172,8 @@ paths:
168
172
  $ref: '#/components/responses/400-bad-request'
169
173
  '401':
170
174
  $ref: '#/components/responses/401-unauthorized'
175
+ '403':
176
+ $ref: '#/components/responses/403-partner-only'
171
177
  '404':
172
178
  $ref: '#/components/responses/404-not-found'
173
179
  put:
@@ -232,6 +238,8 @@ paths:
232
238
  $ref: '#/components/responses/400-bad-request'
233
239
  '401':
234
240
  $ref: '#/components/responses/401-unauthorized'
241
+ '403':
242
+ $ref: '#/components/responses/403-partner-only'
235
243
  '404':
236
244
  $ref: '#/components/responses/404-not-found'
237
245
  '422':
@@ -260,6 +268,8 @@ paths:
260
268
  $ref: '#/components/responses/400-bad-request'
261
269
  '401':
262
270
  $ref: '#/components/responses/401-unauthorized'
271
+ '403':
272
+ $ref: '#/components/responses/403-partner-only'
263
273
  '404':
264
274
  $ref: '#/components/responses/404-not-found'
265
275
  /v1/connectors/{_id}/installBase:
@@ -304,6 +314,8 @@ paths:
304
314
  $ref: '#/components/responses/400-bad-request'
305
315
  '401':
306
316
  $ref: '#/components/responses/401-unauthorized'
317
+ '403':
318
+ $ref: '#/components/responses/403-partner-only'
307
319
  '404':
308
320
  $ref: '#/components/responses/404-not-found'
309
321
  /v1/connectors/{_id}/update:
@@ -351,6 +363,8 @@ paths:
351
363
  $ref: '#/components/responses/400-bad-request'
352
364
  '401':
353
365
  $ref: '#/components/responses/401-unauthorized'
366
+ '403':
367
+ $ref: '#/components/responses/403-partner-only'
354
368
  '404':
355
369
  $ref: '#/components/responses/404-not-found'
356
370
  /v1/connectors/{_id}/licenses:
@@ -462,6 +476,8 @@ paths:
462
476
  name: Account Admin
463
477
  '401':
464
478
  $ref: '#/components/responses/401-unauthorized'
479
+ '403':
480
+ $ref: '#/components/responses/403-partner-only'
465
481
  '404':
466
482
  $ref: '#/components/responses/404-not-found'
467
483
  '422':
@@ -519,6 +535,8 @@ paths:
519
535
  $ref: '#/components/responses/400-bad-request'
520
536
  '401':
521
537
  $ref: '#/components/responses/401-unauthorized'
538
+ '403':
539
+ $ref: '#/components/responses/403-partner-only'
522
540
  '404':
523
541
  $ref: '#/components/responses/404-not-found'
524
542
  put:
@@ -591,6 +609,8 @@ paths:
591
609
  $ref: '#/components/responses/400-bad-request'
592
610
  '401':
593
611
  $ref: '#/components/responses/401-unauthorized'
612
+ '403':
613
+ $ref: '#/components/responses/403-partner-only'
594
614
  '404':
595
615
  $ref: '#/components/responses/404-not-found'
596
616
  '422':
@@ -625,6 +645,8 @@ paths:
625
645
  $ref: '#/components/responses/400-bad-request'
626
646
  '401':
627
647
  $ref: '#/components/responses/401-unauthorized'
648
+ '403':
649
+ $ref: '#/components/responses/403-partner-only'
628
650
  '404':
629
651
  $ref: '#/components/responses/404-not-found'
630
652
  /v1/connectors/{_id}/install:
@@ -1159,13 +1181,6 @@ components:
1159
1181
  description: Number of active installations of this connector.
1160
1182
  examples:
1161
1183
  - 3672
1162
- Request:
1163
- type: object
1164
- description: Fields that can be sent when creating or updating a connector. Partner accounts only.
1165
- required:
1166
- - name
1167
- allOf:
1168
- - $ref: '#/components/schemas/ConnectorBase'
1169
1184
  Error:
1170
1185
  type: object
1171
1186
  description: Standard error response envelope returned by integrator.io APIs.
@@ -1206,6 +1221,13 @@ components:
1206
1221
  - message
1207
1222
  required:
1208
1223
  - errors
1224
+ Request:
1225
+ type: object
1226
+ description: Fields that can be sent when creating or updating a connector. Partner accounts only.
1227
+ required:
1228
+ - name
1229
+ allOf:
1230
+ - $ref: '#/components/schemas/ConnectorBase'
1209
1231
  License:
1210
1232
  type: object
1211
1233
  properties:
@@ -1371,6 +1393,21 @@ components:
1371
1393
  summary: Bearer token invalid or revoked
1372
1394
  value:
1373
1395
  message: Bearer Authentication Failed
1396
+ 403-partner-only:
1397
+ description: |-
1398
+ The account isn't a Celigo Partner account. Every caller on such an account is refused with
1399
+ `access_restricted`, the account owner's full-access API token included.
1400
+ content:
1401
+ application/json:
1402
+ schema:
1403
+ $ref: '#/components/schemas/Error'
1404
+ examples:
1405
+ notPartner:
1406
+ summary: Account that isn't a Partner account
1407
+ value:
1408
+ errors:
1409
+ - code: access_restricted
1410
+ message: You don't have the required permission to perform the request. Please contact Celigo support.
1374
1411
  422-unprocessable-entity:
1375
1412
  description: |
1376
1413
  Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
@@ -265,8 +265,16 @@ paths:
265
265
  call this endpoint again to get a fresh one.
266
266
 
267
267
  The file is served with `Content-Encoding: gzip`, so download it with a client that decodes
268
- it (`curl --compressed`) or gunzip it afterwards. Its columns start `traceKey`, `time`,
269
- `type`, `timeTaken`, `_flowJobId`.
268
+ it (`curl --compressed`) or gunzip it afterwards. Each row is one record's event at one step.
269
+ A report on one flow has the columns `traceKey`, `time` (epoch milliseconds), `type`,
270
+ `timeTaken`, `_flowJobId`, `_exportId`, `_importId`, `oIndex`, `_connectionId`,
271
+ `retryDataKey`, `exportDataURI`, `importDataURI`, `exportField`, `importField`, `source`,
272
+ `code`, `message`, `legacyId`, `classification`, `reqAndResKey`, `retry`, `logMode`,
273
+ `logRetentionPeriod`, `logIdentifier`, `stage`, `toolStage` and `_toolImportId`. `type` is
274
+ the event: `export`, `lookup`, `import`, `ignore`, `error`, `resolved` or `noop`. `error`
275
+ and `resolved` rows carry the error's `code`, `message`, `source` and `classification` (an
276
+ `error` row also its `retryDataKey`); an `ignore` row names the step but leaves `stage`
277
+ empty.
270
278
  parameters:
271
279
  - name: _id
272
280
  in: path
package/dist/import.yml CHANGED
@@ -3429,7 +3429,7 @@ components:
3429
3429
  | ["per_record"] | query (array of SQL strings) | bulkInsert |
3430
3430
  | ["per_page"] | query (array of SQL strings) | bulkInsert |
3431
3431
  | ["bulk_insert"] | bulkInsert object | query |
3432
- | ["bulk_load"] | bulkLoad object | query |
3432
+ | ["bulk_load"] | bulkLoad object; query too when bulkLoad.overrideMergeOrInsertQuery is true | query otherwise |
3433
3433
 
3434
3434
  **Critical:** query IS AN ARRAY OF STRINGS
3435
3435
  The query field must be an array of plain strings, NOT a single string and NOT an array of objects.
@@ -3446,7 +3446,9 @@ components:
3446
3446
  x-celigo-agent:
3447
3447
  - sql
3448
3448
  description: |-
3449
- Array of SQL query strings to execute. REQUIRED when queryType is ["per_record"] or ["per_page"].
3449
+ Array of SQL query strings to execute. REQUIRED when queryType is ["per_record"] or ["per_page"],
3450
+ and on a ["bulk_load"] import whose bulkLoad.overrideMergeOrInsertQuery is true, where its one
3451
+ statement replaces the generated MERGE / INSERT.
3450
3452
 
3451
3453
  Each element is a complete SQL statement as a plain string. Typically contains a single query.
3452
3454
 
@@ -3497,7 +3499,7 @@ components:
3497
3499
  | ["per_record"] | query (array) | bulkInsert |
3498
3500
  | ["per_page"] | query (array) | bulkInsert |
3499
3501
  | ["bulk_insert"] | bulkInsert object | query |
3500
- | ["bulk_load"] | bulkLoad object | query |
3502
+ | ["bulk_load"] | bulkLoad object; query too when bulkLoad.overrideMergeOrInsertQuery is true | query otherwise |
3501
3503
 
3502
3504
  **Examples**
3503
3505
  - Per-record upsert: ["per_record"]
@@ -3553,8 +3555,36 @@ components:
3553
3555
  overrideMergeOrInsertQuery:
3554
3556
  type: boolean
3555
3557
  description: |-
3556
- When true, a custom merge/insert query replaces the auto-generated statement for the
3557
- bulk load, enabling ignore-existing logic or conditional updates.
3558
+ When true, the statement in `query` replaces the auto-generated MERGE / INSERT for the
3559
+ bulk load, enabling ignore-existing logic or conditional updates. Saving it true with no
3560
+ `query` entry fails with 422 `missing_required_field` ("jdbc bulk_load imports require a
3561
+ query."), on create and on update.
3562
+ aggregation:
3563
+ type: object
3564
+ description: |-
3565
+ How the staged files are cut and handed to the database. The server fills `type` and
3566
+ `maxFileSizeInMB` when they are omitted, so `loadDataAsAvailable` is the only value to
3567
+ author. A `type` other than `size`, or a `loadDataAsAvailable` that is not a boolean,
3568
+ drops the whole block on save without an error.
3569
+ properties:
3570
+ type:
3571
+ type: string
3572
+ enum:
3573
+ - size
3574
+ x-enumDescriptions:
3575
+ size: Files are cut by size
3576
+ description: Filled by the server on save; the only mode is size-based cutting.
3577
+ maxFileSizeInMB:
3578
+ type: integer
3579
+ description: Size of each staged file in MB; the server fills 250 when the field is omitted, so leave it out.
3580
+ examples:
3581
+ - 250
3582
+ loadDataAsAvailable:
3583
+ type: boolean
3584
+ description: |-
3585
+ When true, each staged file is sent for loading as soon as it is written, so the
3586
+ dataset arrives as several smaller loads. When false, every file is held until all
3587
+ are ready and they are loaded together.
3558
3588
  lookups:
3559
3589
  type: array
3560
3590
  items:
@@ -3633,6 +3663,27 @@ components:
3633
3663
  save.
3634
3664
  x-celigo-agent:
3635
3665
  - lookup
3666
+ if:
3667
+ required:
3668
+ - queryType
3669
+ - bulkLoad
3670
+ properties:
3671
+ queryType:
3672
+ type: array
3673
+ contains:
3674
+ const: bulk_load
3675
+ bulkLoad:
3676
+ required:
3677
+ - overrideMergeOrInsertQuery
3678
+ properties:
3679
+ overrideMergeOrInsertQuery:
3680
+ const: true
3681
+ then:
3682
+ required:
3683
+ - query
3684
+ properties:
3685
+ query:
3686
+ minItems: 1
3636
3687
  Mongodb:
3637
3688
  type: object
3638
3689
  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.
@@ -456,10 +456,10 @@ paths:
456
456
  `400 cache_dynamodb_invalid_key`, and a key that appears twice in the batch
457
457
  returns 400 "Duplicate keys found in the request".
458
458
 
459
- One request takes at most 1000 entries, each entry at most 64 KB, and at most 5 MB of
460
- JSON in all (413, "request entity too large!"). Callers uploading more than that should
461
- split their payload; the Celigo CLI auto-batches at 1000 entries / 5 MB and concatenates
462
- the per-key results.
459
+ One request takes at most 1000 entries (more returns `400 max_upsert_by_keys_limit_exceeded`),
460
+ each entry at most 64 KB (`400 row_size_exceeded`), and at most 5 MB of JSON in all (413,
461
+ "request entity too large!"). Callers uploading more than that should split their payload;
462
+ the Celigo CLI auto-batches at 1000 entries / 5 MB and concatenates the per-key results.
463
463
  Each cache is capped at 50 MB and the per-environment aggregate is 1 GB.
464
464
  parameters:
465
465
  - name: _id
@@ -508,7 +508,54 @@ paths:
508
508
  - key: TX
509
509
  success: true
510
510
  '400':
511
- $ref: '#/components/responses/400-bad-request'
511
+ description: |-
512
+ An entry or the batch is invalid, and nothing in it is written: `invalid_value`,
513
+ `cache_dynamodb_invalid_key`, a duplicate key, more than 1000 entries
514
+ (`max_upsert_by_keys_limit_exceeded`), or an entry over 64 KB (`row_size_exceeded`).
515
+ content:
516
+ application/json:
517
+ schema:
518
+ type: object
519
+ required:
520
+ - errors
521
+ properties:
522
+ success:
523
+ type: boolean
524
+ description: '`false` when the batch was refused.'
525
+ errors:
526
+ type: array
527
+ description: Why the batch was refused.
528
+ items:
529
+ type: object
530
+ required:
531
+ - message
532
+ properties:
533
+ code:
534
+ type: string
535
+ description: Machine-readable error code.
536
+ message:
537
+ type: string
538
+ description: What was wrong with the batch.
539
+ source:
540
+ type: string
541
+ description: Layer that refused the batch; `internal` for the size limits.
542
+ examples:
543
+ too_many_entries:
544
+ summary: More than 1000 entries in one request
545
+ value:
546
+ success: false
547
+ errors:
548
+ - code: max_upsert_by_keys_limit_exceeded
549
+ message: The number of rows to upsert exceeds the limit of 1000. Reduce the number of rows and try again.
550
+ source: internal
551
+ entry_too_large:
552
+ summary: An entry over 64 KB
553
+ value:
554
+ success: false
555
+ errors:
556
+ - code: row_size_exceeded
557
+ message: The row in the lookup cache API request exceeds the 64 KB limit. Reduce the row size.
558
+ source: internal
512
559
  '401':
513
560
  $ref: '#/components/responses/401-unauthorized'
514
561
  '404':
@@ -1106,13 +1153,15 @@ components:
1106
1153
  Request body for upserting key-value entries into a lookup cache. `data` must be
1107
1154
  a non-empty array. Keys already present are overwritten; new keys are created.
1108
1155
 
1109
- One request takes at most 1000 entries, each entry at most 64 KB, and at most 5 MB of
1110
- JSON in all (413) — callers inserting more than that should split into multiple
1111
- requests (the Celigo CLI auto-batches at 1000 entries / 5 MB).
1156
+ One request takes at most 1000 entries (400 `max_upsert_by_keys_limit_exceeded`), each
1157
+ entry at most 64 KB (400 `row_size_exceeded`), and at most 5 MB of JSON in all (413) —
1158
+ callers inserting more than that should split into multiple requests (the Celigo CLI
1159
+ auto-batches at 1000 entries / 5 MB).
1112
1160
  properties:
1113
1161
  data:
1114
1162
  type: array
1115
1163
  minItems: 1
1164
+ maxItems: 1000
1116
1165
  description: Entries to upsert. Must contain at least one item.
1117
1166
  items:
1118
1167
  $ref: '#/components/schemas/LookupCacheDataEntry'
@@ -1203,11 +1252,13 @@ components:
1203
1252
  properties:
1204
1253
  keys:
1205
1254
  type: array
1255
+ maxItems: 1000
1206
1256
  description: |-
1207
1257
  Explicit keys to fetch. The response returns one `data[]` entry per
1208
1258
  requested key: hits carry `value`, misses carry `error: {message}` — both
1209
1259
  surface in the same array. Branch on the presence of `error` vs `value`
1210
- when consuming the response.
1260
+ when consuming the response. More than 1000 keys in one request returns 400
1261
+ `max_key_limit_exceeded`.
1211
1262
  items:
1212
1263
  type: string
1213
1264
  examples:
@@ -1712,6 +1712,12 @@ components:
1712
1712
  type: integer
1713
1713
  description: Data Ingestion (Celigo Sync) rows loaded during the month.
1714
1714
  example: 0
1715
+ lookupCacheUnits:
1716
+ type: integer
1717
+ description: |-
1718
+ Lookup cache units consumed during the month. Present when the month recorded lookup
1719
+ cache usage; older months can omit it.
1720
+ example: 954
1715
1721
  allocated:
1716
1722
  type: object
1717
1723
  description: Allocated/entitled numbers for the month.
@@ -1732,6 +1738,18 @@ components:
1732
1738
  type: integer
1733
1739
  description: API invocation allocation for the month.
1734
1740
  example: 0
1741
+ diVolume:
1742
+ type: integer
1743
+ description: |-
1744
+ Data Ingestion (Celigo Sync) row allocation for the month. Present when the month
1745
+ recorded one; older months can omit it.
1746
+ example: 0
1747
+ lookupCacheUnits:
1748
+ type: integer
1749
+ description: |-
1750
+ Lookup cache unit allocation for the month. Present when the month recorded one;
1751
+ older months can omit it.
1752
+ example: 100000000
1735
1753
  UsageRecord:
1736
1754
  type: object
1737
1755
  description: A monthly usage record returned by `GET /v1/usage`.
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
- Creating, updating, uploading and publishing templates requires a
26
- **Partner account** — non-partner callers receive 403
27
- `access_restricted`. Installing a template (`/v1/integrations/template`
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-forbidden'
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-forbidden'
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-forbidden'
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-forbidden'
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-forbidden:
1088
- description: |
1089
- Forbidden. The authenticated caller does not have permission to perform this operation.
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
- default:
1096
+ notPartner:
1097
+ summary: Account that isn't a Partner account
1096
1098
  value:
1097
1099
  errors:
1098
- - code: forbidden
1099
- message: You do not have permission to access this resource.
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 | query |
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 | query |
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, a custom merge/insert query replaces the auto-generated statement for the
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.
@@ -260,7 +260,22 @@ paths:
260
260
  '401':
261
261
  $ref: '#/components/responses/401-unauthorized'
262
262
  '422':
263
- $ref: '#/components/responses/422-unprocessable-entity'
263
+ description: |-
264
+ The connector failed validation. Among other checks, a `type`, `region`,
265
+ or `model` outside the deployment's configured values returns
266
+ `invalid_field` naming the field, the rejected value, and the allowed
267
+ values.
268
+ content:
269
+ application/json:
270
+ schema:
271
+ $ref: '#/components/schemas/Error'
272
+ examples:
273
+ invalidType:
274
+ summary: type outside the configured values
275
+ value:
276
+ errors:
277
+ - code: invalid_field
278
+ message: 'type ''VAN'' is not valid. Allowed values: FTP, AS2, S3'
264
279
  /v1/tpconnectors/{_id}:
265
280
  get:
266
281
  x-internal: false
@@ -442,7 +457,22 @@ paths:
442
457
  '401':
443
458
  $ref: '#/components/responses/401-unauthorized'
444
459
  '422':
445
- $ref: '#/components/responses/422-unprocessable-entity'
460
+ description: |-
461
+ The connector failed validation. Among other checks, a `type`, `region`,
462
+ or `model` outside the deployment's configured values returns
463
+ `invalid_field` naming the field, the rejected value, and the allowed
464
+ values.
465
+ content:
466
+ application/json:
467
+ schema:
468
+ $ref: '#/components/schemas/Error'
469
+ examples:
470
+ invalidType:
471
+ summary: type outside the configured values
472
+ value:
473
+ errors:
474
+ - code: invalid_field
475
+ message: 'type ''VAN'' is not valid. Allowed values: FTP, AS2, S3'
446
476
  delete:
447
477
  x-internal: false
448
478
  summary: Delete a trading partner connector
@@ -1501,9 +1531,9 @@ components:
1501
1531
  `filedefinition` -- these are validated when `published` is `true`.
1502
1532
 
1503
1533
  `type`, `region`, and `model` must match the deployment's configured
1504
- values exactly, including case. A value outside the list is not
1505
- rejected with a validation error: the request never completes (no
1506
- response is returned) and nothing is created or changed.
1534
+ values exactly, including case. A value outside the list fails the
1535
+ create or update with 422 `invalid_field` ("type 'VAN' is not valid.
1536
+ Allowed values: FTP, AS2, S3"), and nothing is created or changed.
1507
1537
  x-celigo-ai-guidance:
1508
1538
  - |-
1509
1539
  Trading partner connectors define reusable templates for onboarding EDI trading partners.
@@ -1512,9 +1542,7 @@ components:
1512
1542
  exports, imports, and EDI profiles.
1513
1543
  - |-
1514
1544
  Send `type`, `region`, and `model` exactly as configured (`AS2`, not `as2`;
1515
- `North America`; `Dropship`). An out-of-list value gets no response at all — the
1516
- create or update never completes and nothing is saved — so a request that hangs
1517
- on this endpoint means a categorization value is wrong, not that the platform is slow.
1545
+ `North America`; `Dropship`).
1518
1546
  - |-
1519
1547
  When `published` is true, the connector's `supportedBy` sections are validated
1520
1548
  to ensure all required fields are present. For example:
@@ -1573,19 +1601,6 @@ components:
1573
1601
  errors:
1574
1602
  - code: invalid_request
1575
1603
  message: The request body failed validation.
1576
- 422-unprocessable-entity:
1577
- description: |
1578
- Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
1579
- content:
1580
- application/json:
1581
- schema:
1582
- $ref: '#/components/schemas/Error'
1583
- examples:
1584
- default:
1585
- value:
1586
- errors:
1587
- - code: unprocessable_entity
1588
- message: The request could not be processed due to a semantic error.
1589
1604
  404-not-found:
1590
1605
  description: |
1591
1606
  Not found. The requested resource does not exist or is not visible to the caller.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.265",
3
+ "version": "0.2.266",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "b6a06db4",
4
+ "iasCommit": "66389c3b",
5
5
  "generatedAt": "2026-11-07"
6
6
  },
7
7
  "roots": {
@@ -7040,8 +7040,8 @@
7040
7040
  ],
7041
7041
  "p": {
7042
7042
  "bulkInsert": 585,
7043
- "bulkLoad": 586,
7044
- "lookups": 589,
7043
+ "bulkLoad": 588,
7044
+ "lookups": 591,
7045
7045
  "query": 582,
7046
7046
  "queryType": 584
7047
7047
  },
@@ -7084,11 +7084,30 @@
7084
7084
  "tableName": 0
7085
7085
  }
7086
7086
  },
7087
+ {
7088
+ "t": [
7089
+ "string"
7090
+ ],
7091
+ "e": [
7092
+ "size"
7093
+ ]
7094
+ },
7095
+ {
7096
+ "t": [
7097
+ "object"
7098
+ ],
7099
+ "p": {
7100
+ "loadDataAsAvailable": 8,
7101
+ "maxFileSizeInMB": 120,
7102
+ "type": 586
7103
+ }
7104
+ },
7087
7105
  {
7088
7106
  "t": [
7089
7107
  "object"
7090
7108
  ],
7091
7109
  "p": {
7110
+ "aggregation": 587,
7092
7111
  "overrideMergeOrInsertQuery": 8,
7093
7112
  "primaryKeys": 450,
7094
7113
  "tableName": 0
@@ -7114,14 +7133,14 @@
7114
7133
  "extract": 0,
7115
7134
  "map": 41,
7116
7135
  "name": 0,
7117
- "query": 587
7136
+ "query": 589
7118
7137
  }
7119
7138
  },
7120
7139
  {
7121
7140
  "t": [
7122
7141
  "array"
7123
7142
  ],
7124
- "i": 588,
7143
+ "i": 590,
7125
7144
  "a": [
7126
7145
  "lookup"
7127
7146
  ]
@@ -7136,7 +7155,7 @@
7136
7155
  "filter": 180,
7137
7156
  "ignoreExtract": 0,
7138
7157
  "ignoreLookupFilter": 0,
7139
- "method": 591,
7158
+ "method": 593,
7140
7159
  "update": 180,
7141
7160
  "upsert": 8
7142
7161
  },
@@ -7161,12 +7180,12 @@
7161
7180
  "p": {
7162
7181
  "batchSize": 4,
7163
7182
  "customFieldMetadata": 41,
7164
- "file": 598,
7165
- "internalIdLookup": 596,
7183
+ "file": 600,
7184
+ "internalIdLookup": 598,
7166
7185
  "isFileProvider": 8,
7167
- "lookups": 594,
7168
- "operation": 595,
7169
- "preferences": 597,
7186
+ "lookups": 596,
7187
+ "operation": 597,
7188
+ "preferences": 599,
7170
7189
  "recordType": 0,
7171
7190
  "recordTypeId": 0,
7172
7191
  "retryUpdateAsAdd": 8
@@ -7192,7 +7211,7 @@
7192
7211
  "t": [
7193
7212
  "array"
7194
7213
  ],
7195
- "i": 593
7214
+ "i": 595
7196
7215
  },
7197
7216
  {
7198
7217
  "t": [
@@ -7247,16 +7266,16 @@
7247
7266
  "p": {
7248
7267
  "batchSize": 4,
7249
7268
  "customFieldMetadata": 41,
7250
- "file": 598,
7251
- "hooks": 602,
7252
- "internalIdLookup": 600,
7269
+ "file": 600,
7270
+ "hooks": 604,
7271
+ "internalIdLookup": 602,
7253
7272
  "isFileProvider": 8,
7254
7273
  "isMigrated": 8,
7255
- "lookups": 614,
7256
- "mapping": 612,
7274
+ "lookups": 616,
7275
+ "mapping": 614,
7257
7276
  "missingOrCorruptedDAConfig": 8,
7258
- "operation": 595,
7259
- "preferences": 597,
7277
+ "operation": 597,
7278
+ "preferences": 599,
7260
7279
  "rawOverride": 41,
7261
7280
  "recordIdentifier": 0,
7262
7281
  "recordType": 0,
@@ -7293,9 +7312,9 @@
7293
7312
  "object"
7294
7313
  ],
7295
7314
  "p": {
7296
- "postMap": 601,
7297
- "postSubmit": 601,
7298
- "preMap": 601
7315
+ "postMap": 603,
7316
+ "postSubmit": 603,
7317
+ "preMap": 603
7299
7318
  }
7300
7319
  },
7301
7320
  {
@@ -7329,7 +7348,7 @@
7329
7348
  ],
7330
7349
  "p": {
7331
7350
  "lookupName": 0,
7332
- "when": 604
7351
+ "when": 606
7333
7352
  }
7334
7353
  },
7335
7354
  {
@@ -7337,7 +7356,7 @@
7337
7356
  "object"
7338
7357
  ],
7339
7358
  "p": {
7340
- "conditional": 605,
7359
+ "conditional": 607,
7341
7360
  "dataType": 0,
7342
7361
  "discardIfEmpty": 8,
7343
7362
  "extract": 88,
@@ -7348,21 +7367,21 @@
7348
7367
  "immutable": 8,
7349
7368
  "internalId": 8,
7350
7369
  "lookupName": 0,
7351
- "subRecordMapping": 603
7370
+ "subRecordMapping": 605
7352
7371
  }
7353
7372
  },
7354
7373
  {
7355
7374
  "t": [
7356
7375
  "array"
7357
7376
  ],
7358
- "i": 606
7377
+ "i": 608
7359
7378
  },
7360
7379
  {
7361
7380
  "t": [
7362
7381
  "object"
7363
7382
  ],
7364
7383
  "p": {
7365
- "conditional": 605,
7384
+ "conditional": 607,
7366
7385
  "dataType": 0,
7367
7386
  "discardIfEmpty": 8,
7368
7387
  "extract": 88,
@@ -7374,21 +7393,21 @@
7374
7393
  "internalId": 8,
7375
7394
  "isKey": 8,
7376
7395
  "lookupName": 0,
7377
- "subRecordMapping": 603
7396
+ "subRecordMapping": 605
7378
7397
  }
7379
7398
  },
7380
7399
  {
7381
7400
  "t": [
7382
7401
  "array"
7383
7402
  ],
7384
- "i": 608
7403
+ "i": 610
7385
7404
  },
7386
7405
  {
7387
7406
  "t": [
7388
7407
  "object"
7389
7408
  ],
7390
7409
  "p": {
7391
- "fields": 609,
7410
+ "fields": 611,
7392
7411
  "generate": 0,
7393
7412
  "jsonPath": 0
7394
7413
  }
@@ -7397,15 +7416,15 @@
7397
7416
  "t": [
7398
7417
  "array"
7399
7418
  ],
7400
- "i": 610
7419
+ "i": 612
7401
7420
  },
7402
7421
  {
7403
7422
  "t": [
7404
7423
  "object"
7405
7424
  ],
7406
7425
  "p": {
7407
- "fields": 607,
7408
- "lists": 611
7426
+ "fields": 609,
7427
+ "lists": 613
7409
7428
  },
7410
7429
  "a": [
7411
7430
  "mapping"
@@ -7433,7 +7452,7 @@
7433
7452
  "t": [
7434
7453
  "array"
7435
7454
  ],
7436
- "i": 613,
7455
+ "i": 615,
7437
7456
  "a": [
7438
7457
  "lookup"
7439
7458
  ]
@@ -7447,9 +7466,9 @@
7447
7466
  "bulkLoad": 621,
7448
7467
  "ignoreExtract": 88,
7449
7468
  "ignoreLookupName": 88,
7450
- "lookups": 616,
7469
+ "lookups": 618,
7451
7470
  "query": 582,
7452
- "queryType": 618,
7471
+ "queryType": 620,
7453
7472
  "updateExtract": 88,
7454
7473
  "updateLookupName": 88
7455
7474
  }
@@ -7482,32 +7501,14 @@
7482
7501
  "array",
7483
7502
  "null"
7484
7503
  ],
7485
- "i": 617
7486
- },
7487
- {
7488
- "t": [
7489
- "string"
7490
- ],
7491
- "e": [
7492
- "size"
7493
- ]
7504
+ "i": 619
7494
7505
  },
7495
7506
  {
7496
7507
  "t": [
7497
7508
  "object"
7498
7509
  ],
7499
7510
  "p": {
7500
- "loadDataAsAvailable": 8,
7501
- "maxFileSizeInMB": 120,
7502
- "type": 619
7503
- }
7504
- },
7505
- {
7506
- "t": [
7507
- "object"
7508
- ],
7509
- "p": {
7510
- "aggregation": 620,
7511
+ "aggregation": 587,
7511
7512
  "overrideMergeQuery": 8,
7512
7513
  "primaryKeys": 20,
7513
7514
  "tableName": 0
@@ -7536,7 +7537,7 @@
7536
7537
  "p": {
7537
7538
  "configuration": 9,
7538
7539
  "function": 0,
7539
- "lookups": 616
7540
+ "lookups": 618
7540
7541
  }
7541
7542
  },
7542
7543
  {
@@ -8067,22 +8068,22 @@
8067
8068
  "inputContext": 98,
8068
8069
  "jdbc": 581,
8069
8070
  "lastModified": 0,
8070
- "lookups": 616,
8071
+ "lookups": 618,
8071
8072
  "mapping": 665,
8072
8073
  "mappings": 666,
8073
8074
  "maxAttempts": 4,
8074
8075
  "mockResponse": 656,
8075
8076
  "modelMetadata": 41,
8076
- "mongodb": 590,
8077
+ "mongodb": 592,
8077
8078
  "name": 0,
8078
- "netsuite": 592,
8079
- "netsuite_da": 599,
8079
+ "netsuite": 594,
8080
+ "netsuite_da": 601,
8080
8081
  "nsDomainType": 354,
8081
8082
  "oneToMany": 8,
8082
8083
  "parsers": 122,
8083
8084
  "pathToMany": 0,
8084
8085
  "preSave": 104,
8085
- "rdbms": 615,
8086
+ "rdbms": 617,
8086
8087
  "responseTransform": 664,
8087
8088
  "s3": 622,
8088
8089
  "salesforce": 624,