@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.
Files changed (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -0
  3. package/dist/account.yml +592 -0
  4. package/dist/agent.yml +908 -0
  5. package/dist/ai-agent.yml +5471 -0
  6. package/dist/api.yml +4140 -0
  7. package/dist/apim.yml +1286 -0
  8. package/dist/asynchelper.yml +3391 -0
  9. package/dist/audit.yml +2006 -0
  10. package/dist/connection.yml +8665 -0
  11. package/dist/connector.yml +1406 -0
  12. package/dist/ediprofile.yml +911 -0
  13. package/dist/editransaction.yml +1210 -0
  14. package/dist/enduser.yml +1724 -0
  15. package/dist/environment.yml +568 -0
  16. package/dist/eventreport.yml +692 -0
  17. package/dist/export.yml +17610 -0
  18. package/dist/filedefinition.yml +1396 -0
  19. package/dist/filestorage.yml +3102 -0
  20. package/dist/flow.yml +7928 -0
  21. package/dist/guardrail.yml +2763 -0
  22. package/dist/httpconnector.yml +2277 -0
  23. package/dist/httpconnectorendpoint.yml +722 -0
  24. package/dist/httpconnectorresource.yml +396 -0
  25. package/dist/iclient.yml +4452 -0
  26. package/dist/import.yml +15381 -0
  27. package/dist/integration.yml +4406 -0
  28. package/dist/job.yml +2014 -0
  29. package/dist/lookupcache.yml +1325 -0
  30. package/dist/marketplace.yml +685 -0
  31. package/dist/mcp-oauth-provider.yml +590 -0
  32. package/dist/mcp-server.yml +2656 -0
  33. package/dist/notification.yml +488 -0
  34. package/dist/processor.yml +1253 -0
  35. package/dist/profile.yml +455 -0
  36. package/dist/recyclebin.yml +768 -0
  37. package/dist/script.yml +1128 -0
  38. package/dist/stack.yml +1291 -0
  39. package/dist/state.yml +894 -0
  40. package/dist/subscription.yml +1405 -0
  41. package/dist/sync.yml +4857 -0
  42. package/dist/tag.yml +553 -0
  43. package/dist/template.yml +897 -0
  44. package/dist/tool.yml +33656 -0
  45. package/dist/tradingpartnerconnector.yml +1490 -0
  46. package/dist/user.yml +831 -0
  47. package/package.json +41 -0
  48. package/schemas.json +8420 -0
@@ -0,0 +1,455 @@
1
+ openapi: 3.2.0
2
+ info:
3
+ version: 1.0.0
4
+ title: Profile
5
+ description: Read and update the currently-authenticated user's profile, including display name, email, timezone, and notification preferences.
6
+ x-celigo-ai-guidance:
7
+ - API for reading and updating the currently-authenticated user's profile (`/api/profile`).
8
+ servers:
9
+ - url: https://api.integrator.io
10
+ description: Production (US / default region)
11
+ - url: https://api.eu.integrator.io
12
+ description: Production (EU region)
13
+ - url: https://api.au.integrator.io
14
+ description: Production (AU region)
15
+ - url: https://api.ca.integrator.io
16
+ description: Production (CA region)
17
+ security:
18
+ - bearerAuth: []
19
+ tags:
20
+ - name: Profile
21
+ description: |-
22
+ Read and update the currently-authenticated user's profile, including
23
+ display name, email, timezone, and notification preferences.
24
+
25
+ ## Preferences schema
26
+
27
+ {% openapi-schemas spec="profile" schemas="Preferences" grouped="true" %}
28
+ paths:
29
+ /v1/preferences:
30
+ get:
31
+ x-internal: false
32
+ summary: Get current user preferences
33
+ operationId: getPreferences
34
+ tags:
35
+ - Profile
36
+ description: |-
37
+ Returns UI and account/environment preferences for the currently-authenticated user.
38
+
39
+ Examples include:
40
+ - date/time display formatting (`dateFormat`, `timeFormat`)
41
+ - current environment selection (`environment`)
42
+ - UI layout preferences (dashboard/pagination/drawer settings)
43
+ responses:
44
+ '200':
45
+ description: Preferences object
46
+ content:
47
+ application/json:
48
+ schema:
49
+ $ref: '#/components/schemas/Preferences'
50
+ examples:
51
+ default:
52
+ value:
53
+ environment: production
54
+ defaultAShareId: own
55
+ defaultEnvId: 60a2c4e6f321d800129a1a3c
56
+ dateFormat: MM/DD/YYYY
57
+ timeFormat: h:mm:ss A
58
+ colorTheme: system
59
+ showRelativeDateTime: false
60
+ drawerOpened: true
61
+ enableAIChatbot: true
62
+ sampleIntegrationRequired: false
63
+ scheduleShiftForFlowsCreatedAfter: '2024-06-13T11:39:15.778Z'
64
+ lastLoginAt: '2026-05-14T18:22:10.000Z'
65
+ featureFlags:
66
+ enableLookupCache: true
67
+ enableSizeBasedAggregation: false
68
+ '401':
69
+ $ref: '#/components/responses/401-unauthorized'
70
+ put:
71
+ x-internal: false
72
+ summary: Update current user preferences
73
+ operationId: updatePreferences
74
+ tags:
75
+ - Profile
76
+ description: |-
77
+ Updates user preferences for the currently-authenticated user.
78
+ Only include fields you intend to change.
79
+ x-celigo-ai-guidance:
80
+ - |-
81
+ AI guidance:
82
+ - Only include fields you intend to change.
83
+ - Prefer updating `dateFormat` / `timeFormat` here (not in `/api/profile`).
84
+ requestBody:
85
+ required: true
86
+ content:
87
+ application/json:
88
+ schema:
89
+ $ref: '#/components/schemas/Request'
90
+ examples:
91
+ change-theme:
92
+ summary: Switch to dark mode
93
+ value:
94
+ colorTheme: dark
95
+ change-date-format:
96
+ summary: Change date and time display
97
+ value:
98
+ dateFormat: YYYY-MM-DD
99
+ timeFormat: HH:mm:ss
100
+ showRelativeDateTime: false
101
+ responses:
102
+ '200':
103
+ description: Updated preferences object
104
+ content:
105
+ application/json:
106
+ schema:
107
+ $ref: '#/components/schemas/Preferences'
108
+ examples:
109
+ updated:
110
+ summary: Preferences after switching to dark mode
111
+ value:
112
+ environment: production
113
+ defaultAShareId: own
114
+ defaultEnvId: 60a2c4e6f321d800129a1a3c
115
+ dateFormat: MM/DD/YYYY
116
+ timeFormat: h:mm:ss A
117
+ colorTheme: dark
118
+ showRelativeDateTime: false
119
+ drawerOpened: true
120
+ enableAIChatbot: true
121
+ sampleIntegrationRequired: false
122
+ scheduleShiftForFlowsCreatedAfter: '2024-06-13T11:39:15.778Z'
123
+ lastLoginAt: '2026-05-14T18:22:10.000Z'
124
+ featureFlags:
125
+ enableLookupCache: true
126
+ enableSizeBasedAggregation: false
127
+ '204':
128
+ description: Preferences updated (no body returned).
129
+ '400':
130
+ $ref: '#/components/responses/400-bad-request'
131
+ '401':
132
+ $ref: '#/components/responses/401-unauthorized'
133
+ components:
134
+ securitySchemes:
135
+ bearerAuth:
136
+ type: http
137
+ scheme: bearer
138
+ schemas:
139
+ PreferencesBase:
140
+ type: object
141
+ description: Writable preference fields shared by the request and response schemas.
142
+ properties:
143
+ environment:
144
+ type: string
145
+ enum:
146
+ - production
147
+ - sandbox
148
+ x-enumDescriptions:
149
+ production: The production environment context.
150
+ sandbox: The sandbox (non-production) environment context.
151
+ description: The selected environment context for the user.
152
+ defaultAShareId:
153
+ type: string
154
+ examples:
155
+ - own
156
+ description: The selected account context for the user.
157
+ x-celigo-ai-guidance:
158
+ - |-
159
+ Common values:
160
+ - `own` for the user's own account
161
+ - an AShare/account-share id when working in a shared account
162
+ defaultEnvId:
163
+ type: string
164
+ format: objectId
165
+ examples:
166
+ - 60a2c4e6f321d800129a1a3c
167
+ description: Default environment id to use when applicable.
168
+ dateFormat:
169
+ type: string
170
+ description: |-
171
+ The user's preferred date display format used across the UI.
172
+
173
+ Choose one of the supported formats.
174
+ enum:
175
+ - MM/DD/YYYY
176
+ - DD/MM/YYYY
177
+ - DD-MMM-YYYY
178
+ - DD.MM.YYYY
179
+ - DD-MMMM-YYYY
180
+ - DD MMMM, YYYY
181
+ - YYYY/MM/DD
182
+ - YYYY-MM-DD
183
+ x-enumDescriptions:
184
+ MM/DD/YYYY: US format with slashes (e.g. 01/31/2026).
185
+ DD/MM/YYYY: European format with slashes (e.g. 31/01/2026).
186
+ DD-MMM-YYYY: Day with abbreviated month name (e.g. 31-Jan-2026).
187
+ DD.MM.YYYY: European format with dots (e.g. 31.01.2026).
188
+ DD-MMMM-YYYY: Day with full month name and dashes (e.g. 31-January-2026).
189
+ DD MMMM, YYYY: Day with full month name and comma (e.g. 31 January, 2026).
190
+ YYYY/MM/DD: ISO-style format with slashes (e.g. 2026/01/31).
191
+ YYYY-MM-DD: ISO 8601 format with dashes (e.g. 2026-01-31).
192
+ timeFormat:
193
+ type: string
194
+ description: The user's preferred time display format used across the UI.
195
+ enum:
196
+ - h:mm:ss A
197
+ - HH:mm:ss
198
+ x-enumDescriptions:
199
+ h:mm:ss A: 12-hour time with AM/PM suffix (e.g. 2:30:00 PM).
200
+ HH:mm:ss: 24-hour time (e.g. 14:30:00).
201
+ showRelativeDateTime:
202
+ type: boolean
203
+ description: Whether timestamps should be displayed as relative time (e.g., "5 minutes ago") instead of absolute date/time.
204
+ colorTheme:
205
+ type: string
206
+ description: UI theme preference.
207
+ enum:
208
+ - system
209
+ - light
210
+ - dark
211
+ x-enumDescriptions:
212
+ system: Follow the operating system's theme preference.
213
+ light: Force the light UI theme.
214
+ dark: Force the dark UI theme.
215
+ scheduleShiftForFlowsCreatedAfter:
216
+ type: string
217
+ format: date-time
218
+ examples:
219
+ - '2024-06-13T11:39:15.778Z'
220
+ description: Threshold timestamp used by scheduling logic for certain flows (UI/system preference).
221
+ recentActivity:
222
+ type: object
223
+ description: Recently accessed resources, typically keyed by environment.
224
+ dashboard:
225
+ type: object
226
+ description: Dashboard UI preferences (filters, tile order, view mode).
227
+ properties:
228
+ view:
229
+ type: string
230
+ description: Dashboard view mode.
231
+ enum:
232
+ - tile
233
+ - list
234
+ x-enumDescriptions:
235
+ tile: Display dashboard integrations as visual tiles.
236
+ list: Display dashboard integrations as a compact list.
237
+ filters:
238
+ type: object
239
+ description: Dashboard filter settings.
240
+ tilesOrder:
241
+ type: array
242
+ description: Ordered list of dashboard tile ids.
243
+ items:
244
+ type: string
245
+ pagination:
246
+ type: object
247
+ description: Per-resource pagination settings (e.g., pageSize).
248
+ drawerOpened:
249
+ type: boolean
250
+ description: When true, the main UI drawer/left nav is open.
251
+ expand:
252
+ type:
253
+ - string
254
+ - 'null'
255
+ examples:
256
+ - resources
257
+ description: UI section name last expanded/opened (UI state).
258
+ fbBottomDrawerHeight:
259
+ type: integer
260
+ examples:
261
+ - 240
262
+ description: Flow Builder bottom drawer height in pixels (UI state).
263
+ enableAIChatbot:
264
+ type: boolean
265
+ description: When true, AI chat features are enabled in the UI for this user.
266
+ enableBeginnerGuide:
267
+ type: boolean
268
+ description: When true, the beginner guide UI is enabled for this user.
269
+ showIconView:
270
+ type: boolean
271
+ description: When true, Flow Builder icon view is enabled for this user.
272
+ allowPostmanCollectionUpload:
273
+ type: boolean
274
+ description: When true, Postman collection upload UI is enabled for this user.
275
+ helpContent:
276
+ type: object
277
+ description: UI help content preferences/state.
278
+ sampleIntegrationRequired:
279
+ type: boolean
280
+ description: When true, the sample-integration walkthrough is still required for the user.
281
+ hideGettingStarted:
282
+ type: boolean
283
+ description: When true, the Getting Started banner is hidden.
284
+ isLeftNavExpanded:
285
+ type: boolean
286
+ description: When true, the left navigation sidebar is expanded.
287
+ isNewGenFlowEnabled:
288
+ type: boolean
289
+ description: When true, the next-generation Flow Builder UI is enabled for the user.
290
+ useClickHouseForJobs:
291
+ type: boolean
292
+ description: When true, the account uses ClickHouse-backed job queries.
293
+ featureFlags:
294
+ type: object
295
+ description: UI/feature flag overrides for the user (if present).
296
+ Preferences:
297
+ type: object
298
+ description: Complete preferences object as returned by `GET /v1/preferences`.
299
+ allOf:
300
+ - $ref: '#/components/schemas/PreferencesBase'
301
+ - type: object
302
+ properties:
303
+ lastLoginAt:
304
+ type: string
305
+ format: date-time
306
+ readOnly: true
307
+ examples:
308
+ - '2026-05-14T18:22:10.000Z'
309
+ description: Last login timestamp recorded for the user (if present).
310
+ showReactSneakPeekFromDate:
311
+ type: string
312
+ format: date
313
+ readOnly: true
314
+ examples:
315
+ - '2025-09-01'
316
+ description: Legacy feature-rollout date marker (UI state).
317
+ x-celigo-ai-guidance:
318
+ - Feature rollout date marker used by the UI (if present).
319
+ showReactBetaFromDate:
320
+ type: string
321
+ format: date
322
+ readOnly: true
323
+ examples:
324
+ - '2025-11-15'
325
+ description: Legacy feature-rollout date marker (UI state).
326
+ x-celigo-ai-guidance:
327
+ - Feature rollout date marker used by the UI (if present).
328
+ oldDefaultAShareId:
329
+ type: string
330
+ readOnly: true
331
+ examples:
332
+ - own
333
+ description: Previous default account-share ID, retained after switching accounts.
334
+ resourceDrawerPanelSizes:
335
+ type: object
336
+ readOnly: true
337
+ description: Persisted panel-size state for the resource drawer (UI layout).
338
+ properties:
339
+ left:
340
+ type: number
341
+ examples:
342
+ - 320
343
+ description: Persisted size of the resource drawer's left panel.
344
+ right:
345
+ type: number
346
+ examples:
347
+ - 480
348
+ description: Persisted size of the resource drawer's right panel.
349
+ accounts:
350
+ type: object
351
+ readOnly: true
352
+ description: Per-account UI state keyed by account ID.
353
+ Request:
354
+ type: object
355
+ description: |-
356
+ Fields that can be sent when updating the current user's preferences
357
+ via `PUT /v1/preferences`. Send a partial object with only the
358
+ fields you want to change.
359
+ x-celigo-ai-guidance:
360
+ - |-
361
+ AI guidance:
362
+ - Send a partial object with only the fields you want to change.
363
+ - Use this endpoint (not `/api/profile`) to change `dateFormat` and `timeFormat`.
364
+ allOf:
365
+ - $ref: '#/components/schemas/PreferencesBase'
366
+ Error:
367
+ type: object
368
+ description: Standard error response envelope returned by integrator.io APIs.
369
+ properties:
370
+ errors:
371
+ type: array
372
+ description: List of errors that occurred while processing the request.
373
+ items:
374
+ type: object
375
+ properties:
376
+ code:
377
+ oneOf:
378
+ - type: string
379
+ - type: integer
380
+ description: |-
381
+ Machine-readable error code. Usually a string like
382
+ `invalid_ref`, `missing_required_field`, or `unauthorized`;
383
+ may be an **integer** when the error mirrors an upstream HTTP
384
+ status (e.g. `500`) — most commonly returned by connection-ping
385
+ and adaptor-proxy responses.
386
+ message:
387
+ type: string
388
+ description: Human-readable description of the error.
389
+ field:
390
+ type: string
391
+ description: |-
392
+ Optional pointer to the document field that caused the error.
393
+ Used by structural validation errors (`missing_required_field`,
394
+ `invalid_ref`) to indicate which field is at fault
395
+ (e.g. `_id`, `type`, `http.baseURI`).
396
+ source:
397
+ type: string
398
+ description: |-
399
+ Optional origin layer for the error — e.g. `application` when
400
+ the error came from the remote system the adaptor called,
401
+ `connector` when the adaptor itself rejected the request.
402
+ required:
403
+ - message
404
+ required:
405
+ - errors
406
+ responses:
407
+ 401-unauthorized:
408
+ description: |-
409
+ Unauthorized. The request lacks a valid bearer token, or the provided token
410
+ failed to authenticate.
411
+
412
+ Note: the 401 response is produced by the auth middleware **before** the
413
+ request reaches the endpoint handler, so it does **not** follow the
414
+ standard `{errors: [...]}` envelope. Instead the body is a bare
415
+ `{message: string}` object with no `code`, no `errors` array. Callers
416
+ handling 401s should key off the HTTP status and the `message` string,
417
+ not try to destructure an `errors[]`.
418
+ content:
419
+ application/json:
420
+ schema:
421
+ type: object
422
+ properties:
423
+ message:
424
+ type: string
425
+ description: |-
426
+ Human-readable description of the auth failure. Known values:
427
+ - `"Unauthorized"` — no `Authorization` header on the request.
428
+ - `"Bearer Authentication Failed"` — header present but token
429
+ is invalid, revoked, or expired.
430
+ required:
431
+ - message
432
+ examples:
433
+ missing_token:
434
+ summary: No Authorization header sent
435
+ value:
436
+ message: Unauthorized
437
+ invalid_token:
438
+ summary: Bearer token invalid or revoked
439
+ value:
440
+ message: Bearer Authentication Failed
441
+ 400-bad-request:
442
+ description: |
443
+ Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
444
+ content:
445
+ application/json:
446
+ schema:
447
+ $ref: '#/components/schemas/Error'
448
+ examples:
449
+ default:
450
+ value:
451
+ errors:
452
+ - code: invalid_request
453
+ message: The request body failed validation.
454
+ x-enable-proxy: true
455
+ x-internal: false