@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.
@@ -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
@@ -335,7 +343,18 @@ paths:
335
343
  '401':
336
344
  $ref: '#/components/responses/401-unauthorized'
337
345
  '404':
338
- $ref: '#/components/responses/404-not-found'
346
+ description: The event report does not exist in the account.
347
+ content:
348
+ application/json:
349
+ schema:
350
+ $ref: '#/components/schemas/Error'
351
+ examples:
352
+ not_found:
353
+ summary: Unknown event report id
354
+ value:
355
+ errors:
356
+ - code: invalid_ref
357
+ message: EventReport not found.
339
358
  '422':
340
359
  description: The report is in `completed` status and cannot be canceled.
341
360
  content:
package/dist/flow.yml CHANGED
@@ -1208,7 +1208,18 @@ paths:
1208
1208
  '403':
1209
1209
  $ref: '#/components/responses/403-forbidden'
1210
1210
  '404':
1211
- $ref: '#/components/responses/404-not-found'
1211
+ description: The flow does not exist in the account.
1212
+ content:
1213
+ application/json:
1214
+ schema:
1215
+ $ref: '#/components/schemas/Error'
1216
+ examples:
1217
+ flowNotFound:
1218
+ summary: Unknown flow id
1219
+ value:
1220
+ errors:
1221
+ - code: invalid_ref
1222
+ message: The flow 507f1f77bcf86cd799439011 does not belong to the user 5f1b2c3d4e5f6a7b8c9d0e1f.
1212
1223
  '422':
1213
1224
  $ref: '#/components/responses/422-unprocessable-entity'
1214
1225
  /v1/flows/{_id}/traceKey:
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.
@@ -17521,7 +17572,11 @@ components:
17521
17572
  Sample of the record the import writes, in the destination's own shape — the
17522
17573
  mapping editor builds its destination field list from it when none of its earlier
17523
17574
  sources applies: an HTTP connector on the connection, a bulk-load table's columns,
17524
- an Integration App's metadata, then this field. On a file
17575
+ an Integration App's metadata, then this field. `AiAgentImport`, `GuardrailImport`
17576
+ and `ToolImport` are the exception: the editor never reads this field on them — it
17577
+ maps an AI agent or guardrail step into the step's fixed input (`text` and `record`,
17578
+ plus `files` on an AI agent or a moderation guardrail) and a Tool step into the
17579
+ tool's `input.schema`. On a file
17525
17580
  transfer it is the generated file's record: for `file.type` `filedefinition` (EDI
17526
17581
  X12 / EDIFACT, fixed-width or another custom format) the definition's generate
17527
17582
  sample — a record whose nested arrays are the document's repeating loops, carried
@@ -17531,9 +17586,10 @@ components:
17531
17586
  is never the flow's source record, which comes from the previous step's preview.
17532
17587
  x-celigo-ai-guidance:
17533
17588
  - |-
17534
- The destination's source is decided in one order for every import — an HTTP
17535
- connector on the connection, then a bulk-load table's columns, then an
17536
- Integration App's metadata, then this field. Where it falls to this field, read
17589
+ Except on `AiAgentImport`, `GuardrailImport` and `ToolImport`, which never take
17590
+ their destination from this field, the destination's source is decided in one
17591
+ order — an HTTP connector on the connection, then a bulk-load table's columns, then
17592
+ an Integration App's metadata, then this field. Where it falls to this field, read
17537
17593
  it as the destination structure: on a file definition map into the record's
17538
17594
  nested arrays (unwrap a one-element array first; an 846's `LIN` array holds the
17539
17595
  item identifier and its `QTY` quantities), on csv / xlsx / xml / json parse the
package/dist/job.yml CHANGED
@@ -463,6 +463,20 @@ paths:
463
463
  $ref: '#/components/responses/400-bad-request'
464
464
  '401':
465
465
  $ref: '#/components/responses/401-unauthorized'
466
+ '503':
467
+ description: |-
468
+ The query ran out of time on the database. Retry, or narrow the filter. Error code:
469
+ `resource_not_available`.
470
+ content:
471
+ application/json:
472
+ schema:
473
+ $ref: '#/components/schemas/Error'
474
+ examples:
475
+ timedOut:
476
+ value:
477
+ errors:
478
+ - code: resource_not_available
479
+ message: Resource is not available yet, retry might help.
466
480
  x-celigo-ai-guidance:
467
481
  - |-
468
482
  Returns a paged collection of currently running jobs for the dashboard.
@@ -567,6 +581,20 @@ paths:
567
581
  $ref: '#/components/responses/400-bad-request'
568
582
  '401':
569
583
  $ref: '#/components/responses/401-unauthorized'
584
+ '503':
585
+ description: |-
586
+ The query ran out of time on the database. Retry, or narrow the filter. Error code:
587
+ `resource_not_available`.
588
+ content:
589
+ application/json:
590
+ schema:
591
+ $ref: '#/components/schemas/Error'
592
+ examples:
593
+ timedOut:
594
+ value:
595
+ errors:
596
+ - code: resource_not_available
597
+ message: Resource is not available yet, retry might help.
570
598
  /v1/jobs/family:
571
599
  post:
572
600
  x-internal: false
@@ -1094,9 +1122,12 @@ paths:
1094
1122
  - Jobs
1095
1123
  summary: Get the most recent job(s) for a flow
1096
1124
  description: |-
1097
- Returns the most recent job record(s) for the given flow. Typically one entry (the latest flow run), though
1098
- the platform may include related retry jobs depending on account configuration. For a richer parent+children
1099
- view, feed the returned `_id` into `GET /v1/jobs/{_id}/family`.
1125
+ Returns the current job records for the given flow, per page generator: every in-progress job
1126
+ (`queued`, `running`, or `retrying`, newest first, at most 50 per page generator by default;
1127
+ the deployment can change the cap) plus the newest job of any status. A job that is both
1128
+ appears once. A flow with overlapping runs (listeners, webhooks) therefore returns every
1129
+ run still in progress, not only the newest one. For a richer parent+children view, feed a
1130
+ returned `_id` into `GET /v1/jobs/{_id}/family`.
1100
1131
  parameters:
1101
1132
  - name: _id
1102
1133
  in: path
@@ -1112,7 +1143,7 @@ paths:
1112
1143
  - $ref: '#/components/parameters/Exclude'
1113
1144
  responses:
1114
1145
  '200':
1115
- description: Most recent job(s) for the flow. May be a single-element array.
1146
+ description: In-progress jobs and the newest job for each of the flow's page generators.
1116
1147
  content:
1117
1148
  application/json:
1118
1149
  schema:
@@ -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:
@@ -115,7 +115,8 @@ paths:
115
115
  Returns a parallel array of per-item results — one entry per request item,
116
116
  in the same order. Each result carries `statusCode` (**201** when a subscription
117
117
  was created, **200** when updated or removed, 422 when a referenced resource
118
- doesn't exist) plus an `errors[]` array on failures. An empty request body
118
+ doesn't exist or the subscriber is not an active member of the account) plus an
119
+ `errors[]` array on failures. An empty request body
119
120
  returns an empty array.
120
121
 
121
122
  The body is a bare array (maximum 500 items). Each item must carry
@@ -123,6 +124,13 @@ paths:
123
124
  `_syncId`. The response is a per-item status array; referencing a
124
125
  non-existent resource fails that item with `statusCode: 422` but
125
126
  does not fail the whole request.
127
+
128
+ Subscribing (`subscribed: true`) on behalf of someone other than the account owner
129
+ requires that `subscribedByUserEmail` belong to a user who accepted an account share
130
+ in this environment that is not disabled (a support user needs an active support
131
+ share). Otherwise that item fails with `statusCode: 422`, field
132
+ `subscribedByUserEmail`, code `invalid_ref`. Unsubscribing is not checked, so
133
+ subscriptions of people who left the account can still be removed.
126
134
  requestBody:
127
135
  required: true
128
136
  content:
@@ -167,7 +175,8 @@ paths:
167
175
  Per-item outcome: 201 when the subscription was created;
168
176
  200 when it already existed (subscribing again keeps the one
169
177
  record) or was removed; 422 when the referenced resource
170
- doesn't exist (details in `errors[]`).
178
+ doesn't exist or the subscriber is not an active member of the
179
+ account (details in `errors[]`).
171
180
  errors:
172
181
  type: array
173
182
  description: Per-item error details — present on 4xx per-item failures, never on a 201 or 200.
@@ -201,6 +210,14 @@ paths:
201
210
  - field: _connectionId
202
211
  code: invalid_ref
203
212
  message: Please ensure that connection with 000000000000000000000001 exists for creating the notification.
213
+ nonMember:
214
+ summary: The subscriber is not an active member of the account
215
+ value:
216
+ - statusCode: 422
217
+ errors:
218
+ - field: subscribedByUserEmail
219
+ code: invalid_ref
220
+ message: subscribedByUserEmail must be an accepted, active member of this account.
204
221
  '400':
205
222
  $ref: '#/components/responses/400-bad-request'
206
223
  '401':
@@ -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`.