@celigo/api-specs 0.2.308 → 0.2.310

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.
@@ -866,12 +866,23 @@ paths:
866
866
 
867
867
  Unlike the parser endpoint, the generator places file definition
868
868
  fields directly in `rules` (no `fileDefinition` wrapper). Each
869
- element in the definition must include a `value` property containing
870
- the literal text to output for that field.
869
+ element in the definition must include a `value`: a Handlebars
870
+ template that produces the text for that field. Literal text is
871
+ output as written. A reference is replaced with a field of the
872
+ context its rule is output with, or with nothing when that context
873
+ has no such field: a rule that repeats is output once for each
874
+ object in `data` and reads that object (`{{firstName}}`), while a
875
+ root rule with no `maxOccurrence` is output once and reads the
876
+ whole array, so it reaches a record by index (`{{0.firstName}}`).
871
877
 
872
- The `data` field must be an array of objects. Each object in the
873
- array represents one document to generate. The response has
874
- `mediaType: "text"` and does not include `dataRecordTraceKeys` or
878
+ An X12 definition with `skipEDIValidation: false` fails the request
879
+ with `mandatory_element_absent` when the template of a `required`
880
+ element comes out empty; with `skipEDIValidation: true` the element
881
+ is output empty.
882
+
883
+ The `data` array carries the records those references read. The
884
+ response has `mediaType: "text"` with the generated content as one
885
+ string, and does not include `dataRecordTraceKeys` or
875
886
  `traceKeysDuplicate`.
876
887
 
877
888
  **Required file definition fields** — `name`, `version` (string
@@ -894,10 +905,13 @@ paths:
894
905
  data:
895
906
  type: array
896
907
  description: |-
897
- Array of record objects. Each object represents one
898
- document to generate. The generator uses element `value`
899
- properties from the rules, not field values from these
900
- objects.
908
+ Records read by the Handlebars references in element
909
+ `value`s. A rule that repeats outputs its rows once for
910
+ each object in the array, with that object as the context
911
+ for its elements and child rules. A root rule with no
912
+ `maxOccurrence` outputs one row with the whole array as
913
+ its context, so it reads a record by index
914
+ (`{{0.firstName}}`).
901
915
  items:
902
916
  type: object
903
917
  additionalProperties: true
@@ -993,7 +1007,8 @@ paths:
993
1007
  description: |-
994
1008
  Array of segment definitions. Each segment has a `name`
995
1009
  and `elements` array. Each element must have `name` and
996
- `value` (the literal text to output).
1010
+ `value` (a Handlebars template that produces the field's
1011
+ text).
997
1012
  items:
998
1013
  type: object
999
1014
  additionalProperties: true
@@ -1022,6 +1037,8 @@ paths:
1022
1037
  rules:
1023
1038
  - name: HDR
1024
1039
  elements:
1040
+ - name: HDR
1041
+ value: HDR
1025
1042
  - name: firstName
1026
1043
  value: John
1027
1044
  - name: lastName
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.310",
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": "6715bcdd",
5
+ "generatedAt": "2026-11-18"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 130,