@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
package/dist/iclient.yml CHANGED
@@ -25,7 +25,8 @@ tags:
25
25
 
26
26
  Each iClient targets one `provider` — the provider determines
27
27
  which credential sub-object (`oauth2`, `netsuite`, `salesforce`,
28
- `ebay`, `amazonmws`, `azureserviceprincipal`) is required.
28
+ `ebay`, `amazonmws`, `azureserviceprincipal`, `googleserviceaccount`,
29
+ `awsIam`) is required.
29
30
  Secrets are stored encrypted and returned masked as `"******"`.
30
31
 
31
32
  ## iClient schema
@@ -163,6 +164,14 @@ paths:
163
164
  clientId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
164
165
  clientSecret: my-client-secret
165
166
  tenantId: f0e1d2c3-b4a5-6789-0abc-def012345678
167
+ awsIam:
168
+ summary: AWS IAM role for HTTP awsiam connections
169
+ value:
170
+ name: AWS IAM - orders account
171
+ provider: awsIam
172
+ awsIam:
173
+ externalId: celigo-7f3a9c2e1b
174
+ roleArn: arn:aws:iam::123456789012:role/celigo-http-adaptor-orders
166
175
  responses:
167
176
  '201':
168
177
  description: iClient created.
@@ -192,6 +201,20 @@ paths:
192
201
  - example.com
193
202
  grantType: clientcredentials
194
203
  useNewAuthFailSchema: true
204
+ awsIam:
205
+ summary: Created AWS IAM iClient (role fields returned in clear)
206
+ value:
207
+ _id: 6ab1f51c7b3d01a908423f0a
208
+ name: AWS IAM - orders account
209
+ published: false
210
+ lastModified: '2026-09-21T20:25:16.371Z'
211
+ provider: awsIam
212
+ enableJWT: false
213
+ enableIClientReferences: false
214
+ formType: http
215
+ awsIam:
216
+ externalId: celigo-7f3a9c2e1b
217
+ roleArn: arn:aws:iam::123456789012:role/celigo-http-adaptor-orders
195
218
  '400':
196
219
  $ref: '#/components/responses/400-bad-request'
197
220
  '401':
@@ -199,7 +222,38 @@ paths:
199
222
  '403':
200
223
  $ref: '#/components/responses/403-forbidden'
201
224
  '422':
202
- $ref: '#/components/responses/422-unprocessable-entity'
225
+ description: |-
226
+ Unprocessable entity. The body was well-formed but the provider's credential
227
+ sub-object is missing or invalid.
228
+ content:
229
+ application/json:
230
+ schema:
231
+ $ref: '#/components/schemas/Error'
232
+ examples:
233
+ awsIamSubSchemaMissing:
234
+ summary: awsIam provider without the awsIam object
235
+ value:
236
+ errors:
237
+ - field: awsIam
238
+ code: missing_required_field
239
+ message: The awsIam sub-schema is required
240
+ - field: awsIam.externalId
241
+ code: missing_required_field
242
+ message: 'Expected field: externalId to be present.'
243
+ awsIamExternalIdInvalid:
244
+ summary: externalId outside the allowed character set
245
+ value:
246
+ errors:
247
+ - field: awsIam.externalId
248
+ code: invalid_field_value
249
+ message: externalId must be 2-1224 characters and contain only alphanumeric and +=,.@:/_- characters.
250
+ awsIamRoleArnInvalid:
251
+ summary: roleArn is not an IAM role ARN
252
+ value:
253
+ errors:
254
+ - field: awsIam.roleArn
255
+ code: invalid_field_value
256
+ message: roleArn must match format arn:aws:iam::{account-id}:role/[path/]{role-name}.
203
257
  /v1/iclients/{_id}:
204
258
  get:
205
259
  x-internal: false
@@ -1744,73 +1798,36 @@ components:
1744
1798
  items:
1745
1799
  type: string
1746
1800
  description: |-
1747
- Domain names used to validate OAuth URLs. Provide each
1748
- unique domain once (no scheme, no path).
1801
+ Registrable domains (`domain.com`, `domain.co.uk` — the host with its
1802
+ subdomains removed) of the OAuth URLs this client's credentials are
1803
+ sent to: the access token, authorization, and revoke URLs. Before an
1804
+ OAuth request leaves integrator.io, the target URL's registrable
1805
+ domain must appear here; a full hostname never matches.
1749
1806
  examples:
1750
1807
  - - domain.com
1751
1808
  - - domain.com
1752
1809
  - domain1.com
1753
1810
  - domain2.com
1811
+ - - microsoftonline.com
1812
+ - microsoft.com
1754
1813
  x-celigo-ai-guidance:
1755
1814
  - |-
1756
- Set this to the list of unique domain names used to validate the OAuth URLs (Authorization,
1757
- Access Token, Revoke Token).
1758
- In the UI, enter each unique domain name as comma-separated values;
1759
- if the same domain is used for each URL, provide it only once.
1760
- For multiple domains, set this to `["domain.com", "domain1.com",
1761
- "domain2.com"]`; if all URLs share the same domain (e.g.
1762
- `domain.com`), set this to `["domain.com"]`.
1763
- - |-
1764
- Example: if your URLs are:
1765
- - `https://<AccessTokenURL>.domain.com`
1766
- - `https://<RevokeTokenURL>.domain1.com`
1767
- - `https://<AuthorizationURL>.domain2.com`
1768
-
1769
- then set `validDomainNames` to: `["domain.com", "domain1.com", "domain2.com"]`.
1770
- - |-
1771
- ## TECHNICAL DETAILS:
1772
- - Stored as an array of strings.
1773
- - |-
1774
- ## FIELD BEHAVIOR:
1775
- - Array of domain names (no scheme, no path).
1776
- - Used to validate the OAuth URL domains (authorization/token/revoke).
1777
- - Provide each unique domain once.
1778
- - |-
1779
- ## DEPENDENCY CHAIN:
1780
- - Used alongside `oauth2.auth.uri`, `oauth2.token.uri`, and `oauth2.revoke.uri`.
1781
- - |-
1782
- ## IMPLEMENTATION GUIDANCE:
1783
- - Extract the domain portion from each OAuth URL and include it here.
1784
- - Do not include `https://` or any URL path/query—only the domain.
1785
- - Keep this list in sync if any OAuth URLs change.
1786
- - |-
1787
- ## EXAMPLES:
1788
- - ["domain.com"]
1789
- - ["domain.com", "domain1.com", "domain2.com"]
1790
- - |-
1791
- ## IMPORTANT NOTES:
1792
- - This is about **domains** for OAuth URLs, not full URLs.
1793
- - |-
1794
- Example: if your URLs are:
1795
- - `https://<AccessTokenURL>.domain.com`
1796
- - `https://<RevokeTokenURL>.domain1.com`
1797
- - `https://<AuthorizationURL>.domain2.com`
1798
- - |-
1799
- Set this to the list of unique domain names used to validate the OAuth URLs (Authorization,
1800
- Access Token, Revoke Token).
1801
- In the UI, enter each unique domain name as comma-separated values;
1802
- if the same domain is used for each URL, provide it only once.
1803
- For multiple domains, set this to `["domain.com", "domain1.com",
1804
- "domain2.com"]`; if all URLs share the same domain (e.g.
1805
- `domain.com`), set this to `["domain.com"]`.
1806
- - |-
1807
- Set this to the list of unique domain names used to validate the OAuth URLs (Authorization,
1808
- Access Token, Revoke Token).
1809
- In the UI, enter each unique domain name as comma-separated values;
1810
- if the same domain is used for each URL, provide it only once.
1811
- For multiple domains, set this to `["domain.com", "domain1.com",
1812
- "domain2.com"]`; if all URLs share the same domain (e.g.
1813
- `domain.com`), set this to `["domain.com"]`.
1815
+ Store the registrable domain, never the hostname. For the token URL
1816
+ `https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token` the entry is
1817
+ `microsoftonline.com`; `login.microsoftonline.com` fails the connection test with
1818
+ `[invalid_domain] The domain of request url should be present in
1819
+ iClient.oauth2.validDomainNames` and no request is sent. Public suffixes are
1820
+ honoured: `auth.example.co.uk` → `example.co.uk`, not `co.uk`.
1821
+ - |-
1822
+ List the registrable domain of every OAuth URL on the client (token, authorization,
1823
+ revoke) once each — a missing token-URL domain is what blocks the connection.
1824
+ Celigo's connector setup guides also list the API host's registrable domain next to
1825
+ them (Microsoft: `microsoftonline.com`, `microsoft.com`); include it to match the
1826
+ guides — an extra entry is harmless.
1827
+ - |-
1828
+ When a connection using this client reports `[invalid_domain]`, the fix is this
1829
+ field — replace hostnames with registrable domains. The connection's base URI and
1830
+ ping path are where the request goes, not where the allow-list lives.
1814
1831
  failPath:
1815
1832
  type: string
1816
1833
  description: |-
@@ -3984,23 +4001,44 @@ components:
3984
4001
  awsIam:
3985
4002
  type: object
3986
4003
  description: |-
3987
- AWS IAM cross-account role credentials. Required when `provider` is `awsIam`.
3988
- Celigo assumes `roleArn` using `externalId` as the trust-policy external ID.
4004
+ AWS IAM cross-account role credentials. Required when `provider` is `awsIam`
4005
+ (omitting the object fails with 422 `missing_required_field` "The awsIam sub-schema is
4006
+ required"). Celigo assumes `roleArn` using `externalId` as the trust-policy external ID.
4007
+ The iClient itself saves with `externalId` alone; the connection that references it
4008
+ adds its own rules on `roleArn` (see that field).
3989
4009
  required:
3990
4010
  - externalId
3991
4011
  properties:
3992
4012
  externalId:
3993
4013
  type: string
4014
+ minLength: 2
4015
+ maxLength: 1224
4016
+ pattern: ^[a-zA-Z0-9+=,.@:/_-]+$
3994
4017
  description: |-
3995
4018
  External ID Celigo presents when assuming the role; must match the
3996
- `sts:ExternalId` condition in the role's trust policy.
4019
+ `sts:ExternalId` condition in the role's trust policy. Fixed at creation: a `PUT`
4020
+ that sends a different value keeps the stored one. A value outside the allowed
4021
+ character set or length fails with 422 `invalid_field_value`.
3997
4022
  examples:
3998
4023
  - celigo-7f3a9c2e1b
3999
4024
  roleArn:
4000
4025
  type: string
4001
- description: ARN of the AWS IAM role to assume for cross-account access.
4026
+ pattern: ^arn:[a-z-]+:iam::\d{12}:role/[A-Za-z0-9+=,.@_/-]{1,576}$
4027
+ description: |-
4028
+ ARN of the AWS IAM role to assume for cross-account access. Optional on the iClient
4029
+ (a malformed ARN fails with 422 `invalid_field_value`), but an HTTP connection with
4030
+ `auth.type` `awsiam` cannot be saved against this iClient until it is set and its
4031
+ role name starts with `celigo-http-adaptor-`.
4032
+ x-celigo-ai-guidance:
4033
+ - |-
4034
+ For an HTTP connection using auth.type "awsiam", name the role
4035
+ "celigo-http-adaptor-<anything>" — the connection save fails with 422
4036
+ invalid_field_value "HTTP IAM Role authentication requires awsIam.roleArn to
4037
+ reference a role name starting with celigo-http-adaptor-." otherwise, and with 422
4038
+ missing_required_field "Expected field: awsIam.roleArn to be present." while roleArn
4039
+ is unset. The prefix rule is specific to HTTP awsiam connections.
4002
4040
  examples:
4003
- - arn:aws:iam::123456789012:role/celigo-integration
4041
+ - arn:aws:iam::123456789012:role/celigo-http-adaptor-orders
4004
4042
  jwt:
4005
4043
  type: object
4006
4044
  description: |-
@@ -4115,6 +4153,15 @@ components:
4115
4153
  isSecretBase64Encoded:
4116
4154
  type: boolean
4117
4155
  description: When true, the `secret` value is Base64-encoded.
4156
+ if:
4157
+ properties:
4158
+ provider:
4159
+ const: awsIam
4160
+ required:
4161
+ - provider
4162
+ then:
4163
+ required:
4164
+ - awsIam
4118
4165
  ResourceResponse:
4119
4166
  type: object
4120
4167
  description: Response
@@ -4236,7 +4283,8 @@ components:
4236
4283
  description: |-
4237
4284
  iClient configuration. The shape varies by `provider` — each provider
4238
4285
  requires its own credential sub-object (`oauth2`, `netsuite`,
4239
- `salesforce`, `ebay`, `amazonmws`, `azureserviceprincipal`).
4286
+ `salesforce`, `ebay`, `amazonmws`, `azureserviceprincipal`,
4287
+ `googleserviceaccount`, `awsIam`).
4240
4288
  For `custom_oauth2`, credentials go in the `oauth2` sub-object.
4241
4289
  Secrets (`clientSecret`, `privateKey`, etc.) are returned masked
4242
4290
  as `"******"`. On update, re-send that masked value to keep the
@@ -4299,6 +4347,13 @@ components:
4299
4347
  description: Display name of the dependent resource.
4300
4348
  examples:
4301
4349
  - Import Orders to NetSuite
4350
+ type:
4351
+ type: string
4352
+ description: |-
4353
+ Sub-type of the dependent resource when its collection distinguishes one, such as
4354
+ `stream` for a listener export. Only present for resource types that carry a `type`.
4355
+ examples:
4356
+ - stream
4302
4357
  paths:
4303
4358
  type: array
4304
4359
  description: |-
@@ -4422,9 +4477,9 @@ components:
4422
4477
  errors:
4423
4478
  - code: forbidden
4424
4479
  message: You do not have permission to access this resource.
4425
- 422-unprocessable-entity:
4480
+ 404-not-found:
4426
4481
  description: |
4427
- Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
4482
+ Not found. The requested resource does not exist or is not visible to the caller.
4428
4483
  content:
4429
4484
  application/json:
4430
4485
  schema:
@@ -4433,11 +4488,11 @@ components:
4433
4488
  default:
4434
4489
  value:
4435
4490
  errors:
4436
- - code: unprocessable_entity
4437
- message: The request could not be processed due to a semantic error.
4438
- 404-not-found:
4491
+ - code: not_found
4492
+ message: The requested resource was not found.
4493
+ 422-unprocessable-entity:
4439
4494
  description: |
4440
- Not found. The requested resource does not exist or is not visible to the caller.
4495
+ Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
4441
4496
  content:
4442
4497
  application/json:
4443
4498
  schema:
@@ -4446,7 +4501,7 @@ components:
4446
4501
  default:
4447
4502
  value:
4448
4503
  errors:
4449
- - code: not_found
4450
- message: The requested resource was not found.
4504
+ - code: unprocessable_entity
4505
+ message: The request could not be processed due to a semantic error.
4451
4506
  x-enable-proxy: true
4452
4507
  x-internal: false