@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
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,45 @@ 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}.
257
+ googleServiceAccountInvalidJsonKey:
258
+ summary: Google service account key is missing or not the required JSON
259
+ value:
260
+ errors:
261
+ - field: googleserviceaccount.serviceAccountJSON
262
+ code: invalid_json_key
263
+ message: The service account JSON key is missing, empty, or not valid JSON with required fields (project_id, client_email, private_key).
203
264
  /v1/iclients/{_id}:
204
265
  get:
205
266
  x-internal: false
@@ -259,7 +320,11 @@ paths:
259
320
  description: |-
260
321
  Replaces an iClient. All mutable fields must be provided — omitted
261
322
  fields are reset to defaults. Secrets returned as `"******"` can be
262
- sent back as-is to keep the existing value.
323
+ sent back as-is to keep the existing value, except a Google service
324
+ account: every update must include the full JSON key. An Azure
325
+ service principal keeps its stored `clientSecret` or `certificate`
326
+ when the field is omitted — only a new value replaces it, and
327
+ `certificate` is never returned.
263
328
  operationId: updateIClient
264
329
  tags:
265
330
  - iClients
@@ -317,7 +382,22 @@ paths:
317
382
  '404':
318
383
  $ref: '#/components/responses/404-not-found'
319
384
  '422':
320
- $ref: '#/components/responses/422-unprocessable-entity'
385
+ description: |-
386
+ Unprocessable entity. The body was well-formed but a credential
387
+ field failed validation. A Google service account update without
388
+ the full JSON key is rejected here.
389
+ content:
390
+ application/json:
391
+ schema:
392
+ $ref: '#/components/schemas/Error'
393
+ examples:
394
+ googleServiceAccountKeyOmitted:
395
+ summary: Google service account update without the full JSON key
396
+ value:
397
+ errors:
398
+ - field: googleserviceaccount.serviceAccountJSON
399
+ code: invalid_json_key
400
+ message: The service account JSON key is missing, empty, or not valid JSON with required fields (project_id, client_email, private_key).
321
401
  patch:
322
402
  x-internal: false
323
403
  summary: Patch an iClient
@@ -562,7 +642,7 @@ components:
562
642
  netsuite: NetSuite token-based authentication.
563
643
  amazonmws: Amazon Marketplace Web Service (MWS) authentication.
564
644
  awsIam: AWS IAM cross-account role authentication (assume-role with an external ID).
565
- azureserviceprincipal: Azure AD service principal (client credentials) authentication.
645
+ azureserviceprincipal: Microsoft Entra service principal (client secret or certificate) for Azure Data Lake Storage Gen2, Microsoft SQL Server and Azure Synapse connections
566
646
  googleserviceaccount: Google Cloud service-account key authentication (JSON key file).
567
647
  integrator: Celigo integrator.io internal authentication.
568
648
  salesforce: Salesforce OAuth 2.0 authentication.
@@ -1083,27 +1163,16 @@ components:
1083
1163
  clientSecret:
1084
1164
  type: string
1085
1165
  description: |-
1086
- OAuth 2.0 client secret. Returned masked as `"******"`.
1087
- Re-send that value on update to keep it; it is not preserved if omitted.
1166
+ OAuth 2.0 client secret. Returned masked as `"******"`; re-send that mask
1167
+ on update to keep the stored secret. Required whenever `oauth2` is sent, on
1168
+ create and update: omitting it or sending an empty string fails with 422
1169
+ `missing_required_field` rather than clearing the secret.
1088
1170
  x-celigo-ai-guidance:
1089
1171
  - |-
1090
- ## IMPLEMENTATION GUIDANCE:
1091
- - Provide the plain client secret value here to set/update it.
1092
- - To keep the existing secret unchanged during an update, omit this field (or, if the API/UI returns a masked value, keep `"******"` as-is).
1093
- - |-
1094
- This is the value you provide to configure or update the iClient.
1095
- Internally,
1096
- integrator.io stores this secret encrypted at rest (for example as
1097
- `clientSecret_crypt` and `clientSecret_salt` fields in the underlying model),
1098
- and API responses typically return a masked value (e.g.,
1099
- `"******"`) when a secret is already set.
1100
- - |-
1101
- This is the value you provide to configure or update the iClient.
1102
- Internally,
1103
- integrator.io stores this secret encrypted at rest (for example as
1104
- `clientSecret_crypt` and `clientSecret_salt` fields in the underlying model),
1105
- and API responses typically return a masked value (e.g.,
1106
- `"******"`) when a secret is already set.
1172
+ Send the plain secret to set or replace it. To keep the stored secret on a
1173
+ PUT, send "******" (the masked value GET returns). Never omit clientSecret
1174
+ while sending other oauth2 fields: create and update both fail with 422
1175
+ missing_required_field on oauth2.clientSecret.
1107
1176
  - |-
1108
1177
  This is the value you provide to configure or update the iClient.
1109
1178
  Internally,
@@ -1744,73 +1813,36 @@ components:
1744
1813
  items:
1745
1814
  type: string
1746
1815
  description: |-
1747
- Domain names used to validate OAuth URLs. Provide each
1748
- unique domain once (no scheme, no path).
1816
+ Registrable domains (`domain.com`, `domain.co.uk` — the host with its
1817
+ subdomains removed) of the OAuth URLs this client's credentials are
1818
+ sent to: the access token, authorization, and revoke URLs. Before an
1819
+ OAuth request leaves integrator.io, the target URL's registrable
1820
+ domain must appear here; a full hostname never matches.
1749
1821
  examples:
1750
1822
  - - domain.com
1751
1823
  - - domain.com
1752
1824
  - domain1.com
1753
1825
  - domain2.com
1826
+ - - microsoftonline.com
1827
+ - microsoft.com
1754
1828
  x-celigo-ai-guidance:
1755
1829
  - |-
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"]`.
1830
+ Store the registrable domain, never the hostname. For the token URL
1831
+ `https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token` the entry is
1832
+ `microsoftonline.com`; `login.microsoftonline.com` fails the connection test with
1833
+ `[invalid_domain] The domain of request url should be present in
1834
+ iClient.oauth2.validDomainNames` and no request is sent. Public suffixes are
1835
+ honoured: `auth.example.co.uk` → `example.co.uk`, not `co.uk`.
1836
+ - |-
1837
+ List the registrable domain of every OAuth URL on the client (token, authorization,
1838
+ revoke) once each — a missing token-URL domain is what blocks the connection.
1839
+ Celigo's connector setup guides also list the API host's registrable domain next to
1840
+ them (Microsoft: `microsoftonline.com`, `microsoft.com`); include it to match the
1841
+ guides — an extra entry is harmless.
1842
+ - |-
1843
+ When a connection using this client reports `[invalid_domain]`, the fix is this
1844
+ field — replace hostnames with registrable domains. The connection's base URI and
1845
+ ping path are where the request goes, not where the allow-list lives.
1814
1846
  failPath:
1815
1847
  type: string
1816
1848
  description: |-
@@ -3904,8 +3936,12 @@ components:
3904
3936
  azureserviceprincipal:
3905
3937
  type: object
3906
3938
  description: |-
3907
- Azure AD service principal credentials. Required when `provider`
3908
- is `azureserviceprincipal`.
3939
+ Microsoft Entra (Azure AD) service principal credentials. Required
3940
+ when `provider` is `azureserviceprincipal`. One iClient of this
3941
+ provider can back Azure Data Lake Storage Gen2, Microsoft SQL Server
3942
+ (cloud) and Azure Synapse Analytics connections; the connection forms
3943
+ offer the certificate method from Microsoft SQL Server connections
3944
+ only.
3909
3945
  required:
3910
3946
  - clientId
3911
3947
  - tenantId
@@ -3922,7 +3958,15 @@ components:
3922
3958
  description: |-
3923
3959
  Which credential the service principal presents. Defaults to
3924
3960
  `client-secret` when omitted. Each method rejects the other
3925
- method's credential fields on save.
3961
+ method's credential fields on save. Changing the method on an
3962
+ update replaces the credential: send the new method's credential
3963
+ and drop the old one.
3964
+ x-celigo-ai-guidance:
3965
+ - |-
3966
+ Under authMethod "certificate", a clientSecret is rejected with 422 invalid_field_value
3967
+ on azureserviceprincipal.clientSecret "Client secret is not used when auth method is
3968
+ certificate."; a missing certificate with 422 missing_required_field on
3969
+ azureserviceprincipal.certificate "Expected field: certificate to be present."
3926
3970
  clientId:
3927
3971
  type: string
3928
3972
  description: Azure AD application (client) ID.
@@ -3933,24 +3977,35 @@ components:
3933
3977
  description: |-
3934
3978
  Azure AD client secret. Required when `authMethod` is
3935
3979
  `client-secret` (or omitted). Returned masked as `"******"`.
3936
- Re-send that value on update to keep it; it is not preserved if omitted.
3980
+ On update the stored secret is kept when the field is omitted or
3981
+ re-sent as the mask; only a new value replaces it.
3937
3982
  certificate:
3938
3983
  type: string
3984
+ writeOnly: true
3939
3985
  description: |-
3940
3986
  PEM bundle (certificate + private key) for certificate auth.
3941
3987
  Required when `authMethod` is `certificate`; rejected under
3942
- `client-secret`. Maximum 20 KiB of PEM text. Returned masked.
3988
+ `client-secret`. Maximum 20 KiB of PEM text. Never returned in
3989
+ responses, not even masked. On update the stored PEM is kept when
3990
+ the field is omitted; only a new value replaces it.
3943
3991
  x-celigo-ai-guidance:
3944
3992
  - |-
3945
3993
  If the PEM's private key is encrypted (BEGIN ENCRYPTED PRIVATE
3946
- KEY / Proc-Type 4,ENCRYPTED), certificatePassword is required;
3994
+ KEY / Proc-Type 4,ENCRYPTED), certificatePassword is required
3995
+ (422 invalid_field_value on azureserviceprincipal.certificatePassword "This
3996
+ certificate's private key is encrypted. Enter the client certificate password.");
3947
3997
  if it is unencrypted, sending certificatePassword is rejected.
3998
+ - |-
3999
+ The save does not check that the PEM is a usable credential — a placeholder PEM
4000
+ carrying the BEGIN CERTIFICATE and BEGIN PRIVATE KEY blocks saves (live-verified
4001
+ 201). Enter the real PEM in the iClient editor before testing a connection that
4002
+ uses the iClient.
3948
4003
  certificatePassword:
3949
4004
  type: string
3950
4005
  description: |-
3951
4006
  Passphrase for an encrypted private key inside `certificate`.
3952
4007
  Required exactly when the PEM's key is encrypted; rejected when
3953
- it is not. Maximum 256 bytes. Returned masked.
4008
+ it is not. Maximum 256 bytes. Returned masked when set.
3954
4009
  tenantId:
3955
4010
  type: string
3956
4011
  description: Azure AD tenant (directory) ID.
@@ -3969,12 +4024,22 @@ components:
3969
4024
  type: string
3970
4025
  writeOnly: true
3971
4026
  description: |-
3972
- Full Google service-account key file as a JSON string. Must parse
3973
- as JSON and contain `project_id`, `client_email`, and a valid PEM
3974
- `private_key` — otherwise the save fails with
3975
- ICLIENT_GOOGLESERVICEACCOUNT_INVALID_JSON_KEY (or _INVALID_PEM
3976
- when only the key material is malformed). On update, omitting it
3977
- (or sending the mask) keeps the stored credentials.
4027
+ Google service-account key file, sent as a JSON string. The save
4028
+ reads `project_id`, `client_email`, and a `private_key` that
4029
+ includes its PEM armor (`-----BEGIN PRIVATE KEY-----` through
4030
+ `-----END PRIVATE KEY-----`). Missing, empty, or incomplete JSON
4031
+ fails with 422 `invalid_json_key`. Send the full key on every
4032
+ create and every update — omitting it or sending `"******"`
4033
+ fails the same way.
4034
+ x-celigo-ai-guidance:
4035
+ - |-
4036
+ A placeholder body inside the PEM armor is accepted on create.
4037
+ A PUT never keeps the stored key: omitting serviceAccountJSON,
4038
+ sending "******", or omitting the googleserviceaccount block
4039
+ all return 422 invalid_json_key on
4040
+ googleserviceaccount.serviceAccountJSON — "The service account
4041
+ JSON key is missing, empty, or not valid JSON with required
4042
+ fields (project_id, client_email, private_key)."
3978
4043
  clientEmail:
3979
4044
  type: string
3980
4045
  readOnly: true
@@ -3984,23 +4049,58 @@ components:
3984
4049
  awsIam:
3985
4050
  type: object
3986
4051
  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.
4052
+ AWS IAM cross-account role credentials. Required when `provider` is `awsIam`
4053
+ (omitting the object fails with 422 `missing_required_field` "The awsIam sub-schema is
4054
+ required"). Celigo assumes `roleArn` using `externalId` as the trust-policy external ID.
4055
+ The iClient itself saves with `externalId` alone; the connection that references it
4056
+ adds its own rules on `roleArn` (see that field). One iClient serves one connection
4057
+ family — Amazon S3, Amazon Redshift, or the AWS HTTP connectors — because each family
4058
+ accepts only roles named with its own prefix.
3989
4059
  required:
3990
4060
  - externalId
3991
4061
  properties:
3992
4062
  externalId:
3993
4063
  type: string
4064
+ minLength: 2
4065
+ maxLength: 1224
4066
+ pattern: ^[a-zA-Z0-9+=,.@:/_-]+$
3994
4067
  description: |-
3995
4068
  External ID Celigo presents when assuming the role; must match the
3996
- `sts:ExternalId` condition in the role's trust policy.
4069
+ `sts:ExternalId` condition in the role's trust policy. Fixed at creation: a `PUT`
4070
+ that sends a different value keeps the stored one. A value outside the allowed
4071
+ character set or length fails with 422 `invalid_field_value`.
3997
4072
  examples:
3998
4073
  - celigo-7f3a9c2e1b
3999
4074
  roleArn:
4000
4075
  type: string
4001
- description: ARN of the AWS IAM role to assume for cross-account access.
4076
+ pattern: ^arn:[a-z-]+:iam::\d{12}:role/[A-Za-z0-9+=,.@_/-]{1,576}$
4077
+ description: |-
4078
+ ARN of the AWS IAM role to assume for cross-account access. Optional on the iClient
4079
+ (a malformed ARN fails with 422 `invalid_field_value`), but no connection in IAM-role
4080
+ mode can be saved against this iClient until it is set, and each connection family
4081
+ accepts only its own role-name prefix: `celigo-file-adaptor-` for Amazon S3,
4082
+ `celigo-data-warehouse-adaptor-` for Amazon Redshift, `celigo-http-adaptor-` for the
4083
+ AWS HTTP connectors (`auth.type` `awsiam`).
4084
+ x-celigo-ai-guidance:
4085
+ - |-
4086
+ Name the role for the connection family that will use this iClient:
4087
+ "celigo-file-adaptor-<anything>" for an S3 connection (s3.authType "awsIam"),
4088
+ "celigo-data-warehouse-adaptor-<anything>" for a Redshift connection
4089
+ (redshift.authType "awsIam"), "celigo-http-adaptor-<anything>" for an HTTP
4090
+ connection (auth.type "awsiam"). One iClient cannot serve two families.
4091
+ - |-
4092
+ While roleArn is unset, every IAM-mode connection save fails with 422
4093
+ missing_required_field "Expected field: awsIam.roleArn to be present." on the
4094
+ connection's _iClientId field. With the wrong prefix the save fails with 422
4095
+ invalid_field_value: on HTTP "HTTP IAM Role authentication requires awsIam.roleArn to
4096
+ reference a role name starting with celigo-http-adaptor-."; on S3 "Invalid value for
4097
+ field \"_iClientId\": Your role ARN's name must begin with celigo-file-adaptor."; on
4098
+ Redshift "Invalid value for field \"_iClientId\": Your role ARN's name must begin with
4099
+ celigo-data-warehouse-adaptor.".
4002
4100
  examples:
4003
- - arn:aws:iam::123456789012:role/celigo-integration
4101
+ - arn:aws:iam::123456789012:role/celigo-http-adaptor-orders
4102
+ - arn:aws:iam::123456789012:role/celigo-file-adaptor-data-lake
4103
+ - arn:aws:iam::123456789012:role/celigo-data-warehouse-adaptor-analytics
4004
4104
  jwt:
4005
4105
  type: object
4006
4106
  description: |-
@@ -4115,6 +4215,15 @@ components:
4115
4215
  isSecretBase64Encoded:
4116
4216
  type: boolean
4117
4217
  description: When true, the `secret` value is Base64-encoded.
4218
+ if:
4219
+ properties:
4220
+ provider:
4221
+ const: awsIam
4222
+ required:
4223
+ - provider
4224
+ then:
4225
+ required:
4226
+ - awsIam
4118
4227
  ResourceResponse:
4119
4228
  type: object
4120
4229
  description: Response
@@ -4150,6 +4259,14 @@ components:
4150
4259
  description: Timestamp when the resource was last updated. Changes whenever any property is modified.
4151
4260
  x-celigo-ai-guidance:
4152
4261
  - Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
4262
+ - |-
4263
+ Records that something was written, not what — a settings edit, a flag flip, or a
4264
+ platform workflow all move it. What changed and when is in the audit log: the
4265
+ per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
4266
+ `resourceType` enum lists, or the account-wide
4267
+ `GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
4268
+ endpoint's enum accepts (users, environments, notifications among them). A type absent
4269
+ from both enums — jobs, connectors, templates — has only this timestamp.
4153
4270
  examples:
4154
4271
  - '2023-04-15T14:30:15Z'
4155
4272
  deletedAt:
@@ -4236,11 +4353,18 @@ components:
4236
4353
  description: |-
4237
4354
  iClient configuration. The shape varies by `provider` — each provider
4238
4355
  requires its own credential sub-object (`oauth2`, `netsuite`,
4239
- `salesforce`, `ebay`, `amazonmws`, `azureserviceprincipal`).
4356
+ `salesforce`, `ebay`, `amazonmws`, `azureserviceprincipal`,
4357
+ `googleserviceaccount`, `awsIam`).
4240
4358
  For `custom_oauth2`, credentials go in the `oauth2` sub-object.
4241
- Secrets (`clientSecret`, `privateKey`, etc.) are returned masked
4242
- as `"******"`. On update, re-send that masked value to keep the
4243
- existing secret; secrets are not preserved if omitted.
4359
+ Secrets (`clientSecret`, `privateKey`, and so on) come back masked
4360
+ as `"******"`. Re-send that mask on update to keep the stored
4361
+ secret; omitting it does not. Two providers differ. A Google
4362
+ service account: `serviceAccountJSON` is not returned, and every
4363
+ update must send the full key — the mask or an omission fails with
4364
+ 422 `invalid_json_key`. An Azure service principal: the stored
4365
+ `clientSecret` or `certificate` is kept when its field is omitted
4366
+ on update, and only a new value replaces it (`certificate` is never
4367
+ returned, not even masked).
4244
4368
  required:
4245
4369
  - provider
4246
4370
  allOf:
@@ -4299,6 +4423,13 @@ components:
4299
4423
  description: Display name of the dependent resource.
4300
4424
  examples:
4301
4425
  - Import Orders to NetSuite
4426
+ type:
4427
+ type: string
4428
+ description: |-
4429
+ Sub-type of the dependent resource when its collection distinguishes one, such as
4430
+ `stream` for a listener export. Only present for resource types that carry a `type`.
4431
+ examples:
4432
+ - stream
4302
4433
  paths:
4303
4434
  type: array
4304
4435
  description: |-
@@ -4422,9 +4553,9 @@ components:
4422
4553
  errors:
4423
4554
  - code: forbidden
4424
4555
  message: You do not have permission to access this resource.
4425
- 422-unprocessable-entity:
4556
+ 404-not-found:
4426
4557
  description: |
4427
- Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
4558
+ Not found. The requested resource does not exist or is not visible to the caller.
4428
4559
  content:
4429
4560
  application/json:
4430
4561
  schema:
@@ -4433,11 +4564,11 @@ components:
4433
4564
  default:
4434
4565
  value:
4435
4566
  errors:
4436
- - code: unprocessable_entity
4437
- message: The request could not be processed due to a semantic error.
4438
- 404-not-found:
4567
+ - code: not_found
4568
+ message: The requested resource was not found.
4569
+ 422-unprocessable-entity:
4439
4570
  description: |
4440
- Not found. The requested resource does not exist or is not visible to the caller.
4571
+ Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
4441
4572
  content:
4442
4573
  application/json:
4443
4574
  schema:
@@ -4446,7 +4577,7 @@ components:
4446
4577
  default:
4447
4578
  value:
4448
4579
  errors:
4449
- - code: not_found
4450
- message: The requested resource was not found.
4580
+ - code: unprocessable_entity
4581
+ message: The request could not be processed due to a semantic error.
4451
4582
  x-enable-proxy: true
4452
4583
  x-internal: false