@celigo/api-specs 0.2.308 → 0.2.309

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/dist/account.yml CHANGED
@@ -39,8 +39,14 @@ paths:
39
39
  same token you use for other requests — there is no body and no query parameter.
40
40
 
41
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`.
42
+ the acting user in `byUser`: for a token the account owner created, the owner, with
43
+ `accessLevel: owner`. A Custom-scope one (`token.fullAccess: false`) lists the
44
+ resources selected on it in `token` (`_connectionIds`, `_exportIds`, `_importIds`,
45
+ `_apiIds`, `_mcpServerIds`), so a token that cannot read its own record can still
46
+ learn its scope here. An invited user's personal access token (`personal`) reports
47
+ that user in `byUser`, with their access level on the account and the `_aShareId` of
48
+ their access record. An on-premise agent token (`agent`) acts as the account itself
49
+ and omits `byUser`.
44
50
  responses:
45
51
  '200':
46
52
  description: Token identity envelope.
@@ -72,6 +78,64 @@ paths:
72
78
  _id: 69f1da72317aa6e158632d9b
73
79
  name: Production
74
80
  _envUserId: 5e58483b68b52e5827d56a86
81
+ customScopeToken:
82
+ summary: Custom-scope account API token (lists what it may use)
83
+ value:
84
+ _userId: 5e58483b68b52e5827d56a86
85
+ token:
86
+ type: service
87
+ _id: 68f5a1b2c3d4e5f678901235
88
+ name: order-export-caller
89
+ fullAccess: false
90
+ _connectionIds:
91
+ - 68f5a1b2c3d4e5f678901240
92
+ _importIds:
93
+ - 68f5a1b2c3d4e5f678901241
94
+ _exportIds:
95
+ - 68f5a1b2c3d4e5f678901242
96
+ _apiIds:
97
+ - 68f5a1b2c3d4e5f678901243
98
+ _mcpServerIds:
99
+ - 68f5a1b2c3d4e5f678901244
100
+ autoPurgeAt: '2026-11-21T11:31:13.046Z'
101
+ ownerUser:
102
+ _id: 5e58483b68b52e5827d56a86
103
+ email: jane@acme.com
104
+ name: Jane Owner
105
+ company: Acme Corp
106
+ byUser:
107
+ _id: 5e58483b68b52e5827d56a86
108
+ email: jane@acme.com
109
+ name: Jane Owner
110
+ accessLevel: owner
111
+ environment:
112
+ _id: 69f1da72317aa6e158632d9b
113
+ name: Production
114
+ _envUserId: 5e58483b68b52e5827d56a86
115
+ personalToken:
116
+ summary: Personal access token of an invited user (no fullAccess)
117
+ value:
118
+ _userId: 5e58483b68b52e5827d56a86
119
+ token:
120
+ type: personal
121
+ _id: 68f5a1b2c3d4e5f678901236
122
+ name: sam-laptop
123
+ autoPurgeAt: '2026-11-21T11:33:38.959Z'
124
+ ownerUser:
125
+ _id: 5e58483b68b52e5827d56a86
126
+ email: jane@acme.com
127
+ name: Jane Owner
128
+ company: Acme Corp
129
+ byUser:
130
+ _id: 6a1b2c3d4e5f678901234def
131
+ email: sam@acme.com
132
+ name: Sam Analyst
133
+ accessLevel: monitor
134
+ _aShareId: 6a1b2c3d4e5f678901234abc
135
+ environment:
136
+ _id: 69f1da72317aa6e158632d9b
137
+ name: Production
138
+ _envUserId: 5e58483b68b52e5827d56a86
75
139
  agentToken:
76
140
  summary: On-premise agent token (no byUser, no fullAccess)
77
141
  value:
@@ -417,6 +481,11 @@ components:
417
481
  Use ownerUser._id as the account id and token.type to tell credential kinds apart.
418
482
  byUser is absent on on-premise agent tokens (type agent), so never dereference it
419
483
  without checking the type first.
484
+ - |-
485
+ On an invited user's personal token byUser is that user, with the _aShareId of their
486
+ access record. On a service token created by the account owner byUser repeats
487
+ ownerUser's _id, email and name with accessLevel owner. Read token.type to tell which
488
+ before naming byUser as the caller.
420
489
  properties:
421
490
  _userId:
422
491
  type: string
@@ -439,29 +508,87 @@ components:
439
508
  examples:
440
509
  - service
441
510
  description: |-
442
- Credential kind: `service` for an account API token, `agent` for an on-premise
443
- agent's access token. Read this field rather than inferring the kind from which
444
- other fields are present.
511
+ Credential kind: `service` for an account API token, `personal` for a personal
512
+ access token, `agent` for an on-premise agent's access token. Read this field
513
+ rather than inferring the kind from which other fields are present.
445
514
  _id:
446
515
  type: string
447
516
  format: objectId
448
517
  examples:
449
518
  - 68f5a1b2c3d4e5f678901234
450
519
  description: |-
451
- Record the credential belongs to: the access token for a `service` token, the
452
- on-premise agent (`GET /v1/agents/{_id}`) for an `agent` token.
520
+ Record the credential belongs to: the access token for a `service` or `personal`
521
+ token, the on-premise agent (`GET /v1/agents/{_id}`) for an `agent` token.
453
522
  name:
454
523
  type: string
455
524
  examples:
456
525
  - ci-deploy-bot
457
526
  description: |-
458
- Display name of the access token for a `service` token; the agent's name for an
459
- `agent` token.
527
+ Display name of the access token for a `service` or `personal` token; the
528
+ agent's name for an `agent` token.
460
529
  fullAccess:
461
530
  type: boolean
462
531
  description: |-
463
- When true, the token has unrestricted access to the account. Present on `service`
464
- tokens only; `agent` tokens omit it.
532
+ When true, the token has unrestricted access to the account. When false, the
533
+ token is a Custom-scope token and the resources selected on it are listed beside
534
+ this field. Present on `service` tokens only; `personal` and `agent` tokens
535
+ omit it.
536
+ _connectionIds:
537
+ type: array
538
+ items:
539
+ type: string
540
+ format: objectId
541
+ x-celigo-refModel: connections
542
+ description: |-
543
+ Connections selected on a Custom-scope `service` token: the `_connectionIds` of the
544
+ access token, whose field docs say what the selection permits. A full-access
545
+ token omits it.
546
+ _exportIds:
547
+ type: array
548
+ items:
549
+ type: string
550
+ format: objectId
551
+ x-celigo-refModel: exports
552
+ description: |-
553
+ Exports selected on a Custom-scope `service` token: the `_exportIds` of the
554
+ access token, whose field docs say what the selection permits. A full-access
555
+ token omits it.
556
+ _importIds:
557
+ type: array
558
+ items:
559
+ type: string
560
+ format: objectId
561
+ x-celigo-refModel: imports
562
+ description: |-
563
+ Imports selected on a Custom-scope `service` token: the `_importIds` of the
564
+ access token, whose field docs say what the selection permits. A full-access
565
+ token omits it.
566
+ _apiIds:
567
+ type: array
568
+ items:
569
+ type: string
570
+ format: objectId
571
+ x-celigo-refModel: apis
572
+ description: |-
573
+ APIs selected on a Custom-scope `service` token: the `_apiIds` of the
574
+ access token, whose field docs say what the selection permits. A full-access
575
+ token omits it.
576
+ _mcpServerIds:
577
+ type: array
578
+ items:
579
+ type: string
580
+ format: objectId
581
+ x-celigo-refModel: mcpservers
582
+ description: |-
583
+ MCP servers selected on a Custom-scope `service` token: the `_mcpServerIds` of the
584
+ access token, whose field docs say what the selection permits. A full-access
585
+ token omits it.
586
+ autoPurgeAt:
587
+ type: string
588
+ format: date-time
589
+ description: |-
590
+ Timestamp at which the token record is automatically removed. Absent on a token
591
+ with no expiry set.
465
592
  ownerUser:
466
593
  type: object
467
594
  description: Account (tenant) owner. Use `_id` as the account id.
@@ -494,9 +621,10 @@ components:
494
621
  byUser:
495
622
  type: object
496
623
  description: |-
497
- User acting through the token. Omitted for `agent` tokens, which act as the account
498
- itself. For a `service` token created by the account owner this mirrors `ownerUser`
499
- with `accessLevel: owner`.
624
+ User acting through the token. For a `personal` token this is the person the token
625
+ belongs to. For a `service` token created by the account owner this repeats
626
+ `ownerUser`'s `_id`, `email` and `name` with `accessLevel: owner`. Omitted for
627
+ `agent` tokens, which act as the account itself.
500
628
  required:
501
629
  - _id
502
630
  properties:
@@ -524,7 +652,18 @@ components:
524
652
  - owner
525
653
  description: |-
526
654
  Acting user's account-wide access level. `owner` when the acting user is the
527
- account owner.
655
+ account owner; for an invited user's `personal` token, the `accessLevel` of the
656
+ access record named by `_aShareId`.
657
+ _aShareId:
658
+ type: string
659
+ format: objectId
660
+ x-celigo-refModel: ashares
661
+ examples:
662
+ - 6a1b2c3d4e5f678901234abc
663
+ description: |-
664
+ Access record (`GET /v1/ashares`) that gives the acting user their access to the
665
+ account. Present on an invited user's `personal` token; absent on a `service`
666
+ token created by the account owner.
528
667
  environment:
529
668
  type: object
530
669
  description: Environment the token is bound to.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.308",
3
+ "version": "0.2.309",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "fded5c40",
5
- "generatedAt": "2026-11-16"
4
+ "iasCommit": "0d52c2e2",
5
+ "generatedAt": "2026-11-17"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 130,