@celigo/api-specs 0.2.3 → 0.2.4-IO-168454-EPIC-fb

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 (52) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +456 -55
  3. package/dist/agent.yml +15 -0
  4. package/dist/ai-agent.yml +1000 -192
  5. package/dist/alert.yml +1226 -0
  6. package/dist/api.yml +6375 -178
  7. package/dist/apim.yml +0 -4
  8. package/dist/asynchelper.yml +441 -62
  9. package/dist/audit.yml +57 -2
  10. package/dist/bartendertemplate.yml +508 -0
  11. package/dist/connection.yml +2533 -189
  12. package/dist/connector.yml +8 -0
  13. package/dist/ediprofile.yml +15 -0
  14. package/dist/editransaction.yml +250 -14
  15. package/dist/enduser.yml +6063 -47
  16. package/dist/environment.yml +8 -0
  17. package/dist/eventreport.yml +8 -0
  18. package/dist/export.yml +1624 -1804
  19. package/dist/filedefinition.yml +47 -0
  20. package/dist/filedefinitionrules.yml +722 -0
  21. package/dist/fileserver.yml +1457 -0
  22. package/dist/filestorage.yml +1087 -535
  23. package/dist/flow.yml +896 -209
  24. package/dist/guardrail.yml +310 -499
  25. package/dist/httpconnector.yml +8 -0
  26. package/dist/httpconnectorendpoint.yml +610 -126
  27. package/dist/httpconnectorresource.yml +1160 -84
  28. package/dist/iclient.yml +245 -114
  29. package/dist/import.yml +2583 -448
  30. package/dist/integration.yml +1114 -45
  31. package/dist/job.yml +188 -92
  32. package/dist/lookupcache.yml +45 -14
  33. package/dist/marketplace.yml +352 -107
  34. package/dist/mcp-oauth-provider.yml +15 -30
  35. package/dist/mcp-server.yml +7004 -68
  36. package/dist/networkpolicy.yml +1221 -0
  37. package/dist/notification.yml +59 -9
  38. package/dist/processor.yml +8 -3
  39. package/dist/recyclebin.yml +32 -2
  40. package/dist/script.yml +91 -16
  41. package/dist/stack.yml +642 -5
  42. package/dist/storagequery.yml +935 -0
  43. package/dist/subscription.yml +428 -67
  44. package/dist/sync.yml +435 -79
  45. package/dist/tag.yml +8 -0
  46. package/dist/template.yml +47 -1
  47. package/dist/tool.yml +7932 -3273
  48. package/dist/topic.yml +1806 -0
  49. package/dist/tradingpartnerconnector.yml +18 -0
  50. package/dist/user.yml +465 -42
  51. package/package.json +13 -1
  52. package/schemas.json +2358 -1887
@@ -203,6 +203,22 @@ paths:
203
203
  $ref: '#/components/responses/400-bad-request'
204
204
  '401':
205
205
  $ref: '#/components/responses/401-unauthorized'
206
+ '403':
207
+ description: |-
208
+ A `subscribedByUserEmail` value matches no user in the account, so the whole
209
+ request is rejected with `invalid_access`, including items that name valid
210
+ users. The message mentions monitor access even when the caller has full access.
211
+ content:
212
+ application/json:
213
+ schema:
214
+ $ref: '#/components/schemas/Error'
215
+ examples:
216
+ unknownEmail:
217
+ summary: subscribedByUserEmail matches no account user
218
+ value:
219
+ errors:
220
+ - code: invalid_access
221
+ message: You can not subscribe notifications for others with monitor access. Please provide your email address while subscribing.
206
222
  components:
207
223
  securitySchemes:
208
224
  bearerAuth:
@@ -244,6 +260,14 @@ components:
244
260
  description: Timestamp when the resource was last updated. Changes whenever any property is modified.
245
261
  x-celigo-ai-guidance:
246
262
  - Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
263
+ - |-
264
+ Records that something was written, not what — a settings edit, a flag flip, or a
265
+ platform workflow all move it. What changed and when is in the audit log: the
266
+ per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
267
+ `resourceType` enum lists, or the account-wide
268
+ `GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
269
+ endpoint's enum accepts (users, environments, notifications among them). A type absent
270
+ from both enums — jobs, connectors, templates — has only this timestamp.
247
271
  examples:
248
272
  - '2023-04-15T14:30:15Z'
249
273
  deletedAt:
@@ -382,15 +406,40 @@ components:
382
406
  description: |-
383
407
  A single subscribe / unsubscribe directive. Set exactly one of
384
408
  `_flowId`, `_connectionId`, `_integrationId`, or `_syncId`.
385
- oneOf:
386
- - required:
387
- - _flowId
388
- - required:
409
+ if:
410
+ required:
411
+ - _flowId
412
+ then:
413
+ not:
414
+ anyOf:
415
+ - required:
416
+ - _connectionId
417
+ - required:
418
+ - _integrationId
419
+ - required:
420
+ - _syncId
421
+ else:
422
+ if:
423
+ required:
389
424
  - _connectionId
390
- - required:
391
- - _integrationId
392
- - required:
393
- - _syncId
425
+ then:
426
+ not:
427
+ anyOf:
428
+ - required:
429
+ - _integrationId
430
+ - required:
431
+ - _syncId
432
+ else:
433
+ if:
434
+ required:
435
+ - _integrationId
436
+ then:
437
+ not:
438
+ required:
439
+ - _syncId
440
+ else:
441
+ required:
442
+ - _syncId
394
443
  properties:
395
444
  _flowId:
396
445
  type: string
@@ -430,7 +479,8 @@ components:
430
479
  format: email
431
480
  description: |-
432
481
  Email of the user whose subscription is being modified. Must match a
433
- user in the account — unknown emails are silently ignored (no-op).
482
+ user in the account: one unknown email fails the entire request with
483
+ **403** `invalid_access`, not just its own item.
434
484
  examples:
435
485
  - jane@example.com
436
486
  required:
@@ -195,9 +195,14 @@ paths:
195
195
  items:
196
196
  type: string
197
197
  description: |-
198
- Element names that should always be arrays in the
199
- output, even when containing a single item. Only
200
- active when `V0_json` is `false`.
198
+ Paths of elements that always parse as arrays. An
199
+ element that occurs once otherwise parses as an
200
+ object, and as an array only when it repeats. Each
201
+ entry is the element's full path from the record
202
+ element selected by `resourcePath` (from the
203
+ document root when `resourcePath` is unset), with
204
+ an optional leading slash; `//` descendant paths do
205
+ not match. Only active when `V0_json` is `false`.
201
206
  includeNodes:
202
207
  type: array
203
208
  items:
@@ -480,7 +480,7 @@ paths:
480
480
  '401':
481
481
  $ref: '#/components/responses/401-unauthorized'
482
482
  '403':
483
- description: The resource type does not support cascade restore.
483
+ description: The resource type is not supported by the recycle bin.
484
484
  content:
485
485
  application/json:
486
486
  schema:
@@ -488,7 +488,7 @@ paths:
488
488
  example:
489
489
  errors:
490
490
  - code: invalid_arguments
491
- message: Recycle Bin cascade restore is not supported for the given model at this time.
491
+ message: Recycle Bin operations are not supported for the given model at this time
492
492
  '404':
493
493
  $ref: '#/components/responses/404-not-found'
494
494
  components:
@@ -524,6 +524,11 @@ components:
524
524
  - McpServer
525
525
  - EDIProfile
526
526
  - Agent
527
+ - Topic
528
+ - NetworkPolicy
529
+ - Group
530
+ - Role
531
+ - IDPConfig
527
532
  - StorageItem
528
533
  x-enumDescriptions:
529
534
  Connection: An authenticated link to an external application or service.
@@ -541,6 +546,11 @@ components:
541
546
  McpServer: An MCP server endpoint exposing tools and APIs to external AI agents.
542
547
  EDIProfile: A trading partner profile for EDI document exchange (X12/EDIFACT).
543
548
  Agent: An on-premise agent that proxies API traffic to systems behind a firewall.
549
+ Topic: An Event Streams topic that buffers published messages for exports.
550
+ NetworkPolicy: An IP allow/deny list applied to sign-ins, access tokens, and MCP servers.
551
+ Group: An end-user group that bundles roles and resource grants.
552
+ Role: An end-user role that bundles resource grants.
553
+ IDPConfig: An end-user identity provider configuration.
544
554
  StorageItem: A file or folder stored in Celigo Storage.
545
555
  doc:
546
556
  type: object
@@ -707,6 +717,11 @@ components:
707
717
  - mcpservers
708
718
  - ediprofiles
709
719
  - agents
720
+ - topics
721
+ - networkpolicies
722
+ - groups
723
+ - roles
724
+ - idpconfigs
710
725
  - storageitems
711
726
  x-enumDescriptions:
712
727
  connections: Authenticated links to external applications.
@@ -724,6 +739,11 @@ components:
724
739
  mcpservers: MCP server endpoints for external AI agents.
725
740
  ediprofiles: Trading partner profiles for EDI document exchange.
726
741
  agents: On-premise agents proxying traffic behind firewalls.
742
+ topics: Event Streams topics that buffer published messages.
743
+ networkpolicies: IP allow/deny lists applied to sign-ins, tokens, and MCP servers.
744
+ groups: End-user groups that bundle roles and resource grants.
745
+ roles: End-user roles that bundle resource grants.
746
+ idpconfigs: End-user identity provider configurations.
727
747
  storageitems: Files and folders deleted from Celigo Storage (list-only).
728
748
  CascadeResourceType:
729
749
  name: resourceType
@@ -748,6 +768,11 @@ components:
748
768
  - mcpservers
749
769
  - ediprofiles
750
770
  - agents
771
+ - topics
772
+ - networkpolicies
773
+ - groups
774
+ - roles
775
+ - idpconfigs
751
776
  x-enumDescriptions:
752
777
  connections: Connection and its dependents.
753
778
  flows: Flow, its exports, imports, scripts, and connections.
@@ -764,5 +789,10 @@ components:
764
789
  mcpservers: MCP server and its dependents.
765
790
  ediprofiles: EDI profile and its dependents.
766
791
  agents: On-premise agent and its dependents.
792
+ topics: Event Streams topic (restored on its own; topics have no recycle-bin dependents).
793
+ networkpolicies: Network policy (restored on its own; policies have no recycle-bin dependents).
794
+ groups: End-user group (restored on its own).
795
+ roles: End-user role (restored on its own).
796
+ idpconfigs: End-user identity provider configuration (restored on its own).
767
797
  x-enable-proxy: true
768
798
  x-internal: false
package/dist/script.yml CHANGED
@@ -361,10 +361,22 @@ paths:
361
361
  /v1/scripts/{_id}/logs:
362
362
  get:
363
363
  x-internal: false
364
- summary: Get debug logs for a script
364
+ summary: Get execution logs for a script
365
365
  description: |-
366
- Returns console output captured while debug is enabled on the script
367
- (`debugUntil` set to a future timestamp).
366
+ Returns the script's execution log — the entries its `console.*` calls wrote during
367
+ real runs of the flows, APIs and Tools whose steps use the script. `console.log`,
368
+ `console.info`, `console.warn` and `console.error` output is recorded on every real
369
+ run regardless of the parent's logging mode (a flow's log level, an API's request
370
+ logging, a Tool invoke without `x-log-mode`); `console.debug` output is recorded only
371
+ while the script's `debugUntil` is in the future. Entries stay readable after a debug window closes. Test runs
372
+ execute the script but write no entries.
373
+
374
+ The window is read from `time_lte` downward, one time slice at a time, and each
375
+ call returns one slice. A response with an empty `logs` array **and** a
376
+ `nextPageURL` means that slice held nothing while the rest of the window is still
377
+ unread — follow the cursor until a response arrives without one. Only an empty
378
+ `logs` array with no `nextPageURL` means the window holds no entries. To read a
379
+ known run in one call, set `time_lte` a few seconds after the run ended.
368
380
  tags:
369
381
  - Scripts
370
382
  operationId: getScriptLogs
@@ -377,9 +389,47 @@ paths:
377
389
  type: string
378
390
  format: objectId
379
391
  x-celigo-refModel: scripts
392
+ - name: time_lte
393
+ in: query
394
+ required: false
395
+ description: |-
396
+ Upper bound of the time window (inclusive), as epoch milliseconds. Defaults to now if
397
+ omitted. Reading starts here and proceeds backward.
398
+ schema:
399
+ type: integer
400
+ format: int64
401
+ - name: time_gt
402
+ in: query
403
+ required: false
404
+ description: Lower bound of the time window (exclusive), as epoch milliseconds.
405
+ schema:
406
+ type: integer
407
+ format: int64
408
+ - name: _flowId
409
+ in: query
410
+ required: false
411
+ description: |-
412
+ Restricts entries to hooks that ran inside this parent. Despite the name it matches
413
+ the containing flow, API, or Tool alike — pass whichever the hook step lives in.
414
+ schema:
415
+ type: string
416
+ format: objectId
417
+ - name: _resourceId
418
+ in: query
419
+ required: false
420
+ description: Restricts entries to hooks that ran on this export or import step.
421
+ schema:
422
+ type: string
423
+ format: objectId
424
+ - name: functionType
425
+ in: query
426
+ required: false
427
+ description: Restricts entries to one hook type (for example `preMap` or `postResponseMap`).
428
+ schema:
429
+ type: string
380
430
  responses:
381
431
  '200':
382
- description: Log entries for the script.
432
+ description: One slice of the script's execution log.
383
433
  content:
384
434
  application/json:
385
435
  schema:
@@ -387,18 +437,20 @@ paths:
387
437
  properties:
388
438
  logs:
389
439
  type: array
390
- description: Debug log entries. Empty array when no logs exist or debug is not enabled.
440
+ description: |-
441
+ Entries from the slice that was read, newest first. Empty when the slice held
442
+ nothing — check `nextPageURL` before treating that as an empty window.
391
443
  items:
392
444
  type: object
393
445
  properties:
394
446
  time:
395
447
  type: string
396
- description: Timestamp when the log was captured.
448
+ description: UTC timestamp when the entry was written.
397
449
  examples:
398
450
  - '2026-05-22 01:24:38.697'
399
451
  functionType:
400
452
  type: string
401
- description: Hook type that produced the log.
453
+ description: Hook type that produced the entry.
402
454
  examples:
403
455
  - preSavePage
404
456
  _resourceId:
@@ -409,23 +461,33 @@ paths:
409
461
  - 6843b67b35b64c0bcba2fd69
410
462
  logLevel:
411
463
  type: string
412
- description: Severity level of the log entry.
464
+ description: Severity of the entry, derived from the `console` method that wrote it.
413
465
  enum:
414
466
  - INFO
415
467
  - WARN
416
468
  - ERROR
469
+ - DEBUG
417
470
  x-enumDescriptions:
418
- INFO: Output from `console.log()`.
419
- WARN: Output from `console.warn()`.
420
- ERROR: Output from `console.error()`.
471
+ INFO: Output from `console.log()` or `console.info()`
472
+ WARN: Output from `console.warn()`
473
+ ERROR: Output from `console.error()`
474
+ DEBUG: Output from `console.debug()`, recorded only while `debugUntil` is in the future
421
475
  message:
422
476
  type: string
423
477
  description: Log message content.
424
478
  examples:
425
479
  - test log message from preSavePage
480
+ nextPageURL:
481
+ type: string
482
+ description: |-
483
+ Path of the next slice to read, carrying the same filters with `time_lte` moved
484
+ back to the slice boundary. Present whenever unread window remains — including
485
+ when `logs` is empty. Absent once the window is exhausted.
486
+ examples:
487
+ - /v1/scripts/6843b67b35b64c0bcba2fd69/logs?time_gt=1790869357487&time_lte=1790955400000
426
488
  examples:
427
489
  withLogs:
428
- summary: Script with debug logs
490
+ summary: Slice with entries
429
491
  value:
430
492
  logs:
431
493
  - time: '2026-05-22 01:24:38.697'
@@ -438,8 +500,13 @@ paths:
438
500
  _resourceId: 6843b67b35b64c0bcba2fd69
439
501
  logLevel: INFO
440
502
  message: test log message from preSavePage
503
+ emptySliceMoreToRead:
504
+ summary: Empty slice, window not exhausted — follow the cursor
505
+ value:
506
+ logs: []
507
+ nextPageURL: /v1/scripts/6843b67b35b64c0bcba2fd69/logs?time_gt=1790869357487&time_lte=1790955400000
441
508
  empty:
442
- summary: No logs
509
+ summary: Window exhausted, no entries
443
510
  value:
444
511
  logs: []
445
512
  '401':
@@ -451,10 +518,11 @@ paths:
451
518
  operationId: deleteScriptLogs
452
519
  tags:
453
520
  - Scripts
454
- summary: Delete debug logs for a script
521
+ summary: Delete execution logs for a script
455
522
  description: |-
456
- Deletes all debug logs for the specified script. Synchronous and
457
- idempotent — works even if the script has no logs.
523
+ Deletes every entry in the script's execution log — the same action as the script
524
+ page's Clear logs. Synchronous and idempotent; succeeds when the script has no
525
+ entries. The only way, apart from account retention, that entries leave the log.
458
526
  parameters:
459
527
  - name: _id
460
528
  in: path
@@ -974,6 +1042,13 @@ components:
974
1042
  description: Display name of the dependent resource.
975
1043
  examples:
976
1044
  - Import Orders to NetSuite
1045
+ type:
1046
+ type: string
1047
+ description: |-
1048
+ Sub-type of the dependent resource when its collection distinguishes one, such as
1049
+ `stream` for a listener export. Only present for resource types that carry a `type`.
1050
+ examples:
1051
+ - stream
977
1052
  paths:
978
1053
  type: array
979
1054
  description: |-