@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.
- package/LICENSE +21 -0
- package/README.md +119 -0
- package/dist/account.yml +592 -0
- package/dist/agent.yml +908 -0
- package/dist/ai-agent.yml +5471 -0
- package/dist/api.yml +4140 -0
- package/dist/apim.yml +1286 -0
- package/dist/asynchelper.yml +3391 -0
- package/dist/audit.yml +2006 -0
- package/dist/connection.yml +8665 -0
- package/dist/connector.yml +1406 -0
- package/dist/ediprofile.yml +911 -0
- package/dist/editransaction.yml +1210 -0
- package/dist/enduser.yml +1724 -0
- package/dist/environment.yml +568 -0
- package/dist/eventreport.yml +692 -0
- package/dist/export.yml +17610 -0
- package/dist/filedefinition.yml +1396 -0
- package/dist/filestorage.yml +3102 -0
- package/dist/flow.yml +7928 -0
- package/dist/guardrail.yml +2763 -0
- package/dist/httpconnector.yml +2277 -0
- package/dist/httpconnectorendpoint.yml +722 -0
- package/dist/httpconnectorresource.yml +396 -0
- package/dist/iclient.yml +4452 -0
- package/dist/import.yml +15381 -0
- package/dist/integration.yml +4406 -0
- package/dist/job.yml +2014 -0
- package/dist/lookupcache.yml +1325 -0
- package/dist/marketplace.yml +685 -0
- package/dist/mcp-oauth-provider.yml +590 -0
- package/dist/mcp-server.yml +2656 -0
- package/dist/notification.yml +488 -0
- package/dist/processor.yml +1253 -0
- package/dist/profile.yml +455 -0
- package/dist/recyclebin.yml +768 -0
- package/dist/script.yml +1128 -0
- package/dist/stack.yml +1291 -0
- package/dist/state.yml +894 -0
- package/dist/subscription.yml +1405 -0
- package/dist/sync.yml +4857 -0
- package/dist/tag.yml +553 -0
- package/dist/template.yml +897 -0
- package/dist/tool.yml +33656 -0
- package/dist/tradingpartnerconnector.yml +1490 -0
- package/dist/user.yml +831 -0
- package/package.json +41 -0
- package/schemas.json +8420 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
openapi: 3.2.0
|
|
2
|
+
info:
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: HTTP Connector Resources
|
|
5
|
+
description: API for reading Celigo HTTP Connector Resources — logical API resource groupings within an HTTP Connector.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://api.integrator.io
|
|
8
|
+
description: Production (US / default region)
|
|
9
|
+
- url: https://api.eu.integrator.io
|
|
10
|
+
description: Production (EU region)
|
|
11
|
+
- url: https://api.au.integrator.io
|
|
12
|
+
description: Production (AU region)
|
|
13
|
+
- url: https://api.ca.integrator.io
|
|
14
|
+
description: Production (CA region)
|
|
15
|
+
security:
|
|
16
|
+
- bearerAuth: []
|
|
17
|
+
tags:
|
|
18
|
+
- name: HTTP Connector Resources
|
|
19
|
+
description: |-
|
|
20
|
+
API for reading HTTP Connector Resource objects in Celigo.
|
|
21
|
+
HTTP Connector Resources represent logical API resource groupings (e.g. "Account",
|
|
22
|
+
"Contact", "Order") within an HTTP Connector. Each resource is associated with one
|
|
23
|
+
or more connector versions and contains HTTP Connector Endpoints that define the
|
|
24
|
+
available operations.
|
|
25
|
+
|
|
26
|
+
These endpoints are **read-only** — creating, updating, and deleting HTTP Connector
|
|
27
|
+
Resources is only available through the Celigo UI (session authentication).
|
|
28
|
+
|
|
29
|
+
## HTTP connector resource schema
|
|
30
|
+
|
|
31
|
+
{% openapi-schemas spec="httpconnectorresource" schemas="HTTPConnectorResource" grouped="true" %}
|
|
32
|
+
paths:
|
|
33
|
+
/v1/httpconnectors/{_httpConnectorId}/httpconnectorresources:
|
|
34
|
+
get:
|
|
35
|
+
x-internal: false
|
|
36
|
+
operationId: listHttpConnectorResources
|
|
37
|
+
tags:
|
|
38
|
+
- HTTP Connector Resources
|
|
39
|
+
summary: List HTTP Connector Resources for a connector
|
|
40
|
+
description: |-
|
|
41
|
+
Returns all resources (logical API groupings) defined under the given
|
|
42
|
+
HTTP Connector.
|
|
43
|
+
|
|
44
|
+
The list response is abridged — it omits `published` and
|
|
45
|
+
`_httpConnectorId` compared to the detail endpoint. Use
|
|
46
|
+
`GET /v1/httpconnectors/{_httpConnectorId}/{_id}` for the full object.
|
|
47
|
+
|
|
48
|
+
Each resource's `_id` doubles as the `_httpConnectorResourceId` path
|
|
49
|
+
parameter used by the HTTP Connector Endpoints API.
|
|
50
|
+
parameters:
|
|
51
|
+
- name: limit
|
|
52
|
+
in: query
|
|
53
|
+
description: Maximum number of records to return per page.
|
|
54
|
+
schema:
|
|
55
|
+
type: integer
|
|
56
|
+
minimum: 1
|
|
57
|
+
examples:
|
|
58
|
+
- 100
|
|
59
|
+
- $ref: '#/components/parameters/After'
|
|
60
|
+
- in: path
|
|
61
|
+
name: _httpConnectorId
|
|
62
|
+
required: true
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
format: objectId
|
|
66
|
+
x-celigo-refModel: httpconnectors
|
|
67
|
+
examples:
|
|
68
|
+
- 63987132784a39b73aae63cd
|
|
69
|
+
description: HTTP Connector ID
|
|
70
|
+
responses:
|
|
71
|
+
'200':
|
|
72
|
+
description: Successfully retrieved list of HTTP Connector Resources
|
|
73
|
+
headers:
|
|
74
|
+
Link:
|
|
75
|
+
description: |-
|
|
76
|
+
RFC-5988 pagination links. When more pages remain, includes a `<...>; rel="next"` entry;
|
|
77
|
+
absent on the final page.
|
|
78
|
+
schema:
|
|
79
|
+
type: string
|
|
80
|
+
content:
|
|
81
|
+
application/json:
|
|
82
|
+
schema:
|
|
83
|
+
type: array
|
|
84
|
+
items:
|
|
85
|
+
$ref: '#/components/schemas/ListItem'
|
|
86
|
+
examples:
|
|
87
|
+
two_resources:
|
|
88
|
+
value:
|
|
89
|
+
- _id: 63987132784a39b73aae63e7
|
|
90
|
+
name: Answer
|
|
91
|
+
createdAt: '2023-01-17T09:51:53.665Z'
|
|
92
|
+
lastModified: '2024-05-23T07:00:31.350Z'
|
|
93
|
+
_versionIds:
|
|
94
|
+
- 63987132784a39b73aae63ce
|
|
95
|
+
- _id: 63987132784a39b73aae63e1
|
|
96
|
+
name: Attribute
|
|
97
|
+
createdAt: '2023-01-17T09:51:52.118Z'
|
|
98
|
+
lastModified: '2024-05-23T07:00:29.858Z'
|
|
99
|
+
_versionIds:
|
|
100
|
+
- 63987132784a39b73aae63ce
|
|
101
|
+
'204':
|
|
102
|
+
description: No resources exist for this connector
|
|
103
|
+
'401':
|
|
104
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
105
|
+
'404':
|
|
106
|
+
$ref: '#/components/responses/404-not-found'
|
|
107
|
+
/v1/httpconnectors/{_httpConnectorId}/{_id}:
|
|
108
|
+
get:
|
|
109
|
+
x-internal: false
|
|
110
|
+
operationId: getHttpConnectorResourceById
|
|
111
|
+
tags:
|
|
112
|
+
- HTTP Connector Resources
|
|
113
|
+
summary: Get an HTTP connector resource
|
|
114
|
+
description: |-
|
|
115
|
+
Retrieves a specific HTTP Connector Resource by its unique identifier.
|
|
116
|
+
|
|
117
|
+
The path uses a shortcut form: `/v1/httpconnectors/{_httpConnectorId}/{_id}`
|
|
118
|
+
where `{_id}` is the resource ID directly under the connector. The longer
|
|
119
|
+
form `/v1/httpconnectors/{_httpConnectorId}/httpconnectorresources/{_id}`
|
|
120
|
+
is not supported and fails with an `invalid_ref` error.
|
|
121
|
+
|
|
122
|
+
The detail response includes `published` and `_httpConnectorId` fields
|
|
123
|
+
that are omitted from the list endpoint.
|
|
124
|
+
parameters:
|
|
125
|
+
- in: path
|
|
126
|
+
name: _httpConnectorId
|
|
127
|
+
required: true
|
|
128
|
+
schema:
|
|
129
|
+
type: string
|
|
130
|
+
format: objectId
|
|
131
|
+
x-celigo-refModel: httpconnectors
|
|
132
|
+
examples:
|
|
133
|
+
- 63987132784a39b73aae63cd
|
|
134
|
+
description: HTTP Connector ID
|
|
135
|
+
- in: path
|
|
136
|
+
name: _id
|
|
137
|
+
required: true
|
|
138
|
+
schema:
|
|
139
|
+
type: string
|
|
140
|
+
format: objectId
|
|
141
|
+
x-celigo-refModel: httpconnectorresources
|
|
142
|
+
examples:
|
|
143
|
+
- 63987132784a39b73aae63e7
|
|
144
|
+
description: HTTP Connector Resource ID
|
|
145
|
+
responses:
|
|
146
|
+
'200':
|
|
147
|
+
description: HTTP Connector Resource retrieved successfully
|
|
148
|
+
content:
|
|
149
|
+
application/json:
|
|
150
|
+
schema:
|
|
151
|
+
$ref: '#/components/schemas/HTTPConnectorResource'
|
|
152
|
+
examples:
|
|
153
|
+
detail:
|
|
154
|
+
value:
|
|
155
|
+
_id: 63987132784a39b73aae63e7
|
|
156
|
+
name: Answer
|
|
157
|
+
createdAt: '2023-01-17T09:51:53.665Z'
|
|
158
|
+
lastModified: '2024-05-23T07:00:31.350Z'
|
|
159
|
+
published: true
|
|
160
|
+
_httpConnectorId: 63987132784a39b73aae63cd
|
|
161
|
+
_versionIds:
|
|
162
|
+
- 63987132784a39b73aae63ce
|
|
163
|
+
'400':
|
|
164
|
+
description: Invalid resource ID
|
|
165
|
+
content:
|
|
166
|
+
application/json:
|
|
167
|
+
schema:
|
|
168
|
+
$ref: '#/components/schemas/Error'
|
|
169
|
+
examples:
|
|
170
|
+
invalid_ref:
|
|
171
|
+
value:
|
|
172
|
+
errors:
|
|
173
|
+
- code: invalid_ref
|
|
174
|
+
message: Please provide a valid _httpConnectorResourceId.
|
|
175
|
+
'401':
|
|
176
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
177
|
+
'404':
|
|
178
|
+
description: |-
|
|
179
|
+
Resource not found or not published. Also returned when the
|
|
180
|
+
`_httpConnectorId` is valid but the resource ID doesn't belong to it.
|
|
181
|
+
content:
|
|
182
|
+
application/json:
|
|
183
|
+
schema:
|
|
184
|
+
$ref: '#/components/schemas/Error'
|
|
185
|
+
examples:
|
|
186
|
+
not_found:
|
|
187
|
+
value:
|
|
188
|
+
errors:
|
|
189
|
+
- code: invalid_ref
|
|
190
|
+
message: httpConnectorResource not found or not published.
|
|
191
|
+
components:
|
|
192
|
+
securitySchemes:
|
|
193
|
+
bearerAuth:
|
|
194
|
+
type: http
|
|
195
|
+
scheme: bearer
|
|
196
|
+
parameters:
|
|
197
|
+
After:
|
|
198
|
+
name: after
|
|
199
|
+
in: query
|
|
200
|
+
required: false
|
|
201
|
+
description: |-
|
|
202
|
+
Opaque cursor for forward pagination. Pass the value from the `Link`
|
|
203
|
+
response header (`rel="next"`) to fetch the next page.
|
|
204
|
+
schema:
|
|
205
|
+
type: string
|
|
206
|
+
schemas:
|
|
207
|
+
ListItem:
|
|
208
|
+
type: object
|
|
209
|
+
description: |-
|
|
210
|
+
Abridged HTTP Connector Resource as returned in list responses. Omits
|
|
211
|
+
`published` and `_httpConnectorId` compared to the detail response.
|
|
212
|
+
properties:
|
|
213
|
+
_id:
|
|
214
|
+
type: string
|
|
215
|
+
format: objectId
|
|
216
|
+
description: Unique identifier
|
|
217
|
+
readOnly: true
|
|
218
|
+
x-celigo-refModel: httpconnectorresources
|
|
219
|
+
examples:
|
|
220
|
+
- 63987132784a39b73aae63e7
|
|
221
|
+
name:
|
|
222
|
+
type: string
|
|
223
|
+
description: Resource name
|
|
224
|
+
examples:
|
|
225
|
+
- Account
|
|
226
|
+
_versionIds:
|
|
227
|
+
type: array
|
|
228
|
+
description: Connector version IDs this resource belongs to
|
|
229
|
+
items:
|
|
230
|
+
type: string
|
|
231
|
+
format: objectId
|
|
232
|
+
examples:
|
|
233
|
+
- 63987132784a39b73aae63ce
|
|
234
|
+
createdAt:
|
|
235
|
+
type: string
|
|
236
|
+
format: date-time
|
|
237
|
+
readOnly: true
|
|
238
|
+
description: Timestamp when created
|
|
239
|
+
examples:
|
|
240
|
+
- '2023-01-17T09:51:53.665Z'
|
|
241
|
+
lastModified:
|
|
242
|
+
type: string
|
|
243
|
+
format: date-time
|
|
244
|
+
readOnly: true
|
|
245
|
+
description: Timestamp when last modified
|
|
246
|
+
examples:
|
|
247
|
+
- '2024-05-23T07:00:29.858Z'
|
|
248
|
+
Error:
|
|
249
|
+
type: object
|
|
250
|
+
description: Standard error response envelope returned by integrator.io APIs.
|
|
251
|
+
properties:
|
|
252
|
+
errors:
|
|
253
|
+
type: array
|
|
254
|
+
description: List of errors that occurred while processing the request.
|
|
255
|
+
items:
|
|
256
|
+
type: object
|
|
257
|
+
properties:
|
|
258
|
+
code:
|
|
259
|
+
oneOf:
|
|
260
|
+
- type: string
|
|
261
|
+
- type: integer
|
|
262
|
+
description: |-
|
|
263
|
+
Machine-readable error code. Usually a string like
|
|
264
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
265
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
266
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
267
|
+
and adaptor-proxy responses.
|
|
268
|
+
message:
|
|
269
|
+
type: string
|
|
270
|
+
description: Human-readable description of the error.
|
|
271
|
+
field:
|
|
272
|
+
type: string
|
|
273
|
+
description: |-
|
|
274
|
+
Optional pointer to the document field that caused the error.
|
|
275
|
+
Used by structural validation errors (`missing_required_field`,
|
|
276
|
+
`invalid_ref`) to indicate which field is at fault
|
|
277
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
278
|
+
source:
|
|
279
|
+
type: string
|
|
280
|
+
description: |-
|
|
281
|
+
Optional origin layer for the error — e.g. `application` when
|
|
282
|
+
the error came from the remote system the adaptor called,
|
|
283
|
+
`connector` when the adaptor itself rejected the request.
|
|
284
|
+
required:
|
|
285
|
+
- message
|
|
286
|
+
required:
|
|
287
|
+
- errors
|
|
288
|
+
HTTPConnectorResource:
|
|
289
|
+
type: object
|
|
290
|
+
required:
|
|
291
|
+
- _id
|
|
292
|
+
- _httpConnectorId
|
|
293
|
+
- name
|
|
294
|
+
- published
|
|
295
|
+
- createdAt
|
|
296
|
+
- lastModified
|
|
297
|
+
description: HTTP Connector Resource object as returned by the API
|
|
298
|
+
properties:
|
|
299
|
+
_id:
|
|
300
|
+
type: string
|
|
301
|
+
format: objectId
|
|
302
|
+
description: Unique identifier for the HTTP Connector Resource
|
|
303
|
+
readOnly: true
|
|
304
|
+
x-celigo-refModel: httpconnectorresources
|
|
305
|
+
examples:
|
|
306
|
+
- 63987132784a39b73aae63e7
|
|
307
|
+
name:
|
|
308
|
+
type: string
|
|
309
|
+
description: Human-readable name for this resource (e.g. "Account", "Contact", "Order")
|
|
310
|
+
examples:
|
|
311
|
+
- Account
|
|
312
|
+
published:
|
|
313
|
+
type: boolean
|
|
314
|
+
description: When true, this resource is published and visible to users.
|
|
315
|
+
_httpConnectorId:
|
|
316
|
+
type: string
|
|
317
|
+
format: objectId
|
|
318
|
+
description: |-
|
|
319
|
+
Parent HTTP Connector ID. Only present in the detail (by-ID) response,
|
|
320
|
+
omitted from list responses.
|
|
321
|
+
readOnly: true
|
|
322
|
+
x-celigo-refModel: httpconnectors
|
|
323
|
+
examples:
|
|
324
|
+
- 63987132784a39b73aae63cd
|
|
325
|
+
_versionIds:
|
|
326
|
+
type: array
|
|
327
|
+
description: Connector version IDs this resource belongs to
|
|
328
|
+
items:
|
|
329
|
+
type: string
|
|
330
|
+
format: objectId
|
|
331
|
+
examples:
|
|
332
|
+
- 63987132784a39b73aae63ce
|
|
333
|
+
createdAt:
|
|
334
|
+
type: string
|
|
335
|
+
format: date-time
|
|
336
|
+
description: Timestamp when created
|
|
337
|
+
readOnly: true
|
|
338
|
+
examples:
|
|
339
|
+
- '2023-01-17T09:51:53.665Z'
|
|
340
|
+
lastModified:
|
|
341
|
+
type: string
|
|
342
|
+
format: date-time
|
|
343
|
+
description: Timestamp when last modified
|
|
344
|
+
readOnly: true
|
|
345
|
+
examples:
|
|
346
|
+
- '2024-05-23T07:00:31.350Z'
|
|
347
|
+
responses:
|
|
348
|
+
401-unauthorized:
|
|
349
|
+
description: |-
|
|
350
|
+
Unauthorized. The request lacks a valid bearer token, or the provided token
|
|
351
|
+
failed to authenticate.
|
|
352
|
+
|
|
353
|
+
Note: the 401 response is produced by the auth middleware **before** the
|
|
354
|
+
request reaches the endpoint handler, so it does **not** follow the
|
|
355
|
+
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
356
|
+
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
357
|
+
handling 401s should key off the HTTP status and the `message` string,
|
|
358
|
+
not try to destructure an `errors[]`.
|
|
359
|
+
content:
|
|
360
|
+
application/json:
|
|
361
|
+
schema:
|
|
362
|
+
type: object
|
|
363
|
+
properties:
|
|
364
|
+
message:
|
|
365
|
+
type: string
|
|
366
|
+
description: |-
|
|
367
|
+
Human-readable description of the auth failure. Known values:
|
|
368
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
369
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
370
|
+
is invalid, revoked, or expired.
|
|
371
|
+
required:
|
|
372
|
+
- message
|
|
373
|
+
examples:
|
|
374
|
+
missing_token:
|
|
375
|
+
summary: No Authorization header sent
|
|
376
|
+
value:
|
|
377
|
+
message: Unauthorized
|
|
378
|
+
invalid_token:
|
|
379
|
+
summary: Bearer token invalid or revoked
|
|
380
|
+
value:
|
|
381
|
+
message: Bearer Authentication Failed
|
|
382
|
+
404-not-found:
|
|
383
|
+
description: |
|
|
384
|
+
Not found. The requested resource does not exist or is not visible to the caller.
|
|
385
|
+
content:
|
|
386
|
+
application/json:
|
|
387
|
+
schema:
|
|
388
|
+
$ref: '#/components/schemas/Error'
|
|
389
|
+
examples:
|
|
390
|
+
default:
|
|
391
|
+
value:
|
|
392
|
+
errors:
|
|
393
|
+
- code: not_found
|
|
394
|
+
message: The requested resource was not found.
|
|
395
|
+
x-enable-proxy: true
|
|
396
|
+
x-internal: false
|