@celigo/api-specs 0.2.264 → 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
@@ -13433,7 +13437,7 @@ components:
13433
13437
  databricks: Databricks SQL/Spark via JDBC.
13434
13438
  oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
13435
13439
  sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
13436
- activedirectory: SQL Server with Active Directory authentication.
13440
+ activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
13437
13441
  db2: IBM DB2 database via JDBC.
13438
13442
  workday: Workday via JDBC for report and data access.
13439
13443
  description: |-
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':
@@ -9101,7 +9101,7 @@ components:
9101
9101
  databricks: Databricks SQL/Spark via JDBC.
9102
9102
  oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
9103
9103
  sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
9104
- activedirectory: SQL Server with Active Directory authentication.
9104
+ activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
9105
9105
  db2: IBM DB2 database via JDBC.
9106
9106
  workday: Workday via JDBC for report and data access.
9107
9107
  description: |-
@@ -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.
package/dist/enduser.yml CHANGED
@@ -7146,7 +7146,7 @@ components:
7146
7146
  databricks: Databricks SQL/Spark via JDBC.
7147
7147
  oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
7148
7148
  sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
7149
- activedirectory: SQL Server with Active Directory authentication.
7149
+ activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
7150
7150
  db2: IBM DB2 database via JDBC.
7151
7151
  workday: Workday via JDBC for report and data access.
7152
7152
  description: |-
@@ -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
@@ -755,10 +755,12 @@ paths:
755
755
  data:
756
756
  type: array
757
757
  description: |-
758
- Sample source records to run through the import pipeline.
759
- Pass `[{}]` for adaptors that don't require an input record
760
- (e.g. AI Agent imports whose prompt generates the payload).
761
- An **empty array** (`[]`) is accepted but produces a minimal
758
+ Sample source records. Only the first record is previewed —
759
+ later records are neither sent nor returned, whatever the
760
+ import's batch size — so preview one record per call. Pass
761
+ `[{}]` for adaptors that don't require an input record (e.g.
762
+ AI Agent imports whose prompt generates the payload). An
763
+ **empty array** (`[]`) is accepted but produces a minimal
762
764
  `{data:[null]}` response with no `stages`. **Omitting `data`
763
765
  entirely returns HTTP 204** — the engine short-circuits when
764
766
  it has no records to trace.
@@ -778,7 +780,7 @@ paths:
778
780
  provider: openai
779
781
  openai:
780
782
  model: gpt-4.1-mini
781
- instructions: test
783
+ instructions: Reply with the single word OK.
782
784
  temperature: 0.5
783
785
  topP: 0.5
784
786
  maxOutputTokens: 5000
@@ -787,36 +789,66 @@ paths:
787
789
  responses:
788
790
  '200':
789
791
  description: |-
790
- Preview executed. Stage-level errors in the import config surface in
791
- `stages[].errors` and the top-level `errors[]`; inspect those before
792
- trusting `data[]`. When `data:[]` was supplied, the response is a
793
- minimal `{data:[null]}` with no `stages` block.
792
+ Preview executed. `data` echoes the previewed record; what was sent and
793
+ what came back are in `stages[]`, which is absent when nothing was sent
794
+ (`data: []`, or a one-to-many import with an empty or missing
795
+ `pathToMany` array on the record). For a one-to-many import a 200 can
796
+ still hold a later child the destination refused: check each `raw`
797
+ entry's `statusCode`.
794
798
  content:
795
799
  application/json:
796
800
  schema:
797
801
  $ref: '#/components/schemas/ImportPreviewResponse'
798
802
  examples:
799
803
  aiagent_stages:
800
- summary: AI Agent preview — request → raw → parse stages
804
+ summary: AI Agent preview — request → raw → parse stages (trimmed)
801
805
  value:
802
806
  data:
803
- - Test response from the model.
807
+ - {}
804
808
  stages:
805
809
  - name: request
806
810
  data:
807
811
  - model: gpt-4.1-mini
808
- instructions: test
812
+ instructions: Reply with the single word OK.
809
813
  temperature: 0.5
810
- topP: 0.5
811
- maxOutputTokens: 5000
814
+ top_p: 0.5
815
+ max_output_tokens: 5000
816
+ input:
817
+ - role: user
818
+ content:
819
+ - type: input_text
820
+ text: '{}'
812
821
  errors: null
813
822
  - name: raw
814
823
  data:
815
- - Test response from the model.
824
+ - final_output: OK
825
+ usage:
826
+ input_tokens: 19
827
+ output_tokens: 2
828
+ total_tokens: 21
816
829
  errors: null
817
830
  - name: parse
818
831
  data:
819
- - Test response from the model.
832
+ - statusCode: 200
833
+ _json:
834
+ data:
835
+ _text: OK
836
+ _text: OK
837
+ errors: null
838
+ one_to_many_nothing_to_send:
839
+ summary: One-to-many import whose pathToMany array is empty — nothing sent
840
+ value:
841
+ data:
842
+ - name: Acme
843
+ items: []
844
+ input_filter_dropped:
845
+ summary: The import's filter drops the record — nothing sent
846
+ value:
847
+ data:
848
+ - name: Acme
849
+ stages:
850
+ - name: inputFilter
851
+ data: null
820
852
  errors: null
821
853
  '204':
822
854
  description: |-
@@ -838,11 +870,55 @@ paths:
838
870
  have no compose-only surface anywhere (the SQL editor's Handlebars
839
871
  evaluation is their only preview). Structural validation returns the
840
872
  standard errors envelope.
873
+
874
+ A record that fails while running also answers 422: a mapping that
875
+ fails the record (`extract_empty`), a hook that throws (`script_error`,
876
+ naming the hook's `stage`), a `pathToMany` value that isn't an array
877
+ (`oneToMany_error`, sent without a `message`), or the destination
878
+ answering the first request with an error status (`source:
879
+ application`, the HTTP status as `code`) — that body also carries the
880
+ `request` and `raw` stages.
841
881
  content:
842
882
  application/json:
843
883
  schema:
844
884
  $ref: '#/components/schemas/Error'
845
885
  examples:
886
+ destination_error:
887
+ summary: The destination answers the request with HTTP 500 (trimmed)
888
+ value:
889
+ errors:
890
+ - source: application
891
+ code: 500
892
+ message: Internal Server Error
893
+ stage: apiCall
894
+ classification: intermittent
895
+ resolved: false
896
+ occurredAt: 1792563298579
897
+ stages:
898
+ - name: request
899
+ data:
900
+ - url: https://api.example.com/orders
901
+ method: POST
902
+ body: '{"name":"Acme"}'
903
+ errors: null
904
+ - name: raw
905
+ data:
906
+ - url: https://api.example.com/orders
907
+ statusCode: 500
908
+ body: ''
909
+ errors: null
910
+ mapping_failed:
911
+ summary: A mapping set to fail the record finds no source value
912
+ value:
913
+ errors:
914
+ - code: extract_empty
915
+ message: 'email: Source field has no value'
916
+ generate: email
917
+ fatal: true
918
+ source: mapping
919
+ stage: mapping
920
+ resolved: false
921
+ occurredAt: 1792563392529
846
922
  missing_import:
847
923
  value:
848
924
  errors:
@@ -3353,7 +3429,7 @@ components:
3353
3429
  | ["per_record"] | query (array of SQL strings) | bulkInsert |
3354
3430
  | ["per_page"] | query (array of SQL strings) | bulkInsert |
3355
3431
  | ["bulk_insert"] | bulkInsert object | query |
3356
- | ["bulk_load"] | bulkLoad object | query |
3432
+ | ["bulk_load"] | bulkLoad object; query too when bulkLoad.overrideMergeOrInsertQuery is true | query otherwise |
3357
3433
 
3358
3434
  **Critical:** query IS AN ARRAY OF STRINGS
3359
3435
  The query field must be an array of plain strings, NOT a single string and NOT an array of objects.
@@ -3370,7 +3446,9 @@ components:
3370
3446
  x-celigo-agent:
3371
3447
  - sql
3372
3448
  description: |-
3373
- 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.
3374
3452
 
3375
3453
  Each element is a complete SQL statement as a plain string. Typically contains a single query.
3376
3454
 
@@ -3421,7 +3499,7 @@ components:
3421
3499
  | ["per_record"] | query (array) | bulkInsert |
3422
3500
  | ["per_page"] | query (array) | bulkInsert |
3423
3501
  | ["bulk_insert"] | bulkInsert object | query |
3424
- | ["bulk_load"] | bulkLoad object | query |
3502
+ | ["bulk_load"] | bulkLoad object; query too when bulkLoad.overrideMergeOrInsertQuery is true | query otherwise |
3425
3503
 
3426
3504
  **Examples**
3427
3505
  - Per-record upsert: ["per_record"]
@@ -3477,8 +3555,36 @@ components:
3477
3555
  overrideMergeOrInsertQuery:
3478
3556
  type: boolean
3479
3557
  description: |-
3480
- When true, a custom merge/insert query replaces the auto-generated statement for the
3481
- 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.
3482
3588
  lookups:
3483
3589
  type: array
3484
3590
  items:
@@ -3557,6 +3663,27 @@ components:
3557
3663
  save.
3558
3664
  x-celigo-agent:
3559
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
3560
3687
  Mongodb:
3561
3688
  type: object
3562
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.
@@ -18980,49 +19107,48 @@ components:
18980
19107
  ImportPreviewResponse:
18981
19108
  type: object
18982
19109
  description: |-
18983
- Envelope returned by `POST /v1/imports/preview`. Carries per-stage
18984
- diagnostics alongside the sampled records produced by running the
18985
- supplied source data through the import's mapping/transform/target
18986
- pipeline. The target stage executes the composed destination request —
18987
- see the operation description for the write-safety warning.
19110
+ Envelope returned by `POST /v1/imports/preview`: the previewed source record
19111
+ and the stage-by-stage trace of sending it. The `request` stage executes the
19112
+ composed destination request — see the operation description for the
19113
+ write-safety warning.
18988
19114
  properties:
18989
19115
  data:
18990
19116
  type: array
18991
19117
  description: |-
18992
- Final sampled records emitted by the preview — the output of the last
18993
- pipeline stage. Mirrors `stages[-1].data` and is exposed here as a
18994
- convenience for callers that only want the end result.
19118
+ The first record of the request's `data[]`, echoed as sent. It is not the
19119
+ mapped record or the destination's answer, which are in `stages[]`;
19120
+ `[null]` when the request sent `data: []`.
18995
19121
  items: {}
18996
19122
  stages:
18997
19123
  type: array
18998
19124
  description: |-
18999
- Ordered list of pipeline stages the preview traversed. **Absent** when
19000
- the request body's `data[]` was empty (minimal response is
19001
- `{data:[null]}` with no `stages`). Stage names are adaptor-dependent:
19002
- - **AI Agent imports** produce `request` → `raw` → `parse` (the
19003
- request sent to the model, the raw model response, and the parsed
19004
- output).
19005
- - **HTTP imports** typically produce `request` → `response` → hook
19006
- stages such as `postResponseHook`.
19007
- - **Transform-only stages** (e.g. Mapper 2.0) appear between the
19008
- source-shaping stages and the final `request` stage.
19009
-
19010
- Each stage carries its output `data[]` and any `errors[]`/`null`
19011
- raised at that stage. Stage-level errors do NOT fail the overall
19012
- call — they surface here rather than failing the overall request.
19125
+ Ordered trace of the record through the import. `inputFilter` comes first
19126
+ when the import has a `filter`, with `data: null`; when the filter drops
19127
+ the record it is the only stage and nothing is sent. Then `request`, `raw`
19128
+ and `parse`, for HTTP and AI agent imports alike. Mappings and hooks add
19129
+ no stages: the mapped record and a `preMap` hook's output are what
19130
+ `request` sends, and a `postSubmit` hook's output is the `parse` data.
19131
+
19132
+ Absent when nothing reaches the destination: the request sent `data: []`,
19133
+ or a one-to-many import (`oneToMany: true`) finds an empty array or no
19134
+ value at `pathToMany` on the record. The preview then returns only the
19135
+ echoed record and never calls the destination, so preview a one-to-many
19136
+ import with a sample whose array has items.
19013
19137
  items:
19014
19138
  type: object
19015
- description: One pipeline stage's diagnostic and output envelope.
19139
+ description: One stage's output.
19016
19140
  properties:
19017
19141
  name:
19018
19142
  type: string
19019
- description: Stage identifier (e.g. `request`, `raw`, `parse`, `postResponseHook`).
19143
+ description: Stage identifier — `inputFilter`, `request`, `raw` or `parse`.
19020
19144
  data:
19021
19145
  description: |-
19022
- Stage output. Shape varies by stage and adaptor — `request`
19023
- stages typically carry the prepared request payload, `raw`
19024
- stages carry the unparsed vendor response, `parse` stages
19025
- carry the structured output.
19146
+ Stage output, one entry per request sent (one per child for a
19147
+ one-to-many import). `request` holds what was sent (`url`,
19148
+ `method`, `headers` and `body` for HTTP; the model request for an
19149
+ AI agent), `raw` the destination's unparsed answer (`statusCode`,
19150
+ `headers` and `body` for HTTP), and `parse` the parsed answer
19151
+ (`statusCode` and `_json`).
19026
19152
  oneOf:
19027
19153
  - title: Array
19028
19154
  type: array
@@ -19043,9 +19169,9 @@ components:
19043
19169
  errors:
19044
19170
  type: array
19045
19171
  description: |-
19046
- Top-level error aggregate — typically mirrors non-null
19047
- `stages[].errors[]` entries. Often omitted entirely when the preview
19048
- ran clean; callers should treat `undefined` and `[]` as equivalent.
19172
+ Absent from a 200 response. A preview that fails answers 422 instead,
19173
+ with its errors in that body — see the operation's 422 response for
19174
+ which failures those are.
19049
19175
  items:
19050
19176
  type: object
19051
19177
  additionalProperties: true