@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,592 @@
1
+ openapi: 3.2.0
2
+ info:
3
+ version: 1.0.0
4
+ title: Account
5
+ description: API for account-scoped discovery — resolve the current token, list connected applications, and manage shared accounts and stacks.
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: Account
19
+ description: |-
20
+ Endpoints for discovering what the current account has access to.
21
+
22
+ Resolve a bearer token to a user, list the external applications connected
23
+ to the account, and manage shared accounts and stacks.
24
+
25
+ ## Shared account and stack share schemas
26
+
27
+ {% openapi-schemas spec="account" schemas="SharedAccount,StackShare" grouped="true" %}
28
+ paths:
29
+ /v1/tokenInfo:
30
+ get:
31
+ x-internal: false
32
+ operationId: getTokenInfo
33
+ tags:
34
+ - Account
35
+ summary: Identify the current token's owner
36
+ description: Resolves a bearer token to the user it authenticates as.
37
+ responses:
38
+ '200':
39
+ description: Token identity.
40
+ content:
41
+ application/json:
42
+ schema:
43
+ type: object
44
+ properties:
45
+ _userId:
46
+ type: string
47
+ format: objectId
48
+ x-celigo-refModel: users
49
+ examples:
50
+ - 5e58483b68b52e5827d56a86
51
+ description: User this token authenticates as.
52
+ examples:
53
+ default:
54
+ value:
55
+ _userId: 5e58483b68b52e5827d56a86
56
+ '401':
57
+ $ref: '#/components/responses/401-unauthorized'
58
+ /v1/applications:
59
+ get:
60
+ x-internal: false
61
+ operationId: listAccountApplications
62
+ tags:
63
+ - Account
64
+ summary: List applications in use
65
+ description: |-
66
+ Returns every external application that has at least one connection
67
+ in the account, grouped with summaries of those connections.
68
+ responses:
69
+ '200':
70
+ description: Applications in use, each with its connection references.
71
+ content:
72
+ application/json:
73
+ schema:
74
+ $ref: '#/components/schemas/ApplicationsResponse'
75
+ examples:
76
+ default:
77
+ value:
78
+ applications:
79
+ - _id: netsuite
80
+ refs:
81
+ connections:
82
+ - _id: 61f92026dd053843b5d72350
83
+ createdAt: '2022-01-31T17:05:42.000Z'
84
+ - _id: shopify
85
+ refs:
86
+ connections:
87
+ - _id: 62a80ef9ea2474232730eede
88
+ createdAt: '2022-06-13T21:44:41.000Z'
89
+ - _id: 3mftp_tp
90
+ refs:
91
+ connections:
92
+ - _id: 68efa98330271865e67477de
93
+ createdAt: '2025-10-15T14:02:43.371Z'
94
+ '401':
95
+ $ref: '#/components/responses/401-unauthorized'
96
+ /v1/shared/ashares:
97
+ get:
98
+ x-internal: false
99
+ operationId: listSharedAccounts
100
+ tags:
101
+ - Account
102
+ summary: List accounts shared with you
103
+ description: |-
104
+ Returns every account that other users have shared with the current
105
+ user. This is the inverse of `GET /v1/ashares`, which lists users
106
+ who have access to *your* account.
107
+ responses:
108
+ '200':
109
+ description: Array of shared-account entries.
110
+ content:
111
+ application/json:
112
+ schema:
113
+ type: array
114
+ items:
115
+ $ref: '#/components/schemas/SharedAccount'
116
+ examples:
117
+ default:
118
+ value:
119
+ - _id: 612345abcdef6789012345ab
120
+ accepted: true
121
+ accessLevel: administrator
122
+ integrationAccessLevel: []
123
+ ownerUser:
124
+ _id: 5ab979f5038e555b2a95c385
125
+ name: Account Owner
126
+ email: owner@example.com
127
+ lastModified: '2025-11-15T12:00:00.000Z'
128
+ createdAt: '2025-11-15T12:00:00.000Z'
129
+ - _id: 71a234bcdef5678901234567
130
+ accepted: true
131
+ accessLevel: monitor
132
+ integrationAccessLevel:
133
+ - _integrationId: 60f1a2b3c4d5e6f7a8b9c0d1
134
+ accessLevel: manage
135
+ ownerUser:
136
+ _id: 62b456e7890abcdef1234567
137
+ name: Partner Admin
138
+ email: partner@example.com
139
+ lastModified: '2026-02-10T08:30:00.000Z'
140
+ createdAt: '2026-01-05T14:00:00.000Z'
141
+ '204':
142
+ description: No accounts are shared with the current user.
143
+ '401':
144
+ $ref: '#/components/responses/401-unauthorized'
145
+ /v1/shared/sshares:
146
+ get:
147
+ x-internal: false
148
+ operationId: listSharedStacks
149
+ tags:
150
+ - Account
151
+ summary: List stack share invitations
152
+ description: |-
153
+ Returns stack-share records for the current user, including share
154
+ status, the user who shared, and a stack summary. To list usable
155
+ stacks directly, use `GET /v1/shared/stacks`.
156
+ responses:
157
+ '200':
158
+ description: Array of stack share entries.
159
+ content:
160
+ application/json:
161
+ schema:
162
+ type: array
163
+ items:
164
+ $ref: '#/components/schemas/StackShare'
165
+ examples:
166
+ default:
167
+ value:
168
+ - _id: 69f53622861a268851c836d0
169
+ accepted: true
170
+ ownerUser:
171
+ _id: 69790a36cf9d563e23345f49
172
+ email: partner@example.com
173
+ name: Partner User
174
+ stack:
175
+ _id: 69f536192e7966f4032f2299
176
+ name: sample
177
+ type: server
178
+ '204':
179
+ description: No stacks are shared with the current user.
180
+ '401':
181
+ $ref: '#/components/responses/401-unauthorized'
182
+ /v1/shared/stacks:
183
+ get:
184
+ x-internal: false
185
+ operationId: listSharedStackResources
186
+ tags:
187
+ - Account
188
+ summary: List available stacks
189
+ description: |-
190
+ Returns every stack the current account can use — both owned and
191
+ accepted shared stacks. For share metadata (who shared, acceptance
192
+ status), use `GET /v1/shared/sshares`.
193
+ responses:
194
+ '200':
195
+ description: Array of stacks (may be empty).
196
+ content:
197
+ application/json:
198
+ schema:
199
+ type: array
200
+ items:
201
+ $ref: '#/components/schemas/Stack'
202
+ examples:
203
+ oneStack:
204
+ summary: One stack available
205
+ value:
206
+ - _id: 69f536192e7966f4032f2299
207
+ name: Production On-Prem Agent
208
+ type: server
209
+ server:
210
+ hostURI: https://agent.example.com:7020
211
+ systemToken: '********'
212
+ ipRanges:
213
+ - 10.0.0.0/8
214
+ empty:
215
+ summary: No stacks available
216
+ value: []
217
+ '401':
218
+ $ref: '#/components/responses/401-unauthorized'
219
+ components:
220
+ securitySchemes:
221
+ bearerAuth:
222
+ type: http
223
+ scheme: bearer
224
+ responses:
225
+ 401-unauthorized:
226
+ description: |-
227
+ Unauthorized. The request lacks a valid bearer token, or the provided token
228
+ failed to authenticate.
229
+
230
+ Note: the 401 response is produced by the auth middleware **before** the
231
+ request reaches the endpoint handler, so it does **not** follow the
232
+ standard `{errors: [...]}` envelope. Instead the body is a bare
233
+ `{message: string}` object with no `code`, no `errors` array. Callers
234
+ handling 401s should key off the HTTP status and the `message` string,
235
+ not try to destructure an `errors[]`.
236
+ content:
237
+ application/json:
238
+ schema:
239
+ type: object
240
+ properties:
241
+ message:
242
+ type: string
243
+ description: |-
244
+ Human-readable description of the auth failure. Known values:
245
+ - `"Unauthorized"` — no `Authorization` header on the request.
246
+ - `"Bearer Authentication Failed"` — header present but token
247
+ is invalid, revoked, or expired.
248
+ required:
249
+ - message
250
+ examples:
251
+ missing_token:
252
+ summary: No Authorization header sent
253
+ value:
254
+ message: Unauthorized
255
+ invalid_token:
256
+ summary: Bearer token invalid or revoked
257
+ value:
258
+ message: Bearer Authentication Failed
259
+ schemas:
260
+ ApplicationUsage:
261
+ type: object
262
+ description: An application and its connections in this account.
263
+ properties:
264
+ _id:
265
+ type: string
266
+ examples:
267
+ - netsuite
268
+ description: |-
269
+ Application identifier — a well-known slug like `netsuite` or `shopify`,
270
+ a trading-partner code like `3mftp_tp`, or an HTTP-connector ID.
271
+ refs:
272
+ type: object
273
+ description: Resources tied to this application.
274
+ properties:
275
+ connections:
276
+ type: array
277
+ description: Connection summaries. Fetch `GET /v1/connections/{_id}` for full details.
278
+ items:
279
+ type: object
280
+ properties:
281
+ _id:
282
+ type: string
283
+ format: objectId
284
+ x-celigo-refModel: connections
285
+ examples:
286
+ - 61f92026dd053843b5d72350
287
+ description: Connection identifier.
288
+ createdAt:
289
+ type: string
290
+ format: date-time
291
+ examples:
292
+ - '2022-01-31T17:05:42.000Z'
293
+ description: Timestamp when the connection was created.
294
+ ApplicationsResponse:
295
+ type: object
296
+ description: List of external applications that have at least one connection in the account.
297
+ properties:
298
+ applications:
299
+ type: array
300
+ description: Applications in use, sorted alphabetically by `_id`.
301
+ items:
302
+ $ref: '#/components/schemas/ApplicationUsage'
303
+ SharedAccount:
304
+ type: object
305
+ description: |-
306
+ A share record granting the current user access to another user's account.
307
+ This is the inverse of `GET /v1/ashares`: here the current user is the
308
+ recipient, and `ownerUser` is who shared.
309
+ properties:
310
+ _id:
311
+ type: string
312
+ format: objectId
313
+ examples:
314
+ - 612345abcdef6789012345ab
315
+ description: Unique identifier for this share record, not a user or account ID.
316
+ accepted:
317
+ type: boolean
318
+ description: |-
319
+ When true, the current user has accepted the invitation.
320
+ Unaccepted shares appear in the list but cannot be acted on.
321
+ accessLevel:
322
+ type: string
323
+ description: |-
324
+ Account-wide permission level. Mutually exclusive with
325
+ `integrationAccessLevel` when set to `administrator` or `manage`.
326
+ When set to `monitor`, per-integration overrides may elevate
327
+ specific integrations to `manage`. Absent when the user has
328
+ only per-integration access.
329
+ enum:
330
+ - administrator
331
+ - manage
332
+ - monitor
333
+ x-enumDescriptions:
334
+ administrator: Full administration including user management and account settings
335
+ manage: Create and edit integrations and resources, but not account settings or users
336
+ monitor: Read-only view of integrations, flows, and errors
337
+ integrationAccessLevel:
338
+ type: array
339
+ description: |-
340
+ Per-integration access grants. Ignored when `accessLevel` is
341
+ `administrator` or `manage`. When `accessLevel` is `monitor`,
342
+ elevates specific integrations to `manage`. When `accessLevel`
343
+ is absent, defines the only integrations the user can access.
344
+ items:
345
+ type: object
346
+ properties:
347
+ _integrationId:
348
+ type: string
349
+ format: objectId
350
+ x-celigo-refModel: integrations
351
+ examples:
352
+ - 60f1a2b3c4d5e6f7a8b9c0d1
353
+ description: Integration this override applies to.
354
+ accessLevel:
355
+ type: string
356
+ enum:
357
+ - monitor
358
+ - manage
359
+ x-enumDescriptions:
360
+ monitor: Read-only view of the integration and its errors
361
+ manage: Create and edit the integration and its resources
362
+ description: Permission level for this integration.
363
+ ownerUser:
364
+ type: object
365
+ description: The user who shared their account.
366
+ properties:
367
+ _id:
368
+ type: string
369
+ format: objectId
370
+ x-celigo-refModel: users
371
+ examples:
372
+ - 5ab979f5038e555b2a95c385
373
+ description: User ID of the account owner.
374
+ name:
375
+ type: string
376
+ examples:
377
+ - Account Owner
378
+ description: Display name of the account owner.
379
+ email:
380
+ type: string
381
+ format: email
382
+ examples:
383
+ - owner@example.com
384
+ description: Email address of the account owner.
385
+ lastModified:
386
+ type: string
387
+ format: date-time
388
+ readOnly: true
389
+ examples:
390
+ - '2025-11-15T12:00:00.000Z'
391
+ description: Timestamp when this share record was last updated.
392
+ createdAt:
393
+ type: string
394
+ format: date-time
395
+ readOnly: true
396
+ examples:
397
+ - '2025-11-15T12:00:00.000Z'
398
+ description: Timestamp when this share record was created.
399
+ StackShare:
400
+ type: object
401
+ description: |-
402
+ A share record granting the current user access to another user's stack.
403
+ The `_id` here is the share record — the stack's own ID is in `stack._id`.
404
+ properties:
405
+ _id:
406
+ type: string
407
+ format: objectId
408
+ examples:
409
+ - 69f53622861a268851c836d0
410
+ description: Unique identifier for the share record, not the stack itself.
411
+ accepted:
412
+ type: boolean
413
+ description: |-
414
+ When true, the current user has accepted the invitation.
415
+ The stack cannot be used until accepted.
416
+ ownerUser:
417
+ type: object
418
+ description: The user who shared the stack.
419
+ properties:
420
+ _id:
421
+ type: string
422
+ format: objectId
423
+ x-celigo-refModel: users
424
+ examples:
425
+ - 69790a36cf9d563e23345f49
426
+ description: User ID of the stack owner.
427
+ name:
428
+ type: string
429
+ examples:
430
+ - Partner User
431
+ description: Display name of the stack owner.
432
+ email:
433
+ type: string
434
+ format: email
435
+ examples:
436
+ - partner@example.com
437
+ description: Email address of the stack owner.
438
+ stack:
439
+ type: object
440
+ description: Summary of the shared stack.
441
+ properties:
442
+ _id:
443
+ type: string
444
+ format: objectId
445
+ x-celigo-refModel: stacks
446
+ examples:
447
+ - 69f536192e7966f4032f2299
448
+ description: Stack identifier. Fetch full configuration with `GET /v1/stacks/{_id}`.
449
+ name:
450
+ type: string
451
+ examples:
452
+ - Production Lambda Stack
453
+ description: Display name shown in the UI when selecting a stack.
454
+ type:
455
+ type: string
456
+ enum:
457
+ - server
458
+ - lambda
459
+ x-enumDescriptions:
460
+ server: On-premise agent installed on your own infrastructure
461
+ lambda: AWS Lambda function managed in your own AWS account
462
+ description: Execution environment type.
463
+ Stack:
464
+ type: object
465
+ description: |-
466
+ Summary of a stack available to the account, returned by
467
+ `GET /v1/shared/stacks`. For the full stack resource (CRUD,
468
+ dependencies), use `GET /v1/stacks/{_id}`.
469
+ properties:
470
+ _id:
471
+ type: string
472
+ format: objectId
473
+ examples:
474
+ - 69f536192e7966f4032f2299
475
+ description: Unique identifier for this stack.
476
+ name:
477
+ type: string
478
+ examples:
479
+ - Production On-Prem Agent
480
+ description: Display name shown in the UI when selecting a stack.
481
+ type:
482
+ type: string
483
+ enum:
484
+ - server
485
+ - lambda
486
+ x-enumDescriptions:
487
+ server: On-premise agent installed on your own infrastructure.
488
+ lambda: AWS Lambda function managed in your own AWS account.
489
+ description: Execution environment type that determines which configuration block is present.
490
+ server:
491
+ type: object
492
+ description: Configuration for the on-premise agent process. Present when `type` is `server`.
493
+ properties:
494
+ systemToken:
495
+ type: string
496
+ description: |-
497
+ Token the on-premise agent uses to authenticate with the
498
+ Celigo platform. Masked in GET responses.
499
+ hostURI:
500
+ type: string
501
+ format: uri
502
+ examples:
503
+ - https://agent.example.com:7020
504
+ description: |-
505
+ Base URL where the on-premise agent is reachable.
506
+ The platform sends integration traffic to this address.
507
+ ipRanges:
508
+ type: array
509
+ description: |-
510
+ CIDR ranges allowed to connect to the agent. Requests from
511
+ IPs outside these ranges are rejected.
512
+ items:
513
+ type: string
514
+ examples:
515
+ - 10.0.0.0/8
516
+ lambda:
517
+ type: object
518
+ description: Configuration for the AWS Lambda execution environment. Present when `type` is `lambda`.
519
+ properties:
520
+ accessKeyId:
521
+ type: string
522
+ description: |-
523
+ AWS IAM access key ID with permission to invoke the Lambda
524
+ function. Masked in GET responses.
525
+ secretAccessKey:
526
+ type: string
527
+ description: |-
528
+ AWS IAM secret access key paired with `accessKeyId`.
529
+ Masked in GET responses.
530
+ awsRegion:
531
+ type: string
532
+ enum:
533
+ - us-east-1
534
+ - us-east-2
535
+ - us-west-1
536
+ - us-west-2
537
+ - ap-northeast-2
538
+ - ap-southeast-1
539
+ - ap-southeast-2
540
+ - ap-northeast-1
541
+ - ap-south-1
542
+ - eu-central-1
543
+ - eu-west-1
544
+ x-enumDescriptions:
545
+ us-east-1: US East (N. Virginia)
546
+ us-east-2: US East (Ohio)
547
+ us-west-1: US West (N. California)
548
+ us-west-2: US West (Oregon)
549
+ ap-northeast-2: Asia Pacific (Seoul)
550
+ ap-southeast-1: Asia Pacific (Singapore)
551
+ ap-southeast-2: Asia Pacific (Sydney)
552
+ ap-northeast-1: Asia Pacific (Tokyo)
553
+ ap-south-1: Asia Pacific (Mumbai)
554
+ eu-central-1: Europe (Frankfurt)
555
+ eu-west-1: Europe (Ireland)
556
+ description: |-
557
+ AWS region where the Lambda function is deployed.
558
+ Must match the region used when creating the function.
559
+ functionName:
560
+ type: string
561
+ examples:
562
+ - celigo-extension-handler
563
+ description: |-
564
+ Exact name of the Lambda function to invoke.
565
+ Must match the function name in your AWS account.
566
+ language:
567
+ type: string
568
+ enum:
569
+ - Node.js
570
+ - C#
571
+ - Java
572
+ - Other
573
+ x-enumDescriptions:
574
+ Node.js: Node.js runtime
575
+ C#: .NET (C#) runtime
576
+ Java: Java runtime
577
+ Other: Custom or unlisted runtime
578
+ description: |-
579
+ Runtime language the Lambda function is written in.
580
+ Controls how the platform serializes payloads sent to the function.
581
+ if:
582
+ properties:
583
+ type:
584
+ const: server
585
+ then:
586
+ required:
587
+ - server
588
+ else:
589
+ required:
590
+ - lambda
591
+ x-enable-proxy: true
592
+ x-internal: false