@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.
- package/README.md +71 -80
- package/dist/account.yml +456 -55
- package/dist/agent.yml +15 -0
- package/dist/ai-agent.yml +1000 -192
- package/dist/alert.yml +1226 -0
- package/dist/api.yml +6375 -178
- package/dist/apim.yml +0 -4
- package/dist/asynchelper.yml +441 -62
- package/dist/audit.yml +57 -2
- package/dist/bartendertemplate.yml +508 -0
- package/dist/connection.yml +2533 -189
- package/dist/connector.yml +8 -0
- package/dist/ediprofile.yml +15 -0
- package/dist/editransaction.yml +250 -14
- package/dist/enduser.yml +6063 -47
- package/dist/environment.yml +8 -0
- package/dist/eventreport.yml +8 -0
- package/dist/export.yml +1624 -1804
- package/dist/filedefinition.yml +47 -0
- package/dist/filedefinitionrules.yml +722 -0
- package/dist/fileserver.yml +1457 -0
- package/dist/filestorage.yml +1087 -535
- package/dist/flow.yml +896 -209
- package/dist/guardrail.yml +310 -499
- package/dist/httpconnector.yml +8 -0
- package/dist/httpconnectorendpoint.yml +610 -126
- package/dist/httpconnectorresource.yml +1160 -84
- package/dist/iclient.yml +245 -114
- package/dist/import.yml +2583 -448
- package/dist/integration.yml +1114 -45
- package/dist/job.yml +188 -92
- package/dist/lookupcache.yml +45 -14
- package/dist/marketplace.yml +352 -107
- package/dist/mcp-oauth-provider.yml +15 -30
- package/dist/mcp-server.yml +7004 -68
- package/dist/networkpolicy.yml +1221 -0
- package/dist/notification.yml +59 -9
- package/dist/processor.yml +8 -3
- package/dist/recyclebin.yml +32 -2
- package/dist/script.yml +91 -16
- package/dist/stack.yml +642 -5
- package/dist/storagequery.yml +935 -0
- package/dist/subscription.yml +428 -67
- package/dist/sync.yml +435 -79
- package/dist/tag.yml +8 -0
- package/dist/template.yml +47 -1
- package/dist/tool.yml +7932 -3273
- package/dist/topic.yml +1806 -0
- package/dist/tradingpartnerconnector.yml +18 -0
- package/dist/user.yml +465 -42
- package/package.json +13 -1
- package/schemas.json +2358 -1887
package/dist/account.yml
CHANGED
|
@@ -19,12 +19,12 @@ tags:
|
|
|
19
19
|
description: |-
|
|
20
20
|
Endpoints for discovering what the current account has access to.
|
|
21
21
|
|
|
22
|
-
Resolve a bearer token to
|
|
23
|
-
to the account, and manage shared accounts and stacks.
|
|
22
|
+
Resolve a bearer token to the account, credential, and user behind it, list the
|
|
23
|
+
external applications connected to the account, and manage shared accounts and stacks.
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Token info, shared account and stack share schemas
|
|
26
26
|
|
|
27
|
-
{% openapi-schemas spec="account" schemas="SharedAccount,StackShare" grouped="true" %}
|
|
27
|
+
{% openapi-schemas spec="account" schemas="TokenInfo,SharedAccount,StackShare" grouped="true" %}
|
|
28
28
|
paths:
|
|
29
29
|
/v1/tokenInfo:
|
|
30
30
|
get:
|
|
@@ -32,29 +32,79 @@ paths:
|
|
|
32
32
|
operationId: getTokenInfo
|
|
33
33
|
tags:
|
|
34
34
|
- Account
|
|
35
|
-
summary:
|
|
36
|
-
description:
|
|
35
|
+
summary: Resolve the current token's identity
|
|
36
|
+
description: |-
|
|
37
|
+
Resolves the bearer token on the request to the account it belongs to, the credential it
|
|
38
|
+
is, the user acting through it, and the environment it is bound to. Call it with the
|
|
39
|
+
same token you use for other requests — there is no body and no query parameter.
|
|
40
|
+
|
|
41
|
+
`token.type` names the credential kind. An account API token (`service`) also reports
|
|
42
|
+
the acting user in `byUser`; an on-premise agent token (`agent`) acts as the account
|
|
43
|
+
itself and omits `byUser`.
|
|
37
44
|
responses:
|
|
38
45
|
'200':
|
|
39
|
-
description: Token identity.
|
|
46
|
+
description: Token identity envelope.
|
|
40
47
|
content:
|
|
41
48
|
application/json:
|
|
42
49
|
schema:
|
|
43
|
-
|
|
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.
|
|
50
|
+
$ref: '#/components/schemas/TokenInfo'
|
|
52
51
|
examples:
|
|
53
|
-
|
|
52
|
+
serviceToken:
|
|
53
|
+
summary: Account API token created by the account owner
|
|
54
|
+
value:
|
|
55
|
+
_userId: 5e58483b68b52e5827d56a86
|
|
56
|
+
token:
|
|
57
|
+
type: service
|
|
58
|
+
_id: 68f5a1b2c3d4e5f678901234
|
|
59
|
+
name: ci-deploy-bot
|
|
60
|
+
fullAccess: true
|
|
61
|
+
ownerUser:
|
|
62
|
+
_id: 5e58483b68b52e5827d56a86
|
|
63
|
+
email: jane@acme.com
|
|
64
|
+
name: Jane Owner
|
|
65
|
+
company: Acme Corp
|
|
66
|
+
byUser:
|
|
67
|
+
_id: 5e58483b68b52e5827d56a86
|
|
68
|
+
email: jane@acme.com
|
|
69
|
+
name: Jane Owner
|
|
70
|
+
accessLevel: owner
|
|
71
|
+
environment:
|
|
72
|
+
_id: 69f1da72317aa6e158632d9b
|
|
73
|
+
name: Production
|
|
74
|
+
_envUserId: 5e58483b68b52e5827d56a86
|
|
75
|
+
agentToken:
|
|
76
|
+
summary: On-premise agent token (no byUser, no fullAccess)
|
|
54
77
|
value:
|
|
55
78
|
_userId: 5e58483b68b52e5827d56a86
|
|
79
|
+
token:
|
|
80
|
+
type: agent
|
|
81
|
+
_id: 68f5a1b2c3d4e5f678901238
|
|
82
|
+
name: warehouse-agent-01
|
|
83
|
+
ownerUser:
|
|
84
|
+
_id: 5e58483b68b52e5827d56a86
|
|
85
|
+
email: jane@acme.com
|
|
86
|
+
name: Jane Owner
|
|
87
|
+
company: Acme Corp
|
|
88
|
+
environment:
|
|
89
|
+
_id: 69f1da72317aa6e158632d9b
|
|
90
|
+
name: Production
|
|
91
|
+
_envUserId: 5e58483b68b52e5827d56a86
|
|
56
92
|
'401':
|
|
57
|
-
|
|
93
|
+
description: |-
|
|
94
|
+
Unauthorized. Unlike other routes, this one answers a missing `Authorization` header
|
|
95
|
+
and an invalid token the same way: a bare text body `Unauthorized` with no
|
|
96
|
+
`Content-Type` header and no `{errors: [...]}` or `{message}` JSON envelope. Key off
|
|
97
|
+
the HTTP status, not the body.
|
|
98
|
+
content:
|
|
99
|
+
text/plain:
|
|
100
|
+
schema:
|
|
101
|
+
type: string
|
|
102
|
+
examples:
|
|
103
|
+
- Unauthorized
|
|
104
|
+
examples:
|
|
105
|
+
unauthorized:
|
|
106
|
+
summary: Missing or invalid bearer token
|
|
107
|
+
value: Unauthorized
|
|
58
108
|
/v1/applications:
|
|
59
109
|
get:
|
|
60
110
|
x-internal: false
|
|
@@ -103,7 +153,9 @@ paths:
|
|
|
103
153
|
description: |-
|
|
104
154
|
Returns every account that other users have shared with the current
|
|
105
155
|
user. This is the inverse of `GET /v1/ashares`, which lists users
|
|
106
|
-
who have access to *your* account.
|
|
156
|
+
who have access to *your* account. Respond to a pending invitation
|
|
157
|
+
with `PUT /v1/ashares/{_id}/accept` or `PUT /v1/ashares/{_id}/dismiss`;
|
|
158
|
+
leave an account with `DELETE /v1/shared/ashares/{_id}`.
|
|
107
159
|
responses:
|
|
108
160
|
'200':
|
|
109
161
|
description: Array of shared-account entries.
|
|
@@ -142,6 +194,47 @@ paths:
|
|
|
142
194
|
description: No accounts are shared with the current user.
|
|
143
195
|
'401':
|
|
144
196
|
$ref: '#/components/responses/401-unauthorized'
|
|
197
|
+
/v1/shared/ashares/{_id}:
|
|
198
|
+
delete:
|
|
199
|
+
x-internal: false
|
|
200
|
+
operationId: deleteSharedAccount
|
|
201
|
+
tags:
|
|
202
|
+
- Account
|
|
203
|
+
summary: Leave a shared account
|
|
204
|
+
description: |-
|
|
205
|
+
Revokes the current user's own access to an account that was shared with
|
|
206
|
+
them by deleting the share record. Leaving an administrator share also
|
|
207
|
+
removes the matching shares in the owner's other environments. The only
|
|
208
|
+
share a user holds cannot be deleted unless that account requires SSO for
|
|
209
|
+
the user — dismiss it through `PUT /v1/ashares/{_id}/dismiss` instead. To
|
|
210
|
+
remove a user from *your* account, use `DELETE /v1/ashares/{_id}`.
|
|
211
|
+
parameters:
|
|
212
|
+
- name: _id
|
|
213
|
+
in: path
|
|
214
|
+
required: true
|
|
215
|
+
description: Share record id from `GET /v1/shared/ashares`, not a user or account id.
|
|
216
|
+
schema:
|
|
217
|
+
type: string
|
|
218
|
+
format: objectId
|
|
219
|
+
examples:
|
|
220
|
+
- 612345abcdef6789012345ab
|
|
221
|
+
responses:
|
|
222
|
+
'204':
|
|
223
|
+
description: Share record removed; the caller no longer has access to the account.
|
|
224
|
+
'401':
|
|
225
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
226
|
+
'404':
|
|
227
|
+
description: No share with this id is addressed to the caller.
|
|
228
|
+
content:
|
|
229
|
+
application/json:
|
|
230
|
+
schema:
|
|
231
|
+
$ref: '#/components/schemas/Error'
|
|
232
|
+
examples:
|
|
233
|
+
notShared:
|
|
234
|
+
value:
|
|
235
|
+
errors:
|
|
236
|
+
- code: invalid_ashare
|
|
237
|
+
message: The account you are trying to access is not shared with you.
|
|
145
238
|
/v1/shared/sshares:
|
|
146
239
|
get:
|
|
147
240
|
x-internal: false
|
|
@@ -152,7 +245,9 @@ paths:
|
|
|
152
245
|
description: |-
|
|
153
246
|
Returns stack-share records for the current user, including share
|
|
154
247
|
status, the user who shared, and a stack summary. To list usable
|
|
155
|
-
stacks directly, use `GET /v1/shared/stacks`.
|
|
248
|
+
stacks directly, use `GET /v1/shared/stacks`. Respond to a pending
|
|
249
|
+
invitation with `PUT /v1/sshares/{_id}/accept` or
|
|
250
|
+
`PUT /v1/sshares/{_id}/dismiss`.
|
|
156
251
|
responses:
|
|
157
252
|
'200':
|
|
158
253
|
description: Array of stack share entries.
|
|
@@ -179,6 +274,90 @@ paths:
|
|
|
179
274
|
description: No stacks are shared with the current user.
|
|
180
275
|
'401':
|
|
181
276
|
$ref: '#/components/responses/401-unauthorized'
|
|
277
|
+
/v1/sshares/{_id}/accept:
|
|
278
|
+
put:
|
|
279
|
+
x-internal: false
|
|
280
|
+
operationId: acceptStackShareInvitation
|
|
281
|
+
tags:
|
|
282
|
+
- Account
|
|
283
|
+
summary: Accept a stack share invitation
|
|
284
|
+
description: |-
|
|
285
|
+
Accepts an invitation to use another user's stack on behalf of the caller.
|
|
286
|
+
The `_id` is a share record addressed *to* the caller — take it from
|
|
287
|
+
`GET /v1/shared/sshares`. Once accepted, the stack appears in
|
|
288
|
+
`GET /v1/shared/stacks` and can be referenced by the caller's hooks and
|
|
289
|
+
wrappers. Accepting a share that is already accepted changes nothing.
|
|
290
|
+
x-celigo-ai-guidance:
|
|
291
|
+
- Recipient-side operation. To share one of your own stacks, use `POST /v1/stacks/{_id}/invite` (Stacks API).
|
|
292
|
+
parameters:
|
|
293
|
+
- name: _id
|
|
294
|
+
in: path
|
|
295
|
+
required: true
|
|
296
|
+
description: Share record id from `GET /v1/shared/sshares`, not the stack id.
|
|
297
|
+
schema:
|
|
298
|
+
type: string
|
|
299
|
+
format: objectId
|
|
300
|
+
examples:
|
|
301
|
+
- 69f53622861a268851c836d0
|
|
302
|
+
responses:
|
|
303
|
+
'204':
|
|
304
|
+
description: Invitation accepted (or already accepted).
|
|
305
|
+
'401':
|
|
306
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
307
|
+
'404':
|
|
308
|
+
description: No stack share with this id is addressed to the caller.
|
|
309
|
+
content:
|
|
310
|
+
application/json:
|
|
311
|
+
schema:
|
|
312
|
+
$ref: '#/components/schemas/Error'
|
|
313
|
+
examples:
|
|
314
|
+
notShared:
|
|
315
|
+
value:
|
|
316
|
+
errors:
|
|
317
|
+
- code: invalid_ref
|
|
318
|
+
message: SShare not found.
|
|
319
|
+
/v1/sshares/{_id}/dismiss:
|
|
320
|
+
put:
|
|
321
|
+
x-internal: false
|
|
322
|
+
operationId: dismissStackShareInvitation
|
|
323
|
+
tags:
|
|
324
|
+
- Account
|
|
325
|
+
summary: Dismiss a stack share invitation
|
|
326
|
+
description: |-
|
|
327
|
+
Declines an invitation to use another user's stack on behalf of the caller.
|
|
328
|
+
The `_id` is a share record addressed *to* the caller — take it from
|
|
329
|
+
`GET /v1/shared/sshares`. The owner can send the invitation again with
|
|
330
|
+
`PUT /v1/sshares/{_id}/reinvite`. Dismissing a share that is already
|
|
331
|
+
dismissed changes nothing.
|
|
332
|
+
x-celigo-ai-guidance:
|
|
333
|
+
- Recipient-side operation. As the stack owner, revoke a share with `DELETE /v1/sshares/{_id}` (Stacks API) instead.
|
|
334
|
+
parameters:
|
|
335
|
+
- name: _id
|
|
336
|
+
in: path
|
|
337
|
+
required: true
|
|
338
|
+
description: Share record id from `GET /v1/shared/sshares`, not the stack id.
|
|
339
|
+
schema:
|
|
340
|
+
type: string
|
|
341
|
+
format: objectId
|
|
342
|
+
examples:
|
|
343
|
+
- 69f53622861a268851c836d0
|
|
344
|
+
responses:
|
|
345
|
+
'204':
|
|
346
|
+
description: Invitation dismissed (or already dismissed).
|
|
347
|
+
'401':
|
|
348
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
349
|
+
'404':
|
|
350
|
+
description: No stack share with this id is addressed to the caller.
|
|
351
|
+
content:
|
|
352
|
+
application/json:
|
|
353
|
+
schema:
|
|
354
|
+
$ref: '#/components/schemas/Error'
|
|
355
|
+
examples:
|
|
356
|
+
notShared:
|
|
357
|
+
value:
|
|
358
|
+
errors:
|
|
359
|
+
- code: invalid_ref
|
|
360
|
+
message: SShare not found.
|
|
182
361
|
/v1/shared/stacks:
|
|
183
362
|
get:
|
|
184
363
|
x-internal: false
|
|
@@ -221,42 +400,160 @@ components:
|
|
|
221
400
|
bearerAuth:
|
|
222
401
|
type: http
|
|
223
402
|
scheme: bearer
|
|
224
|
-
|
|
225
|
-
|
|
403
|
+
schemas:
|
|
404
|
+
TokenInfo:
|
|
405
|
+
type: object
|
|
226
406
|
description: |-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
- `"Bearer Authentication Failed"` — header present but token
|
|
247
|
-
is invalid, revoked, or expired.
|
|
248
|
-
required:
|
|
249
|
-
- message
|
|
407
|
+
Identity envelope for the bearer token on the request: the credential kind, the
|
|
408
|
+
account owner, the user acting through it, and the environment it is bound to.
|
|
409
|
+
Read the account id from `ownerUser._id` and the actor from `byUser`; `_userId` is
|
|
410
|
+
the user record the token is bound to, which for a token on the production
|
|
411
|
+
environment is the account owner.
|
|
412
|
+
required:
|
|
413
|
+
- _userId
|
|
414
|
+
- token
|
|
415
|
+
- ownerUser
|
|
416
|
+
x-celigo-ai-guidance:
|
|
417
|
+
- |-
|
|
418
|
+
Use ownerUser._id as the account id and token.type to tell credential kinds apart.
|
|
419
|
+
byUser is absent on on-premise agent tokens (type agent), so never dereference it
|
|
420
|
+
without checking the type first.
|
|
421
|
+
properties:
|
|
422
|
+
_userId:
|
|
423
|
+
type: string
|
|
424
|
+
format: objectId
|
|
425
|
+
x-celigo-refModel: users
|
|
250
426
|
examples:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
427
|
+
- 5e58483b68b52e5827d56a86
|
|
428
|
+
description: |-
|
|
429
|
+
User record the token is bound to. For a token on the production environment this
|
|
430
|
+
is the account owner, so it matches both `ownerUser._id` and
|
|
431
|
+
`environment._envUserId`.
|
|
432
|
+
token:
|
|
433
|
+
type: object
|
|
434
|
+
description: The credential that authenticated the request. Never echoes the secret value.
|
|
435
|
+
required:
|
|
436
|
+
- type
|
|
437
|
+
properties:
|
|
438
|
+
type:
|
|
439
|
+
type: string
|
|
440
|
+
examples:
|
|
441
|
+
- service
|
|
442
|
+
description: |-
|
|
443
|
+
Credential kind: `service` for an account API token, `agent` for an on-premise
|
|
444
|
+
agent's access token. Read this field rather than inferring the kind from which
|
|
445
|
+
other fields are present.
|
|
446
|
+
_id:
|
|
447
|
+
type: string
|
|
448
|
+
format: objectId
|
|
449
|
+
examples:
|
|
450
|
+
- 68f5a1b2c3d4e5f678901234
|
|
451
|
+
description: |-
|
|
452
|
+
Record the credential belongs to: the access token for a `service` token, the
|
|
453
|
+
on-premise agent (`GET /v1/agents/{_id}`) for an `agent` token.
|
|
454
|
+
name:
|
|
455
|
+
type: string
|
|
456
|
+
examples:
|
|
457
|
+
- ci-deploy-bot
|
|
458
|
+
description: |-
|
|
459
|
+
Display name of the access token for a `service` token; the agent's name for an
|
|
460
|
+
`agent` token.
|
|
461
|
+
fullAccess:
|
|
462
|
+
type: boolean
|
|
463
|
+
description: |-
|
|
464
|
+
When true, the token has unrestricted access to the account. Present on `service`
|
|
465
|
+
tokens only; `agent` tokens omit it.
|
|
466
|
+
ownerUser:
|
|
467
|
+
type: object
|
|
468
|
+
description: Account (tenant) owner. Use `_id` as the account id.
|
|
469
|
+
required:
|
|
470
|
+
- _id
|
|
471
|
+
properties:
|
|
472
|
+
_id:
|
|
473
|
+
type: string
|
|
474
|
+
format: objectId
|
|
475
|
+
x-celigo-refModel: users
|
|
476
|
+
examples:
|
|
477
|
+
- 5e58483b68b52e5827d56a86
|
|
478
|
+
description: Account owner's user id, which identifies the account itself.
|
|
479
|
+
email:
|
|
480
|
+
type: string
|
|
481
|
+
format: email
|
|
482
|
+
examples:
|
|
483
|
+
- jane@acme.com
|
|
484
|
+
description: Account owner's email address.
|
|
485
|
+
name:
|
|
486
|
+
type: string
|
|
487
|
+
examples:
|
|
488
|
+
- Jane Owner
|
|
489
|
+
description: Account owner's display name.
|
|
490
|
+
company:
|
|
491
|
+
type: string
|
|
492
|
+
examples:
|
|
493
|
+
- Acme Corp
|
|
494
|
+
description: Company name on the owner's profile.
|
|
495
|
+
byUser:
|
|
496
|
+
type: object
|
|
497
|
+
description: |-
|
|
498
|
+
User acting through the token. Omitted for `agent` tokens, which act as the account
|
|
499
|
+
itself. For a `service` token created by the account owner this mirrors `ownerUser`
|
|
500
|
+
with `accessLevel: owner`.
|
|
501
|
+
required:
|
|
502
|
+
- _id
|
|
503
|
+
properties:
|
|
504
|
+
_id:
|
|
505
|
+
type: string
|
|
506
|
+
format: objectId
|
|
507
|
+
x-celigo-refModel: users
|
|
508
|
+
examples:
|
|
509
|
+
- 5e58483b68b52e5827d56a86
|
|
510
|
+
description: Acting user's id. Equals `ownerUser._id` when the owner is acting.
|
|
511
|
+
email:
|
|
512
|
+
type: string
|
|
513
|
+
format: email
|
|
514
|
+
examples:
|
|
515
|
+
- jane@acme.com
|
|
516
|
+
description: Acting user's email address.
|
|
517
|
+
name:
|
|
518
|
+
type: string
|
|
519
|
+
examples:
|
|
520
|
+
- Jane Owner
|
|
521
|
+
description: Acting user's display name.
|
|
522
|
+
accessLevel:
|
|
523
|
+
type: string
|
|
524
|
+
examples:
|
|
525
|
+
- owner
|
|
526
|
+
description: |-
|
|
527
|
+
Acting user's account-wide access level. `owner` when the acting user is the
|
|
528
|
+
account owner.
|
|
529
|
+
environment:
|
|
530
|
+
type: object
|
|
531
|
+
description: Environment the token is bound to.
|
|
532
|
+
required:
|
|
533
|
+
- name
|
|
534
|
+
properties:
|
|
535
|
+
_id:
|
|
536
|
+
type: string
|
|
537
|
+
format: objectId
|
|
538
|
+
x-celigo-refModel: environments
|
|
539
|
+
examples:
|
|
540
|
+
- 69f1da72317aa6e158632d9b
|
|
541
|
+
description: Environment id, as listed by `GET /v1/environments`.
|
|
542
|
+
name:
|
|
543
|
+
type: string
|
|
544
|
+
examples:
|
|
545
|
+
- Production
|
|
546
|
+
description: Environment display name.
|
|
547
|
+
_envUserId:
|
|
548
|
+
type: string
|
|
549
|
+
format: objectId
|
|
550
|
+
x-celigo-refModel: users
|
|
551
|
+
examples:
|
|
552
|
+
- 5e58483b68b52e5827d56a86
|
|
553
|
+
description: |-
|
|
554
|
+
User record that owns this environment's resources: the account owner for the
|
|
555
|
+
production environment, a per-environment user for every other environment
|
|
556
|
+
(the same ids `GET /v1/environments` lists).
|
|
260
557
|
ApplicationUsage:
|
|
261
558
|
type: object
|
|
262
559
|
description: An application and its connections in this account.
|
|
@@ -317,7 +614,34 @@ components:
|
|
|
317
614
|
type: boolean
|
|
318
615
|
description: |-
|
|
319
616
|
When true, the current user has accepted the invitation.
|
|
320
|
-
Unaccepted shares appear in the list but cannot be acted on
|
|
617
|
+
Unaccepted shares appear in the list but cannot be acted on —
|
|
618
|
+
accept one with `PUT /v1/ashares/{_id}/accept`.
|
|
619
|
+
dismissed:
|
|
620
|
+
type: boolean
|
|
621
|
+
description: |-
|
|
622
|
+
When true, the current user declined the invitation. Present only while
|
|
623
|
+
dismissed; the owner can reinvite, which clears it.
|
|
624
|
+
disabled:
|
|
625
|
+
type: boolean
|
|
626
|
+
description: |-
|
|
627
|
+
When true, the owner has suspended the current user's access to the
|
|
628
|
+
account. Present only while suspended.
|
|
629
|
+
accountSSORequired:
|
|
630
|
+
type: boolean
|
|
631
|
+
description: |-
|
|
632
|
+
When true, the owner requires the current user to sign in through SSO
|
|
633
|
+
for this account. Present only when the owner has an active SSO client;
|
|
634
|
+
reads true while the owner enforces SSO for every user, even if the
|
|
635
|
+
share itself does not carry the flag.
|
|
636
|
+
ssoSetupPending:
|
|
637
|
+
type: boolean
|
|
638
|
+
description: |-
|
|
639
|
+
When true, the current user has not yet completed SSO setup with this
|
|
640
|
+
owner, so the SSO-required access is not fully active. Present only
|
|
641
|
+
while pending.
|
|
642
|
+
isProductionAdmin:
|
|
643
|
+
type: boolean
|
|
644
|
+
description: When true, the share grants administrator access to the owner's production environment. Present only when it applies.
|
|
321
645
|
accessLevel:
|
|
322
646
|
type: string
|
|
323
647
|
description: |-
|
|
@@ -330,10 +654,12 @@ components:
|
|
|
330
654
|
- administrator
|
|
331
655
|
- manage
|
|
332
656
|
- monitor
|
|
657
|
+
- none
|
|
333
658
|
x-enumDescriptions:
|
|
334
659
|
administrator: Full administration including user management and account settings
|
|
335
660
|
manage: Create and edit integrations and resources, but not account settings or users
|
|
336
661
|
monitor: Read-only view of integrations, flows, and errors
|
|
662
|
+
none: No account-wide access; recorded by SCIM provisioning when access comes only from integrationAccessLevel
|
|
337
663
|
integrationAccessLevel:
|
|
338
664
|
type: array
|
|
339
665
|
description: |-
|
|
@@ -396,6 +722,46 @@ components:
|
|
|
396
722
|
examples:
|
|
397
723
|
- '2025-11-15T12:00:00.000Z'
|
|
398
724
|
description: Timestamp when this share record was created.
|
|
725
|
+
Error:
|
|
726
|
+
type: object
|
|
727
|
+
description: Standard error response envelope returned by integrator.io APIs.
|
|
728
|
+
properties:
|
|
729
|
+
errors:
|
|
730
|
+
type: array
|
|
731
|
+
description: List of errors that occurred while processing the request.
|
|
732
|
+
items:
|
|
733
|
+
type: object
|
|
734
|
+
properties:
|
|
735
|
+
code:
|
|
736
|
+
oneOf:
|
|
737
|
+
- type: string
|
|
738
|
+
- type: integer
|
|
739
|
+
description: |-
|
|
740
|
+
Machine-readable error code. Usually a string like
|
|
741
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
742
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
743
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
744
|
+
and adaptor-proxy responses.
|
|
745
|
+
message:
|
|
746
|
+
type: string
|
|
747
|
+
description: Human-readable description of the error.
|
|
748
|
+
field:
|
|
749
|
+
type: string
|
|
750
|
+
description: |-
|
|
751
|
+
Optional pointer to the document field that caused the error.
|
|
752
|
+
Used by structural validation errors (`missing_required_field`,
|
|
753
|
+
`invalid_ref`) to indicate which field is at fault
|
|
754
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
755
|
+
source:
|
|
756
|
+
type: string
|
|
757
|
+
description: |-
|
|
758
|
+
Optional origin layer for the error — e.g. `application` when
|
|
759
|
+
the error came from the remote system the adaptor called,
|
|
760
|
+
`connector` when the adaptor itself rejected the request.
|
|
761
|
+
required:
|
|
762
|
+
- message
|
|
763
|
+
required:
|
|
764
|
+
- errors
|
|
399
765
|
StackShare:
|
|
400
766
|
type: object
|
|
401
767
|
description: |-
|
|
@@ -588,5 +954,40 @@ components:
|
|
|
588
954
|
else:
|
|
589
955
|
required:
|
|
590
956
|
- lambda
|
|
957
|
+
responses:
|
|
958
|
+
401-unauthorized:
|
|
959
|
+
description: |-
|
|
960
|
+
Unauthorized. The request lacks a valid bearer token, or the provided token
|
|
961
|
+
failed to authenticate.
|
|
962
|
+
|
|
963
|
+
Note: the 401 response is produced by the auth middleware **before** the
|
|
964
|
+
request reaches the endpoint handler, so it does **not** follow the
|
|
965
|
+
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
966
|
+
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
967
|
+
handling 401s should key off the HTTP status and the `message` string,
|
|
968
|
+
not try to destructure an `errors[]`.
|
|
969
|
+
content:
|
|
970
|
+
application/json:
|
|
971
|
+
schema:
|
|
972
|
+
type: object
|
|
973
|
+
properties:
|
|
974
|
+
message:
|
|
975
|
+
type: string
|
|
976
|
+
description: |-
|
|
977
|
+
Human-readable description of the auth failure. Known values:
|
|
978
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
979
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
980
|
+
is invalid, revoked, or expired.
|
|
981
|
+
required:
|
|
982
|
+
- message
|
|
983
|
+
examples:
|
|
984
|
+
missing_token:
|
|
985
|
+
summary: No Authorization header sent
|
|
986
|
+
value:
|
|
987
|
+
message: Unauthorized
|
|
988
|
+
invalid_token:
|
|
989
|
+
summary: Bearer token invalid or revoked
|
|
990
|
+
value:
|
|
991
|
+
message: Bearer Authentication Failed
|
|
591
992
|
x-enable-proxy: true
|
|
592
993
|
x-internal: false
|
package/dist/agent.yml
CHANGED
|
@@ -600,6 +600,14 @@ components:
|
|
|
600
600
|
description: Timestamp when the resource was last updated. Changes whenever any property is modified.
|
|
601
601
|
x-celigo-ai-guidance:
|
|
602
602
|
- Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
|
|
603
|
+
- |-
|
|
604
|
+
Records that something was written, not what — a settings edit, a flag flip, or a
|
|
605
|
+
platform workflow all move it. What changed and when is in the audit log: the
|
|
606
|
+
per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
|
|
607
|
+
`resourceType` enum lists, or the account-wide
|
|
608
|
+
`GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
|
|
609
|
+
endpoint's enum accepts (users, environments, notifications among them). A type absent
|
|
610
|
+
from both enums — jobs, connectors, templates — has only this timestamp.
|
|
603
611
|
examples:
|
|
604
612
|
- '2023-04-15T14:30:15Z'
|
|
605
613
|
deletedAt:
|
|
@@ -754,6 +762,13 @@ components:
|
|
|
754
762
|
description: Display name of the dependent resource.
|
|
755
763
|
examples:
|
|
756
764
|
- Import Orders to NetSuite
|
|
765
|
+
type:
|
|
766
|
+
type: string
|
|
767
|
+
description: |-
|
|
768
|
+
Sub-type of the dependent resource when its collection distinguishes one, such as
|
|
769
|
+
`stream` for a listener export. Only present for resource types that carry a `type`.
|
|
770
|
+
examples:
|
|
771
|
+
- stream
|
|
757
772
|
paths:
|
|
758
773
|
type: array
|
|
759
774
|
description: |-
|