@celigo/api-specs 0.2.1 → 0.2.2-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 (44) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +201 -3
  3. package/dist/agent.yml +7 -0
  4. package/dist/ai-agent.yml +627 -135
  5. package/dist/api.yml +5953 -127
  6. package/dist/apim.yml +0 -4
  7. package/dist/asynchelper.yml +117 -22
  8. package/dist/audit.yml +41 -2
  9. package/dist/bartendertemplate.yml +508 -0
  10. package/dist/connection.yml +1166 -125
  11. package/dist/ediprofile.yml +7 -0
  12. package/dist/editransaction.yml +250 -14
  13. package/dist/enduser.yml +5778 -35
  14. package/dist/export.yml +1028 -983
  15. package/dist/filedefinition.yml +37 -0
  16. package/dist/filedefinitionrules.yml +722 -0
  17. package/dist/fileserver.yml +1316 -0
  18. package/dist/filestorage.yml +712 -330
  19. package/dist/flow.yml +169 -63
  20. package/dist/guardrail.yml +280 -489
  21. package/dist/httpconnectorendpoint.yml +602 -126
  22. package/dist/httpconnectorresource.yml +1160 -84
  23. package/dist/iclient.yml +131 -76
  24. package/dist/import.yml +1937 -236
  25. package/dist/integration.yml +1024 -42
  26. package/dist/job.yml +180 -92
  27. package/dist/lookupcache.yml +7 -0
  28. package/dist/marketplace.yml +285 -105
  29. package/dist/mcp-server.yml +6745 -68
  30. package/dist/notification.yml +33 -8
  31. package/dist/processor.yml +8 -3
  32. package/dist/recyclebin.yml +32 -2
  33. package/dist/script.yml +7 -0
  34. package/dist/stack.yml +642 -5
  35. package/dist/storagequery.yml +865 -0
  36. package/dist/subscription.yml +254 -58
  37. package/dist/sync.yml +383 -72
  38. package/dist/template.yml +39 -1
  39. package/dist/tool.yml +6099 -2242
  40. package/dist/topic.yml +1783 -0
  41. package/dist/tradingpartnerconnector.yml +10 -0
  42. package/dist/user.yml +238 -32
  43. package/package.json +13 -1
  44. package/schemas.json +2346 -1885
@@ -1396,12 +1396,22 @@ components:
1396
1396
  `preConfiguredFields` must include a `type` path (e.g. `ftp` or
1397
1397
  `as2`) and export/import must include `file.type` set to
1398
1398
  `filedefinition` -- these are validated when `published` is `true`.
1399
+
1400
+ `type`, `region`, and `model` must match the deployment's configured
1401
+ values exactly, including case. A value outside the list is not
1402
+ rejected with a validation error: the request never completes (no
1403
+ response is returned) and nothing is created or changed.
1399
1404
  x-celigo-ai-guidance:
1400
1405
  - |-
1401
1406
  Trading partner connectors define reusable templates for onboarding EDI trading partners.
1402
1407
  They specify which fields are pre-configured and which fields the user must
1403
1408
  provide for connections,
1404
1409
  exports, imports, and EDI profiles.
1410
+ - |-
1411
+ Send `type`, `region`, and `model` exactly as configured (`AS2`, not `as2`;
1412
+ `North America`; `Dropship`). An out-of-list value gets no response at all — the
1413
+ create or update never completes and nothing is saved — so a request that hangs
1414
+ on this endpoint means a categorization value is wrong, not that the platform is slow.
1405
1415
  - |-
1406
1416
  When `published` is true, the connector's `supportedBy` sections are validated
1407
1417
  to ensure all required fields are present. For example:
package/dist/user.yml CHANGED
@@ -125,7 +125,12 @@ paths:
125
125
  operationId: getUser
126
126
  tags:
127
127
  - Users
128
- description: Retrieve a single user's access record by its id.
128
+ description: |-
129
+ Retrieve a single user's access record by its id. Returns the bare record:
130
+ the user is identified by `_sharedWithUserId` rather than the expanded
131
+ `sharedWithUser` the list returns, and `isProductionAdmin` is not computed.
132
+ Returns workspace records only — an end-user access-record id is not found
133
+ here; read those from `GET /v1/endusers`.
129
134
  parameters:
130
135
  - name: _id
131
136
  in: path
@@ -145,23 +150,18 @@ paths:
145
150
  default:
146
151
  value:
147
152
  _id: 6798f4dc43db9184f4bc8ee0
153
+ _sharedWithUserId: 624774a6a7574d3ed9f9a5cc
148
154
  accepted: true
149
155
  accessLevel: administrator
150
156
  integrationAccessLevel: []
151
157
  accountSSORequired: false
152
158
  accountMFARequired: false
153
- isProductionAdmin: true
154
159
  allowIntegrationWorkspaceCreation: false
155
160
  createdVia: existing_account_invite
156
161
  lastModified: '2026-05-02T17:02:59.371Z'
157
162
  createdAt: '2025-01-28T15:16:44.327Z'
158
163
  lastSignIn: '2026-05-02T17:02:59.370Z'
159
- sharedWithUser:
160
- _id: 624774a6a7574d3ed9f9a5cc
161
- email: admin@example.com
162
- name: Account Admin
163
- allowedToResetMFA: false
164
- accountSSOLinked: not_linked
164
+ userType: workspace
165
165
  '401':
166
166
  $ref: '#/components/responses/401-unauthorized'
167
167
  '404':
@@ -173,10 +173,19 @@ paths:
173
173
  tags:
174
174
  - Users
175
175
  description: |-
176
- Update a user's access level, integration permissions, or account
177
- settings. The user's email cannot be changed after invite. To
178
- disable a user without deleting, use `PUT /v1/ashares/{_id}/disable`
179
- instead.
176
+ Replaces a workspace user's access settings. The body must grant access
177
+ through `accessLevel` or a non-empty `integrationAccessLevel`, and
178
+ `integrationAccessLevel` and `accountMFARequired` are cleared when
179
+ omitted — send every value to keep. `accountSSORequired` is the
180
+ exception: it changes only when the body carries it, and is ignored
181
+ while the account enforces SSO for every user. `disabled` is not
182
+ applied here; toggle it with `PUT /v1/ashares/{_userId}/disable`.
183
+ Read-only fields echoed from the GET response are ignored, except
184
+ `userType`, which is rejected. The user's email cannot be changed after
185
+ invite. Callable from the production environment only.
186
+
187
+ End-user access records share this route with a different body — see
188
+ the End Users API.
180
189
  parameters:
181
190
  - name: _id
182
191
  in: path
@@ -193,30 +202,79 @@ paths:
193
202
  $ref: '#/components/schemas/Request'
194
203
  examples:
195
204
  changeAccessLevel:
196
- summary: Change to administrator
205
+ summary: Change to administrator (resend accountMFARequired — omitted means cleared)
197
206
  value:
198
207
  accessLevel: administrator
208
+ integrationAccessLevel: []
209
+ accountMFARequired: true
199
210
  integrationOnly:
200
- summary: Integration-only access
211
+ summary: Integration-only access (no accessLevel; resend accountMFARequired)
201
212
  value:
202
213
  integrationAccessLevel:
203
214
  - _integrationId: 68f52162f00a35a1b26eaafb
204
215
  accessLevel: manage
205
216
  - _integrationId: 6842261335b64c0bcb308e4f
206
217
  accessLevel: monitor
207
- disableUser:
208
- summary: Re-enable a disabled user
218
+ accountMFARequired: true
219
+ requireSso:
220
+ summary: Turn on SSO for the user while keeping every other setting
209
221
  value:
210
- disabled: false
222
+ accessLevel: monitor
223
+ integrationAccessLevel: []
224
+ accountSSORequired: true
225
+ accountMFARequired: true
226
+ allowToEditRetryData: true
211
227
  responses:
212
228
  '204':
213
229
  description: User updated.
214
230
  '400':
215
- $ref: '#/components/responses/400-bad-request'
231
+ description: The body grants no access, or echoes the read-only `userType`.
232
+ content:
233
+ application/json:
234
+ schema:
235
+ $ref: '#/components/schemas/Error'
236
+ examples:
237
+ noAccessGranted:
238
+ summary: Neither accessLevel nor integrationAccessLevel sent
239
+ value:
240
+ errors:
241
+ - code: invalid_request
242
+ message: To update the account access you need to either provide account level access or integration level access.
243
+ userTypeEchoed:
244
+ summary: Read-only userType sent back
245
+ value:
246
+ errors:
247
+ - code: validation_failed
248
+ message: userType is immutable after creation.
216
249
  '401':
217
250
  $ref: '#/components/responses/401-unauthorized'
251
+ '403':
252
+ description: The call was made from a sandbox environment.
253
+ content:
254
+ application/json:
255
+ schema:
256
+ $ref: '#/components/schemas/Error'
257
+ examples:
258
+ sandboxEnvironment:
259
+ value:
260
+ errors:
261
+ - code: access_restricted
262
+ message: This request can only be made through the production environment.
218
263
  '404':
219
264
  $ref: '#/components/responses/404-not-found'
265
+ '422':
266
+ description: '`integrationAccessLevel` is empty and no `accessLevel` was sent.'
267
+ content:
268
+ application/json:
269
+ schema:
270
+ $ref: '#/components/schemas/Error'
271
+ examples:
272
+ emptyIntegrationAccess:
273
+ value:
274
+ errors:
275
+ - code: missing_required_field
276
+ field: accessLevel
277
+ message: You need to provide user with either an account level access or integration level access.
220
278
  delete:
221
279
  x-internal: false
222
280
  summary: Delete a user
@@ -251,8 +309,12 @@ paths:
251
309
  summary: Toggle a user's account access (disable or re-enable)
252
310
  description: |-
253
311
  Toggles the `disabled` flag on a user's access record. Call again to
254
- re-enable — there is no separate `/enable` path. Only works on users
255
- with `accepted: true`.
312
+ re-enable — there is no separate `/enable` path, and this is the only
313
+ way to change `disabled` (the update operation does not apply it). A
314
+ pending invitation cannot be toggled until the invited user accepts or
315
+ declines it.
316
+
317
+ End-user access records share this route — see the End Users API.
256
318
  parameters:
257
319
  - name: _userId
258
320
  in: path
@@ -278,7 +340,17 @@ paths:
278
340
  '204':
279
341
  description: User access toggled.
280
342
  '400':
281
- $ref: '#/components/responses/400-bad-request'
343
+ description: The invitation is still pending.
344
+ content:
345
+ application/json:
346
+ schema:
347
+ $ref: '#/components/schemas/Error'
348
+ examples:
349
+ pendingInvitation:
350
+ value:
351
+ errors:
352
+ - code: invalid_request
353
+ message: You can't disable this invitation without it being accepted or dismissed by the invited user.
282
354
  '401':
283
355
  $ref: '#/components/responses/401-unauthorized'
284
356
  '404':
@@ -343,6 +415,94 @@ paths:
343
415
  $ref: '#/components/responses/401-unauthorized'
344
416
  '404':
345
417
  $ref: '#/components/responses/404-not-found'
418
+ /v1/ashares/{_id}/accept:
419
+ put:
420
+ x-internal: false
421
+ summary: Accept an account invitation
422
+ operationId: acceptAccountInvitation
423
+ tags:
424
+ - Users
425
+ description: |-
426
+ Accepts an invitation to another user's account on behalf of the caller.
427
+ The `_id` is a share record addressed *to* the caller — take it from
428
+ `GET /v1/shared/ashares`, not from `GET /v1/ashares`. Pending invitations
429
+ from the same owner's other environments are accepted with it, and the
430
+ owner is notified by email. Accepting an invitation that is already
431
+ accepted changes nothing. A user who still owns integrations, flows, or
432
+ syncs must transfer or delete them before they can join another account.
433
+ x-celigo-ai-guidance:
434
+ - Recipient-side operation — the caller's own token accepts the share. To grant access to your account, use `POST /v1/invite/multiple` instead.
435
+ parameters:
436
+ - name: _id
437
+ in: path
438
+ required: true
439
+ description: Share record id from `GET /v1/shared/ashares`.
440
+ schema:
441
+ type: string
442
+ format: objectId
443
+ examples:
444
+ - 612345abcdef6789012345ab
445
+ responses:
446
+ '204':
447
+ description: Invitation accepted (or already accepted).
448
+ '401':
449
+ $ref: '#/components/responses/401-unauthorized'
450
+ '404':
451
+ description: No share with this id is addressed to the caller.
452
+ content:
453
+ application/json:
454
+ schema:
455
+ $ref: '#/components/schemas/Error'
456
+ examples:
457
+ notShared:
458
+ value:
459
+ errors:
460
+ - code: invalid_ref
461
+ message: AShare not found.
462
+ /v1/ashares/{_id}/dismiss:
463
+ put:
464
+ x-internal: false
465
+ summary: Dismiss an account invitation
466
+ operationId: dismissAccountInvitation
467
+ tags:
468
+ - Users
469
+ description: |-
470
+ Declines an invitation to another user's account on behalf of the caller.
471
+ The `_id` is a share record addressed *to* the caller — take it from
472
+ `GET /v1/shared/ashares`. Pending invitations from the same owner's other
473
+ environments are dismissed with it, and the owner is notified by email;
474
+ they can send it again with `PUT /v1/ashares/{_id}/reinvite`. Dismissing
475
+ an invitation that is already dismissed changes nothing. To leave an
476
+ account whose invitation you accepted, use `DELETE /v1/shared/ashares/{_id}`.
477
+ x-celigo-ai-guidance:
478
+ - Recipient-side operation — the caller's own token declines the share. To remove a user from your account, use `DELETE /v1/ashares/{_id}` instead.
479
+ parameters:
480
+ - name: _id
481
+ in: path
482
+ required: true
483
+ description: Share record id from `GET /v1/shared/ashares`.
484
+ schema:
485
+ type: string
486
+ format: objectId
487
+ examples:
488
+ - 612345abcdef6789012345ab
489
+ responses:
490
+ '204':
491
+ description: Invitation dismissed (or already dismissed).
492
+ '401':
493
+ $ref: '#/components/responses/401-unauthorized'
494
+ '404':
495
+ description: No share with this id is addressed to the caller.
496
+ content:
497
+ application/json:
498
+ schema:
499
+ $ref: '#/components/schemas/Error'
500
+ examples:
501
+ notShared:
502
+ value:
503
+ errors:
504
+ - code: invalid_ref
505
+ message: AShare not found.
346
506
  /v1/invite/multiple:
347
507
  post:
348
508
  x-internal: false
@@ -435,9 +595,6 @@ components:
435
595
  type: object
436
596
  description: Writable fields shared by the request and response schemas.
437
597
  properties:
438
- disabled:
439
- type: boolean
440
- description: Set to False to enable a disabled user, or True to maintain disabled
441
598
  accessLevel:
442
599
  type: string
443
600
  description: |-
@@ -452,16 +609,29 @@ components:
452
609
  `integrationAccessLevel` undefined/empty
453
610
 
454
611
  If per-integration level permissions are needed, omit `accessLevel` and instead populate `integrationAccessLevel`.
612
+
613
+ On update (`PUT /v1/ashares/{_id}`) the body replaces the access settings: `integrationAccessLevel`
614
+ and `accountMFARequired` are cleared when omitted, so resend them to keep them. `accountSSORequired`
615
+ is different — it changes only when the body carries it.
616
+
617
+ `none` is written by SCIM provisioning for a user who has no account-wide grant; do not send it
618
+ yourself — omit `accessLevel` and use `integrationAccessLevel` for integration-only access.
455
619
  x-celigo-ai-guidance:
456
620
  - Choose the `accessLevel` value based on what the user should be able to do across the account.
621
+ - |-
622
+ On PUT, "omit" means "clear" for integrationAccessLevel and accountMFARequired — GET the
623
+ record first and resend both with the new accessLevel. accountSSORequired keeps its stored
624
+ value when omitted.
457
625
  enum:
458
626
  - monitor
459
627
  - manage
460
628
  - administrator
629
+ - none
461
630
  x-enumDescriptions:
462
631
  monitor: Grants access to view all integrations, run flows, and troubleshoot flow errors (retry/resolve) without modifying integrations, flows, steps, resources, account settings, or users
463
632
  manage: Grants access to edit all integrations and resources and troubleshoot flow errors, but not to view or edit account settings or invite/manage users
464
633
  administrator: Grants full account administration, including editing account settings, resources, and integrations; inviting/managing users; and troubleshooting flow errors, but does not grant owner-only actions such as transferring account ownership or managing owner permissions
634
+ none: No account-wide grant; recorded by SCIM provisioning for users whose access is defined entirely by integrationAccessLevel
465
635
  integrationAccessLevel:
466
636
  type: array
467
637
  description: |-
@@ -472,6 +642,8 @@ components:
472
642
  - If `accessLevel` is omitted, this creates **integration-only** access.
473
643
  - If `accessLevel` is `monitor`, this grants **elevated access** (typically `manage`) for specific integrations.
474
644
  - If `accessLevel` is `manage` or `administrator`, do not set `integrationAccessLevel`.
645
+
646
+ Cleared when omitted on update — send `[]` explicitly only when you mean no per-integration grants.
475
647
  items:
476
648
  type: object
477
649
  properties:
@@ -493,12 +665,22 @@ components:
493
665
  manage: Full access to edit the integration and its resources.
494
666
  accountSSORequired:
495
667
  type: boolean
496
- description: When true, SSO is required for this user in this account.
668
+ description: |-
669
+ When true, the user must sign in through SSO to access this account. Written
670
+ only when present in the update body — omitting it on `PUT /v1/ashares/{_id}`
671
+ leaves the stored value unchanged. While the account enforces SSO for every
672
+ user, the value sent is ignored and the stored value is kept until that
673
+ enforcement is turned off.
674
+ examples:
675
+ - false
497
676
  x-celigo-ai-guidance:
498
677
  - Whether the invited user must use SSO to access this account.
678
+ - Send it only when you intend to change it; a PUT without it does not clear SSO enforcement for the user.
499
679
  accountMFARequired:
500
680
  type: boolean
501
- description: When true, MFA is required for this user in this account.
681
+ description: |-
682
+ When true, MFA is required for this user in this account. Cleared when
683
+ omitted on update — resend it with every `PUT /v1/ashares/{_id}`.
502
684
  x-celigo-ai-guidance:
503
685
  - Whether the invited user must use MFA to access this account.
504
686
  allowAccessToAPIM:
@@ -573,7 +755,6 @@ components:
573
755
  type: object
574
756
  required:
575
757
  - _id
576
- - sharedWithUser
577
758
  - integrationAccessLevel
578
759
  - createdAt
579
760
  - lastModified
@@ -581,10 +762,12 @@ components:
581
762
  A user's access record in the account. Each user who has been invited
582
763
  (or shared access) gets one record per account they belong to. The
583
764
  `_id` is the access-record id, not the user's own id — the user's
584
- identity is in `sharedWithUser._id`. The account owner does not
585
- appear in this list.
765
+ identity is in `sharedWithUser._id` on list and invite responses, and
766
+ in `_sharedWithUserId` on `GET /v1/ashares/{_id}`. The account owner
767
+ does not appear in this list.
586
768
  x-celigo-ai-guidance:
587
769
  - Account user object representing a user's access to the account
770
+ - The list expands the user into `sharedWithUser`; the single-record GET returns only `_sharedWithUserId`. Read the list when you need the email or name.
588
771
  allOf:
589
772
  - $ref: '#/components/schemas/UserBase'
590
773
  - type: object
@@ -597,10 +780,28 @@ components:
597
780
  examples:
598
781
  - 6798f4dc43db9184f4bc8ee0
599
782
  description: Access-record id for this user in the account.
783
+ _sharedWithUserId:
784
+ type: string
785
+ format: objectId
786
+ readOnly: true
787
+ x-celigo-refModel: users
788
+ examples:
789
+ - 624774a6a7574d3ed9f9a5cc
790
+ description: |-
791
+ The user's own account id. Present on `GET /v1/ashares/{_id}`, which
792
+ returns the bare record; the list and invite responses expand it into
793
+ `sharedWithUser` instead.
600
794
  accepted:
601
795
  type: boolean
602
796
  readOnly: true
603
797
  description: When true, the user has accepted the invitation to join the account.
798
+ disabled:
799
+ type: boolean
800
+ readOnly: true
801
+ description: |-
802
+ When true, the user's access to the account is suspended. Changed
803
+ only by `PUT /v1/ashares/{_userId}/disable` — a value sent on the
804
+ update operation is accepted but not applied.
604
805
  userType:
605
806
  type: string
606
807
  readOnly: true
@@ -608,8 +809,10 @@ components:
608
809
  - workspace
609
810
  description: |-
610
811
  Discriminates workspace users from end users on the underlying
611
- access-record model. This endpoint only returns `workspace`
612
- records — end users are managed through the End Users API.
812
+ access-record model. Reads on this API return only `workspace`
813
+ records — end users are managed through the End Users API, which
814
+ shares the update and disable routes. Sending it back on update
815
+ is rejected.
613
816
  x-enumDescriptions:
614
817
  workspace: A workspace (team member) access record.
615
818
  lastSignIn:
@@ -654,7 +857,10 @@ components:
654
857
  sharedWithUser:
655
858
  type: object
656
859
  readOnly: true
657
- description: Identity details of the invited/shared user.
860
+ description: |-
861
+ Identity details of the invited/shared user. Present on the list and
862
+ invite responses; `GET /v1/ashares/{_id}` returns `_sharedWithUserId`
863
+ in its place.
658
864
  properties:
659
865
  _id:
660
866
  type: string
package/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-IO-168454-EPIC-fb",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
+ "keywords": [
7
+ "openapi",
8
+ "openapi3",
9
+ "celigo",
10
+ "integrator.io",
11
+ "api",
12
+ "specs"
13
+ ],
6
14
  "files": [
7
15
  "dist/",
8
16
  "schemas.json"
@@ -15,6 +23,10 @@
15
23
  "type": "git",
16
24
  "url": "https://github.com/celigo/integrator-api-specs.git"
17
25
  },
26
+ "homepage": "https://developer.celigo.com/api/api-reference",
27
+ "bugs": {
28
+ "url": "https://docs.celigo.com/hc/en-us/requests/new"
29
+ },
18
30
  "license": "MIT",
19
31
  "scripts": {
20
32
  "lint": "redocly lint",