@celigo/api-specs 0.2.1

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.
Files changed (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -0
  3. package/dist/account.yml +592 -0
  4. package/dist/agent.yml +908 -0
  5. package/dist/ai-agent.yml +5471 -0
  6. package/dist/api.yml +4140 -0
  7. package/dist/apim.yml +1286 -0
  8. package/dist/asynchelper.yml +3391 -0
  9. package/dist/audit.yml +2006 -0
  10. package/dist/connection.yml +8665 -0
  11. package/dist/connector.yml +1406 -0
  12. package/dist/ediprofile.yml +911 -0
  13. package/dist/editransaction.yml +1210 -0
  14. package/dist/enduser.yml +1724 -0
  15. package/dist/environment.yml +568 -0
  16. package/dist/eventreport.yml +692 -0
  17. package/dist/export.yml +17610 -0
  18. package/dist/filedefinition.yml +1396 -0
  19. package/dist/filestorage.yml +3102 -0
  20. package/dist/flow.yml +7928 -0
  21. package/dist/guardrail.yml +2763 -0
  22. package/dist/httpconnector.yml +2277 -0
  23. package/dist/httpconnectorendpoint.yml +722 -0
  24. package/dist/httpconnectorresource.yml +396 -0
  25. package/dist/iclient.yml +4452 -0
  26. package/dist/import.yml +15381 -0
  27. package/dist/integration.yml +4406 -0
  28. package/dist/job.yml +2014 -0
  29. package/dist/lookupcache.yml +1325 -0
  30. package/dist/marketplace.yml +685 -0
  31. package/dist/mcp-oauth-provider.yml +590 -0
  32. package/dist/mcp-server.yml +2656 -0
  33. package/dist/notification.yml +488 -0
  34. package/dist/processor.yml +1253 -0
  35. package/dist/profile.yml +455 -0
  36. package/dist/recyclebin.yml +768 -0
  37. package/dist/script.yml +1128 -0
  38. package/dist/stack.yml +1291 -0
  39. package/dist/state.yml +894 -0
  40. package/dist/subscription.yml +1405 -0
  41. package/dist/sync.yml +4857 -0
  42. package/dist/tag.yml +553 -0
  43. package/dist/template.yml +897 -0
  44. package/dist/tool.yml +33656 -0
  45. package/dist/tradingpartnerconnector.yml +1490 -0
  46. package/dist/user.yml +831 -0
  47. package/package.json +41 -0
  48. package/schemas.json +8420 -0
package/dist/agent.yml ADDED
@@ -0,0 +1,908 @@
1
+ openapi: 3.2.0
2
+ info:
3
+ version: 1.0.0
4
+ title: On-premise Agents
5
+ description: API for managing Celigo on-premise agents — locally installed programs that tunnel firewall-protected systems to integrator.io.
6
+ x-celigo-ai-guidance:
7
+ - |-
8
+ API for managing on-premise agents in Celigo.
9
+ On-premise agents are software programs that run on your server and establish a
10
+ secure tunnel for connecting to integrator.io.
11
+ servers:
12
+ - url: https://api.integrator.io
13
+ description: Production (US / default region)
14
+ - url: https://api.eu.integrator.io
15
+ description: Production (EU region)
16
+ - url: https://api.au.integrator.io
17
+ description: Production (AU region)
18
+ - url: https://api.ca.integrator.io
19
+ description: Production (CA region)
20
+ security:
21
+ - bearerAuth: []
22
+ tags:
23
+ - name: On-premise Agents
24
+ description: |-
25
+ On-premise agents are software programs installed on a local server that
26
+ establish a secure tunnel back to integrator.io. Connections configured
27
+ with an `_agentId` route traffic through the agent, enabling integrations
28
+ with databases and applications behind a firewall without opening
29
+ inbound ports.
30
+
31
+ ## Agent schema
32
+
33
+ {% openapi-schemas spec="agent" schemas="Agent" grouped="true" %}
34
+ paths:
35
+ /v1/agents:
36
+ get:
37
+ x-internal: false
38
+ summary: List on-premise agents
39
+ description: |-
40
+ Returns all on-premise agents configured in the account. Check `offline`
41
+ to determine agent health — `true` means the platform has not received a
42
+ heartbeat recently.
43
+ operationId: listAgents
44
+ tags:
45
+ - On-premise Agents
46
+ parameters:
47
+ - $ref: '#/components/parameters/Include'
48
+ - $ref: '#/components/parameters/Exclude'
49
+ - name: limit
50
+ in: query
51
+ required: false
52
+ description: Maximum number of agents to return per page.
53
+ schema:
54
+ type: integer
55
+ minimum: 1
56
+ maximum: 1000
57
+ default: 1000
58
+ examples:
59
+ - 100
60
+ - name: sort_by
61
+ in: query
62
+ required: false
63
+ description: Field to sort the agent list by (for example `name`).
64
+ schema:
65
+ type: string
66
+ examples:
67
+ - name
68
+ - name: after
69
+ in: query
70
+ required: false
71
+ description: |-
72
+ Opaque pagination cursor from a previous page's `Link` header;
73
+ returns results after that position. Invalid cursor values return
74
+ 400 `invalid_query_param`.
75
+ schema:
76
+ type: string
77
+ - name: before
78
+ in: query
79
+ required: false
80
+ description: |-
81
+ Opaque pagination cursor from a previous page's `Link` header;
82
+ returns results before that position. Invalid cursor values return
83
+ 400 `invalid_query_param`.
84
+ schema:
85
+ type: string
86
+ - name: permissions
87
+ in: query
88
+ required: false
89
+ description: |-
90
+ When true, each returned agent additionally carries `_accessLevel` —
91
+ the calling user's effective access to that agent.
92
+ schema:
93
+ type: boolean
94
+ examples:
95
+ - true
96
+ responses:
97
+ '200':
98
+ description: Array of agent objects.
99
+ x-celigo-ai-guidance:
100
+ - Successfully retrieved list of agents
101
+ headers:
102
+ Link:
103
+ description: |-
104
+ RFC 5988 pagination links. Includes `<...>; rel="next"` when more
105
+ pages remain; absent on the final page.
106
+ schema:
107
+ type: string
108
+ content:
109
+ application/json:
110
+ schema:
111
+ type: array
112
+ items:
113
+ $ref: '#/components/schemas/Agent'
114
+ examples:
115
+ default:
116
+ value:
117
+ - _id: 62e1387939dc306a3806eab5
118
+ name: Production DB Server
119
+ createdAt: '2024-01-15T10:30:00.000Z'
120
+ lastModified: '2026-04-23T01:52:12.086Z'
121
+ offline: false
122
+ version: 5.3.0
123
+ _agentExtensionId: 68fb235610b42b2eaa6525c2
124
+ port: '7020'
125
+ lastHeartbeatAt: '2026-05-15T12:00:00.000Z'
126
+ - _id: 5ecd2c3ce1ec9c4fcaf60b10
127
+ name: Staging Server
128
+ createdAt: '2023-06-01T08:00:00.000Z'
129
+ lastModified: '2026-03-10T14:22:33.000Z'
130
+ offline: true
131
+ '204':
132
+ description: No agents exist in the account.
133
+ '400':
134
+ description: Invalid pagination cursor in `after` or `before`.
135
+ content:
136
+ application/json:
137
+ schema:
138
+ $ref: '#/components/schemas/Error'
139
+ examples:
140
+ invalid_cursor:
141
+ value:
142
+ errors:
143
+ - code: invalid_query_param
144
+ message: Please provide a valid cursor(i.e after or before query param) to encode or decode.
145
+ '401':
146
+ $ref: '#/components/responses/401-unauthorized'
147
+ post:
148
+ x-internal: false
149
+ summary: Create an on-premise agent
150
+ description: |-
151
+ Creates a new on-premise agent. Only `name` is required. The response
152
+ includes the agent record but not the access token — call
153
+ `GET /v1/agents/{_id}/display-token` to retrieve the token needed for
154
+ the agent installer.
155
+ operationId: createAgent
156
+ tags:
157
+ - On-premise Agents
158
+ requestBody:
159
+ required: true
160
+ content:
161
+ application/json:
162
+ schema:
163
+ $ref: '#/components/schemas/Request'
164
+ examples:
165
+ minimal:
166
+ summary: Minimal agent
167
+ value:
168
+ name: Production DB Server
169
+ with-description:
170
+ summary: Agent with description
171
+ value:
172
+ name: Staging Server
173
+ description: Runs on staging-db-01, accesses PostgreSQL and Redis.
174
+ responses:
175
+ '201':
176
+ description: Created agent.
177
+ x-celigo-ai-guidance:
178
+ - agent created successfully
179
+ content:
180
+ application/json:
181
+ schema:
182
+ $ref: '#/components/schemas/Agent'
183
+ examples:
184
+ created:
185
+ summary: Newly created agent (server sets offline to true)
186
+ value:
187
+ _id: 62e1387939dc306a3806eab5
188
+ name: Production DB Server
189
+ createdAt: '2024-01-15T10:30:00.000Z'
190
+ lastModified: '2024-01-15T10:30:00.000Z'
191
+ offline: true
192
+ '400':
193
+ $ref: '#/components/responses/400-bad-request'
194
+ '401':
195
+ $ref: '#/components/responses/401-unauthorized'
196
+ '422':
197
+ description: |-
198
+ Validation failed. A missing, empty, or non-string `name` returns
199
+ `required_field_missing` (the server maps a non-string `name` to
200
+ "missing"). A `name` longer than 100 characters, or a `description`
201
+ longer than 5120, returns `size_limit_exceeded`.
202
+ content:
203
+ application/json:
204
+ schema:
205
+ $ref: '#/components/schemas/Error'
206
+ examples:
207
+ missing_name:
208
+ value:
209
+ errors:
210
+ - code: required_field_missing
211
+ message: 'required field: name is missing'
212
+ name_too_long:
213
+ value:
214
+ errors:
215
+ - field: name
216
+ code: size_limit_exceeded
217
+ message: 'The maximum size of the field: name in the Agent document should be 100 characters.'
218
+ /v1/agents/{_id}:
219
+ get:
220
+ x-internal: false
221
+ summary: Get an on-premise agent
222
+ operationId: getAgent
223
+ tags:
224
+ - On-premise Agents
225
+ description: Returns a single on-premise agent.
226
+ parameters:
227
+ - name: _id
228
+ in: path
229
+ required: true
230
+ description: Agent resource ID.
231
+ schema:
232
+ type: string
233
+ format: objectId
234
+ x-celigo-refModel: agents
235
+ responses:
236
+ '200':
237
+ description: Agent object.
238
+ content:
239
+ application/json:
240
+ schema:
241
+ $ref: '#/components/schemas/Agent'
242
+ examples:
243
+ connected:
244
+ summary: Connected agent
245
+ value:
246
+ _id: 62e1387939dc306a3806eab5
247
+ name: Production DB Server
248
+ description: Runs on prod-db-01, accesses PostgreSQL.
249
+ createdAt: '2024-01-15T10:30:00.000Z'
250
+ lastModified: '2026-04-23T01:52:12.086Z'
251
+ offline: false
252
+ version: 5.3.0
253
+ _agentExtensionId: 68fb235610b42b2eaa6525c2
254
+ port: '7020'
255
+ lastHeartbeatAt: '2026-05-15T12:00:00.000Z'
256
+ '401':
257
+ $ref: '#/components/responses/401-unauthorized'
258
+ '404':
259
+ $ref: '#/components/responses/404-not-found'
260
+ put:
261
+ x-internal: false
262
+ summary: Update an on-premise agent
263
+ operationId: updateAgent
264
+ tags:
265
+ - On-premise Agents
266
+ description: |-
267
+ Replaces an on-premise agent's mutable fields. Only `name` and
268
+ `description` are mutable — system-managed fields (`version`, `offline`,
269
+ `port`, etc.) are ignored on PUT.
270
+ parameters:
271
+ - name: _id
272
+ in: path
273
+ required: true
274
+ description: Agent resource ID.
275
+ schema:
276
+ type: string
277
+ format: objectId
278
+ x-celigo-refModel: agents
279
+ requestBody:
280
+ required: true
281
+ content:
282
+ application/json:
283
+ schema:
284
+ $ref: '#/components/schemas/Request'
285
+ examples:
286
+ update-description:
287
+ summary: Update the agent description
288
+ value:
289
+ name: Production DB Server
290
+ description: Runs on prod-db-01, accesses PostgreSQL and Redis.
291
+ responses:
292
+ '200':
293
+ description: Updated agent.
294
+ content:
295
+ application/json:
296
+ schema:
297
+ $ref: '#/components/schemas/Agent'
298
+ examples:
299
+ updated:
300
+ summary: Agent with updated description
301
+ value:
302
+ _id: 62e1387939dc306a3806eab5
303
+ name: Production DB Server
304
+ description: Runs on prod-db-01, accesses PostgreSQL and Redis.
305
+ createdAt: '2024-01-15T10:30:00.000Z'
306
+ lastModified: '2026-04-23T01:52:12.086Z'
307
+ offline: false
308
+ version: 5.3.0
309
+ _agentExtensionId: 68fb235610b42b2eaa6525c2
310
+ port: '7020'
311
+ lastHeartbeatAt: '2026-05-15T12:00:00.000Z'
312
+ '400':
313
+ $ref: '#/components/responses/400-bad-request'
314
+ '401':
315
+ $ref: '#/components/responses/401-unauthorized'
316
+ '404':
317
+ $ref: '#/components/responses/404-not-found'
318
+ delete:
319
+ x-internal: false
320
+ summary: Delete an on-premise agent
321
+ operationId: deleteAgent
322
+ tags:
323
+ - On-premise Agents
324
+ description: |-
325
+ Deletes an on-premise agent. Soft-deleted and retained in the recycle bin
326
+ for 30 days. Does not uninstall the agent software on the host.
327
+ Connections using this agent's `_agentId` will block deletion with 422
328
+ — check dependencies first.
329
+ parameters:
330
+ - name: _id
331
+ in: path
332
+ required: true
333
+ description: Agent resource ID.
334
+ schema:
335
+ type: string
336
+ format: objectId
337
+ x-celigo-refModel: agents
338
+ responses:
339
+ '204':
340
+ description: Agent deleted.
341
+ '401':
342
+ $ref: '#/components/responses/401-unauthorized'
343
+ '404':
344
+ $ref: '#/components/responses/404-not-found'
345
+ '422':
346
+ $ref: '#/components/responses/422-dependency-conflict'
347
+ /v1/agents/{_id}/display-token:
348
+ get:
349
+ x-internal: false
350
+ summary: Display on-premise agent access token
351
+ description: |-
352
+ Returns the current unmasked access token for an agent. The agent process
353
+ needs this token to authenticate its tunnel back to integrator.io. The
354
+ access token is not included in normal GET/PUT responses — this is the
355
+ only way to retrieve it.
356
+ operationId: displayAgentToken
357
+ tags:
358
+ - On-premise Agents
359
+ parameters:
360
+ - name: _id
361
+ in: path
362
+ required: true
363
+ description: Agent resource ID.
364
+ schema:
365
+ type: string
366
+ format: objectId
367
+ x-celigo-refModel: agents
368
+ responses:
369
+ '200':
370
+ description: Access token.
371
+ content:
372
+ application/json:
373
+ schema:
374
+ $ref: '#/components/schemas/AccessTokenResponse'
375
+ examples:
376
+ default:
377
+ value:
378
+ accessToken: 894a7c82655d47b4940444f540e8f7b7
379
+ '401':
380
+ $ref: '#/components/responses/401-unauthorized'
381
+ '404':
382
+ $ref: '#/components/responses/404-not-found'
383
+ /v1/agents/{_id}/change-token:
384
+ put:
385
+ x-internal: false
386
+ summary: Rotate on-premise agent access token
387
+ description: |-
388
+ Regenerates the access token and returns the new value. The previous
389
+ token is immediately invalidated — the running agent process will
390
+ disconnect, so update the agent's configuration with the new token
391
+ before it attempts to reconnect. This is irreversible.
392
+ operationId: changeAgentToken
393
+ tags:
394
+ - On-premise Agents
395
+ parameters:
396
+ - name: _id
397
+ in: path
398
+ required: true
399
+ description: Agent resource ID.
400
+ schema:
401
+ type: string
402
+ format: objectId
403
+ x-celigo-refModel: agents
404
+ responses:
405
+ '200':
406
+ description: New access token.
407
+ content:
408
+ application/json:
409
+ schema:
410
+ $ref: '#/components/schemas/AccessTokenResponse'
411
+ examples:
412
+ rotated:
413
+ summary: Newly generated access token (previous token invalidated)
414
+ value:
415
+ accessToken: e21ccad765da4378bf296007c17b96a8
416
+ '401':
417
+ $ref: '#/components/responses/401-unauthorized'
418
+ '404':
419
+ $ref: '#/components/responses/404-not-found'
420
+ /v1/agents/{_id}/installer/signedURL:
421
+ get:
422
+ x-internal: false
423
+ summary: Get on-premise agent installer download URL
424
+ description: |
425
+ Returns a short-lived presigned S3 URL for downloading the on-premise
426
+ agent installer binary. The URL is pre-signed for roughly 15 minutes.
427
+
428
+ The `os` query parameter selects which installer to return:
429
+ - `linux` → `agent-linux.run`
430
+ - `windows` → `agent-windows.exe`
431
+ operationId: getAgentInstallerUrl
432
+ tags:
433
+ - On-premise Agents
434
+ parameters:
435
+ - name: _id
436
+ in: path
437
+ required: true
438
+ schema:
439
+ type: string
440
+ format: objectId
441
+ x-celigo-refModel: agents
442
+ description: On-premise agent id.
443
+ - name: os
444
+ in: query
445
+ required: true
446
+ schema:
447
+ type: string
448
+ enum:
449
+ - linux
450
+ - windows
451
+ x-enumDescriptions:
452
+ linux: Download the Linux installer binary.
453
+ windows: Download the Windows installer executable.
454
+ description: Operating system to download the installer for.
455
+ responses:
456
+ '200':
457
+ description: Presigned installer download URL.
458
+ content:
459
+ application/json:
460
+ schema:
461
+ $ref: '#/components/schemas/InstallerSignedUrlResponse'
462
+ examples:
463
+ linux:
464
+ summary: Linux installer URL (os=linux)
465
+ value:
466
+ signedURL: https://integrator-agents.s3.us-east-1.amazonaws.com/agent-linux.run?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&...
467
+ '401':
468
+ $ref: '#/components/responses/401-unauthorized'
469
+ '404':
470
+ $ref: '#/components/responses/404-not-found'
471
+ '422':
472
+ $ref: '#/components/responses/422-unprocessable-entity'
473
+ /v1/agents/{_id}/dependencies:
474
+ get:
475
+ x-internal: false
476
+ operationId: listAgentDependencies
477
+ tags:
478
+ - On-premise Agents
479
+ summary: List dependencies of an agent
480
+ description: |-
481
+ Returns resources that depend on this agent. Keys are resource types
482
+ (e.g. `connections`); values are arrays of dependency entries.
483
+
484
+ Check dependencies before deleting — the DELETE endpoint is blocked if
485
+ dependents exist. Returns `{}` for both zero-dependency and nonexistent IDs.
486
+ parameters:
487
+ - name: _id
488
+ in: path
489
+ required: true
490
+ description: Agent resource ID.
491
+ schema:
492
+ type: string
493
+ format: objectId
494
+ x-celigo-refModel: agents
495
+ responses:
496
+ '200':
497
+ description: |
498
+ Dependency map. Keys are resource-type strings; values are arrays
499
+ of dependency entries. Returns `{}` when no dependents exist.
500
+ content:
501
+ application/json:
502
+ schema:
503
+ $ref: '#/components/schemas/DependencyResponse'
504
+ examples:
505
+ none:
506
+ summary: No dependents (also returned for a nonexistent ID)
507
+ value: {}
508
+ '401':
509
+ $ref: '#/components/responses/401-unauthorized'
510
+ components:
511
+ securitySchemes:
512
+ bearerAuth:
513
+ type: http
514
+ scheme: bearer
515
+ parameters:
516
+ Include:
517
+ name: include
518
+ in: query
519
+ required: false
520
+ description: |-
521
+ Comma-separated list of fields to project into each returned record.
522
+ Triggers summary projection: the response contains a minimal identity
523
+ set (`_id`, `name`, plus resource-specific fields) with the requested
524
+ fields added on top. Supports dot notation for nested fields.
525
+ Mutually exclusive with `exclude`.
526
+ schema:
527
+ type: string
528
+ example: _integrationId,disabled,lastModified
529
+ Exclude:
530
+ name: exclude
531
+ in: query
532
+ required: false
533
+ description: |-
534
+ Comma-separated list of fields to strip from the default response.
535
+ Unlike `include`, does not trigger summary projection — returns the
536
+ full record with the named fields removed. Protected identity fields
537
+ (e.g. `name`) cannot be stripped. Mutually exclusive with `include`.
538
+ schema:
539
+ type: string
540
+ example: createdAt,lastModified
541
+ schemas:
542
+ AgentBase:
543
+ type: object
544
+ description: Fields for creating or updating an on-premise agent.
545
+ properties:
546
+ name:
547
+ type: string
548
+ minLength: 1
549
+ maxLength: 100
550
+ description: Display name identifying where the agent is installed and what it accesses.
551
+ x-celigo-ai-guidance:
552
+ - |-
553
+ Give your agent a name so that users in your integrator.io account know where it
554
+ is installed and what it has access to.
555
+ examples:
556
+ - Acme DC1 host — SQL Server + SFTP
557
+ description:
558
+ type: string
559
+ maxLength: 5120
560
+ description: Optional note about the agent's purpose or host environment.
561
+ x-celigo-ai-guidance:
562
+ - |-
563
+ Provide an optional description,
564
+ or any information you like that will help you keep track of this agent.
565
+ This information is displayed when viewing/editing an agent or in the Agent List page.
566
+ examples:
567
+ - Runs on prod-db-01, accesses PostgreSQL and Redis.
568
+ ResourceResponse:
569
+ type: object
570
+ description: Response
571
+ x-celigo-ai-guidance:
572
+ - Core response fields shared by all Celigo resources
573
+ properties:
574
+ _id:
575
+ type: string
576
+ format: objectId
577
+ readOnly: true
578
+ description: Unique identifier for the resource. Format is a 24-character hexadecimal string.
579
+ x-celigo-ai-guidance:
580
+ - |-
581
+ The _id is used in:
582
+ - API endpoints that operate on a specific resource (e.g., GET, PUT, DELETE)
583
+ - References from other resources (e.g., flows that use this resource)
584
+ - Job history and error tracking
585
+ examples:
586
+ - 5f8d43a1b9e5a80011a35f2c
587
+ createdAt:
588
+ type: string
589
+ format: date-time
590
+ readOnly: true
591
+ description: Timestamp when the resource was created. Set automatically and cannot be modified.
592
+ x-celigo-ai-guidance:
593
+ - Recorded in ISO 8601 with a UTC timezone (Z suffix).
594
+ examples:
595
+ - '2023-04-01T09:15:32Z'
596
+ lastModified:
597
+ type: string
598
+ format: date-time
599
+ readOnly: true
600
+ description: Timestamp when the resource was last updated. Changes whenever any property is modified.
601
+ x-celigo-ai-guidance:
602
+ - Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
603
+ examples:
604
+ - '2023-04-15T14:30:15Z'
605
+ deletedAt:
606
+ type:
607
+ - string
608
+ - 'null'
609
+ format: date-time
610
+ readOnly: true
611
+ description: Timestamp when the resource was soft-deleted. When null or absent, the resource is active.
612
+ x-celigo-ai-guidance:
613
+ - Non-null means the resource is soft-deleted (in the recycle bin) — recoverable within the retention period before permanent removal.
614
+ examples:
615
+ - '2023-05-20T11:45:32Z'
616
+ required:
617
+ - _id
618
+ Agent:
619
+ type: object
620
+ required:
621
+ - _id
622
+ - name
623
+ - createdAt
624
+ - lastModified
625
+ description: On-premise agent object as returned by the API.
626
+ allOf:
627
+ - $ref: '#/components/schemas/AgentBase'
628
+ - $ref: '#/components/schemas/ResourceResponse'
629
+ - type: object
630
+ properties:
631
+ version:
632
+ type: string
633
+ readOnly: true
634
+ description: Agent software version running on the host.
635
+ examples:
636
+ - 5.3.0
637
+ _agentExtensionId:
638
+ type: string
639
+ format: objectId
640
+ readOnly: true
641
+ description: Reference to the agent extension installation metadata.
642
+ examples:
643
+ - 68fb235610b42b2eaa6525c2
644
+ port:
645
+ type: string
646
+ readOnly: true
647
+ description: Local port the agent uses for its tunnel listener.
648
+ examples:
649
+ - '7020'
650
+ lastHeartbeatAt:
651
+ type: string
652
+ format: date-time
653
+ readOnly: true
654
+ description: Timestamp of the most recent heartbeat from the agent.
655
+ examples:
656
+ - '2026-05-15T12:00:00.000Z'
657
+ offline:
658
+ type: boolean
659
+ readOnly: true
660
+ description: When true, the platform considers this agent offline based on heartbeat state.
661
+ _accessLevel:
662
+ type: string
663
+ readOnly: true
664
+ description: |-
665
+ The calling user's effective access level for this agent.
666
+ Present only when the list request sets `permissions=true`.
667
+ examples:
668
+ - manage
669
+ Error:
670
+ type: object
671
+ description: Standard error response envelope returned by integrator.io APIs.
672
+ properties:
673
+ errors:
674
+ type: array
675
+ description: List of errors that occurred while processing the request.
676
+ items:
677
+ type: object
678
+ properties:
679
+ code:
680
+ oneOf:
681
+ - type: string
682
+ - type: integer
683
+ description: |-
684
+ Machine-readable error code. Usually a string like
685
+ `invalid_ref`, `missing_required_field`, or `unauthorized`;
686
+ may be an **integer** when the error mirrors an upstream HTTP
687
+ status (e.g. `500`) — most commonly returned by connection-ping
688
+ and adaptor-proxy responses.
689
+ message:
690
+ type: string
691
+ description: Human-readable description of the error.
692
+ field:
693
+ type: string
694
+ description: |-
695
+ Optional pointer to the document field that caused the error.
696
+ Used by structural validation errors (`missing_required_field`,
697
+ `invalid_ref`) to indicate which field is at fault
698
+ (e.g. `_id`, `type`, `http.baseURI`).
699
+ source:
700
+ type: string
701
+ description: |-
702
+ Optional origin layer for the error — e.g. `application` when
703
+ the error came from the remote system the adaptor called,
704
+ `connector` when the adaptor itself rejected the request.
705
+ required:
706
+ - message
707
+ required:
708
+ - errors
709
+ Request:
710
+ type: object
711
+ description: Fields for creating or updating an on-premise agent.
712
+ x-celigo-ai-guidance:
713
+ - Fields that can be sent when creating or updating a agent
714
+ required:
715
+ - name
716
+ allOf:
717
+ - $ref: '#/components/schemas/AgentBase'
718
+ AccessTokenResponse:
719
+ type: object
720
+ description: |
721
+ Response containing the access token used by an on-premise agent to
722
+ authenticate its secure tunnel back to integrator.io.
723
+ properties:
724
+ accessToken:
725
+ type: string
726
+ description: The agent's current access token value.
727
+ examples:
728
+ - 894a7c82655d47b4940444f540e8f7b7
729
+ x-celigo-ai-guidance:
730
+ - Value is automatically generated in integrator.io, and needs to be set in the on-premise agent to establish a secure tunnel.
731
+ InstallerSignedUrlResponse:
732
+ type: object
733
+ description: |
734
+ Presigned S3 download URL for the on-premise agent installer binary
735
+ (Linux `.run` or Windows `.exe`). The URL is short-lived (~15 minutes).
736
+ properties:
737
+ signedURL:
738
+ type: string
739
+ format: uri
740
+ description: Presigned S3 URL the client should follow to download the installer.
741
+ examples:
742
+ - https://integrator-agents.s3.us-east-1.amazonaws.com/agent-linux.run?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&...
743
+ DependencyEntry:
744
+ type: object
745
+ description: A single resource that depends on the queried resource.
746
+ properties:
747
+ id:
748
+ type: string
749
+ description: Unique identifier of the dependent resource.
750
+ examples:
751
+ - 61f92026dd053843b5d72350
752
+ name:
753
+ type: string
754
+ description: Display name of the dependent resource.
755
+ examples:
756
+ - Import Orders to NetSuite
757
+ paths:
758
+ type: array
759
+ description: |-
760
+ Dot-notation paths within the dependent resource that reference
761
+ the target resource. `[*]` denotes array elements.
762
+ items:
763
+ type: string
764
+ examples:
765
+ - - hooks.preSavePage._scriptId
766
+ accessLevel:
767
+ type: string
768
+ description: The caller's access level on the dependent resource.
769
+ examples:
770
+ - manage
771
+ dependencyIds:
772
+ type: object
773
+ description: |-
774
+ Map of resource types to arrays of IDs that this dependent
775
+ resource references on the target. Keys are singular or plural
776
+ resource type strings; values are arrays of ID strings.
777
+ additionalProperties:
778
+ type: array
779
+ items:
780
+ type: string
781
+ example:
782
+ script:
783
+ - 64ff4b21612a134bd2f45531
784
+ required:
785
+ - id
786
+ - name
787
+ - paths
788
+ - accessLevel
789
+ - dependencyIds
790
+ DependencyResponse:
791
+ type: object
792
+ description: |
793
+ Map of dependent-resource types to arrays of dependency entries.
794
+ Keys are plural resource type strings (e.g. `flows`, `imports`,
795
+ `connections`). An empty object `{}` means no dependents.
796
+ additionalProperties:
797
+ type: array
798
+ items:
799
+ $ref: '#/components/schemas/DependencyEntry'
800
+ example:
801
+ exports:
802
+ - id: 64ff4b21612a134bd2f45534
803
+ name: Bank FTP Export
804
+ paths:
805
+ - hooks.preSavePage._scriptId
806
+ accessLevel: manage
807
+ dependencyIds:
808
+ script:
809
+ - 64ff4b21612a134bd2f45531
810
+ flows:
811
+ - id: 64ff4b22612a134bd2f45538
812
+ name: CAMT-053 to Celigo CAM Format
813
+ paths:
814
+ - pageGenerators[*]._exportId
815
+ accessLevel: manage
816
+ dependencyIds:
817
+ export:
818
+ - 64ff4b21612a134bd2f45534
819
+ responses:
820
+ 401-unauthorized:
821
+ description: |-
822
+ Unauthorized. The request lacks a valid bearer token, or the provided token
823
+ failed to authenticate.
824
+
825
+ Note: the 401 response is produced by the auth middleware **before** the
826
+ request reaches the endpoint handler, so it does **not** follow the
827
+ standard `{errors: [...]}` envelope. Instead the body is a bare
828
+ `{message: string}` object with no `code`, no `errors` array. Callers
829
+ handling 401s should key off the HTTP status and the `message` string,
830
+ not try to destructure an `errors[]`.
831
+ content:
832
+ application/json:
833
+ schema:
834
+ type: object
835
+ properties:
836
+ message:
837
+ type: string
838
+ description: |-
839
+ Human-readable description of the auth failure. Known values:
840
+ - `"Unauthorized"` — no `Authorization` header on the request.
841
+ - `"Bearer Authentication Failed"` — header present but token
842
+ is invalid, revoked, or expired.
843
+ required:
844
+ - message
845
+ examples:
846
+ missing_token:
847
+ summary: No Authorization header sent
848
+ value:
849
+ message: Unauthorized
850
+ invalid_token:
851
+ summary: Bearer token invalid or revoked
852
+ value:
853
+ message: Bearer Authentication Failed
854
+ 400-bad-request:
855
+ description: |
856
+ Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
857
+ content:
858
+ application/json:
859
+ schema:
860
+ $ref: '#/components/schemas/Error'
861
+ examples:
862
+ default:
863
+ value:
864
+ errors:
865
+ - code: invalid_request
866
+ message: The request body failed validation.
867
+ 404-not-found:
868
+ description: |
869
+ Not found. The requested resource does not exist or is not visible to the caller.
870
+ content:
871
+ application/json:
872
+ schema:
873
+ $ref: '#/components/schemas/Error'
874
+ examples:
875
+ default:
876
+ value:
877
+ errors:
878
+ - code: not_found
879
+ message: The requested resource was not found.
880
+ 422-dependency-conflict:
881
+ description: |-
882
+ The resource has dependents that must be deleted first. Each entry
883
+ in the `errors` array names one blocking resource.
884
+ content:
885
+ application/json:
886
+ schema:
887
+ $ref: '#/components/schemas/Error'
888
+ examples:
889
+ default:
890
+ value:
891
+ errors:
892
+ - code: dependencies_not_deleted
893
+ message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
894
+ 422-unprocessable-entity:
895
+ description: |
896
+ Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
897
+ content:
898
+ application/json:
899
+ schema:
900
+ $ref: '#/components/schemas/Error'
901
+ examples:
902
+ default:
903
+ value:
904
+ errors:
905
+ - code: unprocessable_entity
906
+ message: The request could not be processed due to a semantic error.
907
+ x-enable-proxy: true
908
+ x-internal: false