@celigo/api-specs 0.2.252 → 0.2.254
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/enduser.yml +125 -19
- package/dist/import.yml +79 -1
- package/dist/mcp-server.yml +19 -9
- package/dist/tool.yml +79 -1
- package/dist/user.yml +15 -8
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/enduser.yml
CHANGED
|
@@ -520,9 +520,10 @@ paths:
|
|
|
520
520
|
tags:
|
|
521
521
|
- End Users
|
|
522
522
|
description: |-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
523
|
+
Stores the arrays sent — group memberships, direct resource grants, role
|
|
524
|
+
pins — each replacing its stored array in full; an array left out of the
|
|
525
|
+
body stays as stored. Works on invited end users before they accept.
|
|
526
|
+
`disabled` is not applied here — use `PUT /v1/ashares/{_ashareId}/disable`.
|
|
526
527
|
|
|
527
528
|
An end user's access record is an ashare, so this is the same route as
|
|
528
529
|
the workspace-user update in the Users API, with this body instead of the
|
|
@@ -1278,25 +1279,32 @@ components:
|
|
|
1278
1279
|
description: |-
|
|
1279
1280
|
Capabilities granted on the target resource. Each `:all` capability
|
|
1280
1281
|
covers only its own kind — grant `tool:all`, `api:all`, `prompt:all`,
|
|
1281
|
-
and `resource:all` together to open every item on a server.
|
|
1282
|
+
and `resource:all` together to open every item on a server. `pset:all`
|
|
1283
|
+
covers every permission set on the target server, including sets added
|
|
1284
|
+
later, and stays in place when a set is deleted; it reaches only what
|
|
1285
|
+
the sets contain — an attached tool or prompt in no set stays denied.
|
|
1286
|
+
Deleting a set rewrites each `pset:<_id>` grant
|
|
1287
|
+
that named it — on end users, groups and roles — to the set's member
|
|
1288
|
+
capabilities, so access is kept rather than dropped.
|
|
1282
1289
|
items:
|
|
1283
1290
|
type: string
|
|
1284
|
-
pattern: ^(?:tool|api|prompt|resource):(?:[a-fA-F0-9]{24}|all)$|^pset:[a-fA-F0-9]{24}$
|
|
1291
|
+
pattern: ^(?:tool|api|prompt|resource):(?:[a-fA-F0-9]{24}|all)$|^pset:(?:[a-fA-F0-9]{24}|all)$
|
|
1285
1292
|
description: |-
|
|
1286
1293
|
Capability string for an `mcpServer` grant. `tool:`, `api:`,
|
|
1287
1294
|
`prompt:`, and `resource:` take `all` or a 24-hex id on the target
|
|
1288
1295
|
server — a `tools[]._toolId` or upstream tool row `_id`, an
|
|
1289
1296
|
`apis[]._apiId`, a `prompts[]._id`, or a `resources[]._id`; `pset:`
|
|
1290
|
-
takes a `permissionSets[]._id`. Grant prompts with
|
|
1291
|
-
older grants written as `tool:<prompt _id>` still
|
|
1292
|
-
not reported by effective access. Any other shape
|
|
1293
|
-
400 `validation_failed` ("Invalid capability"), and
|
|
1294
|
-
not attached to the target server with 400
|
|
1295
|
-
naming the missing item.
|
|
1297
|
+
takes a `permissionSets[]._id` or `all`. Grant prompts with
|
|
1298
|
+
`prompt:<_id>`: older grants written as `tool:<prompt _id>` still
|
|
1299
|
+
validate but are not reported by effective access. Any other shape
|
|
1300
|
+
is rejected with 400 `validation_failed` ("Invalid capability"), and
|
|
1301
|
+
an id that is not attached to the target server with 400
|
|
1302
|
+
`validation_failed` naming the missing item.
|
|
1296
1303
|
examples:
|
|
1297
1304
|
- tool:all
|
|
1298
1305
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
|
1299
1306
|
- pset:6c3d4e5f6a7b8c9d0e1f2a3b
|
|
1307
|
+
- pset:all
|
|
1300
1308
|
EndUser:
|
|
1301
1309
|
type: object
|
|
1302
1310
|
description: |-
|
|
@@ -1403,6 +1411,24 @@ components:
|
|
|
1403
1411
|
type: string
|
|
1404
1412
|
format: objectId
|
|
1405
1413
|
x-celigo-refModel: roles
|
|
1414
|
+
roleAssignments:
|
|
1415
|
+
type: array
|
|
1416
|
+
readOnly: true
|
|
1417
|
+
description: |-
|
|
1418
|
+
The direct role pins with their source, returned by the update
|
|
1419
|
+
operation beside `_roleIds`; the end users list carries `_roleIds`
|
|
1420
|
+
only.
|
|
1421
|
+
items:
|
|
1422
|
+
type: object
|
|
1423
|
+
properties:
|
|
1424
|
+
_roleId:
|
|
1425
|
+
type: string
|
|
1426
|
+
format: objectId
|
|
1427
|
+
x-celigo-refModel: roles
|
|
1428
|
+
description: The pinned role.
|
|
1429
|
+
source:
|
|
1430
|
+
type: string
|
|
1431
|
+
description: How the pin was made — `manual` for a role set on the record by an owner or administrator.
|
|
1406
1432
|
email:
|
|
1407
1433
|
type: string
|
|
1408
1434
|
format: email
|
|
@@ -1695,11 +1721,14 @@ components:
|
|
|
1695
1721
|
description: |-
|
|
1696
1722
|
Source attribution strings such as `direct`, `group:<name>`,
|
|
1697
1723
|
`pset:<name> (direct)`, `pset:<name> (group:<name>)`,
|
|
1698
|
-
`role-direct:<name>`, or `role:<name> (group:<name>)
|
|
1724
|
+
`role-direct:<name>`, or `role:<name> (group:<name>)`; an item
|
|
1725
|
+
reached through a `pset:all` grant names the set and the grant's
|
|
1726
|
+
source, such as `pset:<set name> (direct via pset:all)`.
|
|
1699
1727
|
items:
|
|
1700
1728
|
type: string
|
|
1701
1729
|
examples:
|
|
1702
1730
|
- - pset:Order tools (direct)
|
|
1731
|
+
- - pset:Order tools (direct via pset:all)
|
|
1703
1732
|
EffectiveAccess:
|
|
1704
1733
|
type: object
|
|
1705
1734
|
description: |-
|
|
@@ -1827,7 +1856,11 @@ components:
|
|
|
1827
1856
|
description: |-
|
|
1828
1857
|
Source attribution strings such as `direct`, `group:<name>`,
|
|
1829
1858
|
`pset:<name> (group:<name>)`, `role-direct:<name>`, or
|
|
1830
|
-
`role:<name> (group:<name>)
|
|
1859
|
+
`role:<name> (group:<name>)`; an item reached through a
|
|
1860
|
+
`pset:all` grant names the set and the grant's source, such
|
|
1861
|
+
as `pset:<set name> (direct via pset:all)`,
|
|
1862
|
+
`pset:<set name> (group:<name> via pset:all)` or
|
|
1863
|
+
`pset:<set name> (role-direct:<role> via pset:all)`.
|
|
1831
1864
|
items:
|
|
1832
1865
|
type: string
|
|
1833
1866
|
deniedTools:
|
|
@@ -7847,15 +7880,14 @@ components:
|
|
|
7847
7880
|
EndUserUpdateRequest:
|
|
7848
7881
|
type: object
|
|
7849
7882
|
description: |-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
- resourceGrants
|
|
7883
|
+
Access to store for an end user. Each array sent replaces the stored one
|
|
7884
|
+
in full, so it must carry every entry to keep, not just the changes; an
|
|
7885
|
+
array left out of the body stays as stored — send `_roleIds` alone to
|
|
7886
|
+
change the roles without touching memberships or direct grants.
|
|
7855
7887
|
properties:
|
|
7856
7888
|
groupMemberships:
|
|
7857
7889
|
type: array
|
|
7858
|
-
description: Complete set of groups the end user should belong to after the update.
|
|
7890
|
+
description: Complete set of groups the end user should belong to after the update. `source` defaults to `manual` on an entry that omits it.
|
|
7859
7891
|
items:
|
|
7860
7892
|
$ref: '#/components/schemas/GroupMembership'
|
|
7861
7893
|
resourceGrants:
|
|
@@ -7863,6 +7895,32 @@ components:
|
|
|
7863
7895
|
description: Complete set of direct resource grants the end user should hold after the update.
|
|
7864
7896
|
items:
|
|
7865
7897
|
$ref: '#/components/schemas/ResourceGrant'
|
|
7898
|
+
_roleIds:
|
|
7899
|
+
type: array
|
|
7900
|
+
description: Complete set of roles pinned directly to the end user after the update. Each id must name a role of this account (400 `validation_failed` otherwise).
|
|
7901
|
+
items:
|
|
7902
|
+
type: string
|
|
7903
|
+
format: objectId
|
|
7904
|
+
x-celigo-refModel: roles
|
|
7905
|
+
GroupExternalId:
|
|
7906
|
+
type: object
|
|
7907
|
+
description: One identity-provider group id pinned to a group.
|
|
7908
|
+
required:
|
|
7909
|
+
- _idpConfigId
|
|
7910
|
+
- value
|
|
7911
|
+
properties:
|
|
7912
|
+
_idpConfigId:
|
|
7913
|
+
type: string
|
|
7914
|
+
format: objectId
|
|
7915
|
+
x-celigo-refModel: idpconfigs
|
|
7916
|
+
examples:
|
|
7917
|
+
- 68d1e2f3a4b5c6d7e8f9a0b1
|
|
7918
|
+
description: IdP configuration whose group claim carries this id.
|
|
7919
|
+
value:
|
|
7920
|
+
type: string
|
|
7921
|
+
examples:
|
|
7922
|
+
- a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
|
|
7923
|
+
description: The group's id as the identity provider sends it in the claim.
|
|
7866
7924
|
Group:
|
|
7867
7925
|
type: object
|
|
7868
7926
|
description: |-
|
|
@@ -7930,6 +7988,30 @@ components:
|
|
|
7930
7988
|
group push. Maintained by the server — IdP-synced memberships cannot be
|
|
7931
7989
|
removed through the group members API. Groups a SCIM push names that do
|
|
7932
7990
|
not exist yet are created with this flag set and no grants.
|
|
7991
|
+
provisionedBy:
|
|
7992
|
+
type: string
|
|
7993
|
+
enum:
|
|
7994
|
+
- manual
|
|
7995
|
+
- idp-sync
|
|
7996
|
+
- scim
|
|
7997
|
+
x-enumDescriptions:
|
|
7998
|
+
manual: Created by an owner or administrator in the UI or through this API
|
|
7999
|
+
idp-sync: Created by group-claim sync at an end user's sign-in (`groupSync.autoCreateGroups` on the IdP configuration)
|
|
8000
|
+
scim: Created by the identity provider's SCIM group push
|
|
8001
|
+
description: |-
|
|
8002
|
+
How the group came to exist. Absent on groups created in the UI or
|
|
8003
|
+
through this API unless set on write; a group an identity provider
|
|
8004
|
+
created carries its channel.
|
|
8005
|
+
externalIds:
|
|
8006
|
+
type: array
|
|
8007
|
+
description: |-
|
|
8008
|
+
Identity-provider group ids pinned to this group for group-claim
|
|
8009
|
+
sync, as (`_idpConfigId`, `value`) pairs. The server keeps the pins
|
|
8010
|
+
across a replace: omitting the field, or sending an empty array, on
|
|
8011
|
+
the update operation leaves the stored pins unchanged. A repeated
|
|
8012
|
+
pair is rejected with 422 `duplicate_external_id`.
|
|
8013
|
+
items:
|
|
8014
|
+
$ref: '#/components/schemas/GroupExternalId'
|
|
7933
8015
|
createdAt:
|
|
7934
8016
|
type: string
|
|
7935
8017
|
format: date-time
|
|
@@ -7983,6 +8065,30 @@ components:
|
|
|
7983
8065
|
description: Resource grants to attach directly to the group. `_resourceId` values must reference resources owned by the same account.
|
|
7984
8066
|
items:
|
|
7985
8067
|
$ref: '#/components/schemas/ResourceGrant'
|
|
8068
|
+
provisionedBy:
|
|
8069
|
+
type: string
|
|
8070
|
+
enum:
|
|
8071
|
+
- manual
|
|
8072
|
+
- idp-sync
|
|
8073
|
+
- scim
|
|
8074
|
+
x-enumDescriptions:
|
|
8075
|
+
manual: Created by an owner or administrator in the UI or through this API
|
|
8076
|
+
idp-sync: Created by group-claim sync at an end user's sign-in
|
|
8077
|
+
scim: Created by the identity provider's SCIM group push
|
|
8078
|
+
description: |-
|
|
8079
|
+
Provenance to record on the group; normally written by the server for
|
|
8080
|
+
groups an identity provider creates. Kept as stored when omitted on a
|
|
8081
|
+
replace.
|
|
8082
|
+
externalIds:
|
|
8083
|
+
type: array
|
|
8084
|
+
description: |-
|
|
8085
|
+
Identity-provider group ids to pin to this group for group-claim
|
|
8086
|
+
sync. Each `_idpConfigId` must name an IdP configuration of this
|
|
8087
|
+
account (422 `invalid_ref` otherwise). Omitting the field, or sending
|
|
8088
|
+
an empty array, on a replace keeps the stored pins — the server
|
|
8089
|
+
manages them.
|
|
8090
|
+
items:
|
|
8091
|
+
$ref: '#/components/schemas/GroupExternalId'
|
|
7986
8092
|
GroupMembersRequest:
|
|
7987
8093
|
type: object
|
|
7988
8094
|
description: End users to add to or remove from the group.
|
package/dist/import.yml
CHANGED
|
@@ -4182,6 +4182,21 @@ components:
|
|
|
4182
4182
|
renders an empty string, not the value.
|
|
4183
4183
|
examples:
|
|
4184
4184
|
- address.city
|
|
4185
|
+
x-celigo-ai-guidance:
|
|
4186
|
+
- |-
|
|
4187
|
+
A Handlebars `extract` is evaluated by the Celigo bundle
|
|
4188
|
+
installed in the NetSuite account, which knows fewer
|
|
4189
|
+
helpers than the platform's Handlebars catalog: a helper
|
|
4190
|
+
it lacks (`pluck`, `eq`, `isEmpty`, `startsWith`,
|
|
4191
|
+
`jsonParse` and others) fails the record in the mapping
|
|
4192
|
+
preview and at runtime with
|
|
4193
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Missing helper:
|
|
4194
|
+
"<name>"`, although the same expression renders on the
|
|
4195
|
+
platform's Handlebars processor (the Playground). Prove
|
|
4196
|
+
a row with the mapping preview, and on that error switch
|
|
4197
|
+
helper rather than retry — see
|
|
4198
|
+
`mapping.lists[].fields[].extract` for examples of
|
|
4199
|
+
helpers observed present and missing.
|
|
4185
4200
|
generate:
|
|
4186
4201
|
type: string
|
|
4187
4202
|
description: |
|
|
@@ -4545,6 +4560,46 @@ components:
|
|
|
4545
4560
|
the number: `#if` treats a real `0` rate as empty.
|
|
4546
4561
|
The same expression on a body row (`fields[]`) renders
|
|
4547
4562
|
the first line's value only.
|
|
4563
|
+
- |-
|
|
4564
|
+
The engine evaluating a Handlebars `extract` is the
|
|
4565
|
+
Celigo bundle installed in the NetSuite account,
|
|
4566
|
+
whose helper set is smaller than the platform's
|
|
4567
|
+
Handlebars catalog. A helper the bundle
|
|
4568
|
+
lacks fails the record — in the mapping preview and
|
|
4569
|
+
at runtime alike — with `INVALID_HANDLE_BAR_EXPRESSION`
|
|
4570
|
+
/ `Could not compile handle bar "{{…}}" because
|
|
4571
|
+
"Missing helper: "<name>""`, and the record is
|
|
4572
|
+
dropped. Helpers observed missing on the probed
|
|
4573
|
+
account include `pluck`, `eq`, `isEmpty`, `startsWith`, `padLeft`,
|
|
4574
|
+
`padRight`, `jsonParse`, `inArray`, `not`, `some`,
|
|
4575
|
+
`typeOf`, `unique`, `reverse`, `trimLeft`,
|
|
4576
|
+
`trimRight`, `htmlEncode`, `htmlDecode` and the case
|
|
4577
|
+
helpers (`camelcase`, `snakecase`, `dashcase`,
|
|
4578
|
+
`dotcase`, `pascalcase`, `pathcase`, `sentence`);
|
|
4579
|
+
helpers observed present include `add`, `sum`, `multiply`,
|
|
4580
|
+
`subtract`, `divide`, `round`, `toFixed`, `join`,
|
|
4581
|
+
`split`, `replace`, `regexReplace`, `uppercase`,
|
|
4582
|
+
`lowercase`, `trim`, `dateFormat`, `#if`,
|
|
4583
|
+
`#compare`, `#contains`, `#each`, `#filter`,
|
|
4584
|
+
`#with` — examples, not the set: a helper named in
|
|
4585
|
+
neither list is proven only by the preview. The same
|
|
4586
|
+
expression renders on the platform's Handlebars
|
|
4587
|
+
processor (the Playground), so a render there proves
|
|
4588
|
+
nothing about this engine — the mapping preview is
|
|
4589
|
+
the check, and on a `Missing helper` error switch
|
|
4590
|
+
helper rather than retry. For a line's total over a nested array (the
|
|
4591
|
+
sum of its `tax_lines[].price`) no probed form
|
|
4592
|
+
produced it: `pluck` is missing, `{{sum
|
|
4593
|
+
line_items[*].tax_lines.price}}` renders `0`, and a
|
|
4594
|
+
multi-argument `sum` keeps only its first argument
|
|
4595
|
+
(`{{sum 1 2 3}}` renders `1`; `{{sum <array
|
|
4596
|
+
field>}}` adds the array's numbers) — so plan on the
|
|
4597
|
+
value arriving on the line already computed (the
|
|
4598
|
+
step producing the record, or an Integration App's
|
|
4599
|
+
own hook), or on fixed positions:
|
|
4600
|
+
`{{add line_items[*].tax_lines.[0].price
|
|
4601
|
+
line_items[*].tax_lines.[1].price}}` renders the
|
|
4602
|
+
two prices added.
|
|
4548
4603
|
generate:
|
|
4549
4604
|
type: string
|
|
4550
4605
|
description: |-
|
|
@@ -4962,7 +5017,8 @@ components:
|
|
|
4962
5017
|
`PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
|
|
4963
5018
|
editor's Preview) evaluates lookups for real — resolved
|
|
4964
5019
|
internal ids appear in `nlobjSublistIds`, misses and
|
|
4965
|
-
compile errors in `
|
|
5020
|
+
compile errors in `mappingErrors[]` (beside `jsObjects`
|
|
5021
|
+
under `data.returnedObjects`) — and handles
|
|
4966
5022
|
`[*]` in plain substitutions and inside a branch's output.
|
|
4967
5023
|
It does NOT apply the per-line evaluation to `[*]` used as a
|
|
4968
5024
|
block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
|
|
@@ -4976,6 +5032,28 @@ components:
|
|
|
4976
5032
|
A mapping row's `extract` with the same block-helper shape IS
|
|
4977
5033
|
rendered per line by the preview — see
|
|
4978
5034
|
`netsuite_da.mapping.lists[].fields[].extract`.
|
|
5035
|
+
- |-
|
|
5036
|
+
## The engine's helper set is the installed bundle's
|
|
5037
|
+
|
|
5038
|
+
The Handlebars in an `expression` is evaluated by the Celigo
|
|
5039
|
+
bundle installed in the NetSuite account, whose helper set
|
|
5040
|
+
is smaller than the platform's Handlebars catalog. A helper
|
|
5041
|
+
it lacks fails the record with
|
|
5042
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Could not compile handle
|
|
5043
|
+
bar "<expression>" because "Missing helper: "<name>""` —
|
|
5044
|
+
in the preview (under `data.returnedObjects.mappingErrors`,
|
|
5045
|
+
observed for `{{{pluck line_items[*].tax_lines 'price'}}}`
|
|
5046
|
+
and `{{{eq line_items[*].sku "CA-011"}}}` as the criterion
|
|
5047
|
+
value of a sublist-row lookup) and at runtime — although
|
|
5048
|
+
the same expression renders on the platform's Handlebars
|
|
5049
|
+
processor (the Playground). Examples of helpers observed
|
|
5050
|
+
present and missing are on `mapping.lists[].fields[].extract`
|
|
5051
|
+
(the engine is the same for both); a helper named in neither
|
|
5052
|
+
list is proven only by the preview. On that error switch to a
|
|
5053
|
+
helper the engine has, never retry the same one; the preview
|
|
5054
|
+
is the check for an expression it evaluates (the forms
|
|
5055
|
+
above), and a block-helper `[*]` lookup expression stays on
|
|
5056
|
+
the validate-with-a-run rule.
|
|
4979
5057
|
operator:
|
|
4980
5058
|
type: string
|
|
4981
5059
|
description: |-
|
package/dist/mcp-server.yml
CHANGED
|
@@ -4869,11 +4869,14 @@ components:
|
|
|
4869
4869
|
description: |-
|
|
4870
4870
|
Source attribution strings such as `direct`, `group:<name>`,
|
|
4871
4871
|
`pset:<name> (direct)`, `pset:<name> (group:<name>)`,
|
|
4872
|
-
`role-direct:<name>`, or `role:<name> (group:<name>)
|
|
4872
|
+
`role-direct:<name>`, or `role:<name> (group:<name>)`; an item
|
|
4873
|
+
reached through a `pset:all` grant names the set and the grant's
|
|
4874
|
+
source, such as `pset:<set name> (direct via pset:all)`.
|
|
4873
4875
|
items:
|
|
4874
4876
|
type: string
|
|
4875
4877
|
examples:
|
|
4876
4878
|
- - pset:Order tools (direct)
|
|
4879
|
+
- - pset:Order tools (direct via pset:all)
|
|
4877
4880
|
MCPServerEffectiveAccess:
|
|
4878
4881
|
type: object
|
|
4879
4882
|
description: |-
|
|
@@ -4952,7 +4955,10 @@ components:
|
|
|
4952
4955
|
description: |-
|
|
4953
4956
|
Source attribution strings such as `direct`, `group:<name>`,
|
|
4954
4957
|
`pset:<name> (group:<name>)`, `role-direct:<name>`, or
|
|
4955
|
-
`role:<name> (group:<name>)
|
|
4958
|
+
`role:<name> (group:<name>)`; an item reached through a
|
|
4959
|
+
`pset:all` grant names the set and the grant's source, such
|
|
4960
|
+
as `pset:<set name> (direct via pset:all)` or
|
|
4961
|
+
`pset:<set name> (group:<name> via pset:all)`.
|
|
4956
4962
|
items:
|
|
4957
4963
|
type: string
|
|
4958
4964
|
apis:
|
|
@@ -10894,22 +10900,26 @@ components:
|
|
|
10894
10900
|
- rest
|
|
10895
10901
|
GrantCapability:
|
|
10896
10902
|
type: string
|
|
10897
|
-
pattern: ^(?:tool|api|prompt|resource):(?:[a-fA-F0-9]{24}|all)$|^pset:[a-fA-F0-9]{24}$
|
|
10903
|
+
pattern: ^(?:tool|api|prompt|resource):(?:[a-fA-F0-9]{24}|all)$|^pset:(?:[a-fA-F0-9]{24}|all)$
|
|
10898
10904
|
description: |-
|
|
10899
10905
|
Capability string granting access on this server. `tool:`, `api:`,
|
|
10900
10906
|
`prompt:`, and `resource:` take either `all` or a 24-hex id — a
|
|
10901
10907
|
`tools[]._toolId` or upstream tool row `_id`, an `apis[]._apiId`, a
|
|
10902
10908
|
`prompts[]._id`, or a `resources[]._id` — and `pset:` takes a
|
|
10903
|
-
`permissionSets[]._id`. Each `:all` covers only its own kind
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
+
`permissionSets[]._id` or `all`. Each `:all` covers only its own kind;
|
|
10910
|
+
`pset:all` covers every permission set on this server, sets added later
|
|
10911
|
+
included, and reaches only what the sets contain — an attached tool or
|
|
10912
|
+
prompt in no set stays denied. Grant prompts with
|
|
10913
|
+
`prompt:<_id>` — older grants written as `tool:<prompt _id>` still
|
|
10914
|
+
validate but are not reported by effective access. Any other shape is
|
|
10915
|
+
rejected with 400 `validation_failed` ("Invalid capability"), and an id
|
|
10916
|
+
not attached to this server with 400 `validation_failed` naming the
|
|
10917
|
+
missing item.
|
|
10909
10918
|
examples:
|
|
10910
10919
|
- tool:all
|
|
10911
10920
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
|
10912
10921
|
- pset:6a7b8c9d0e1f2a3b4c5d6e7f
|
|
10922
|
+
- pset:all
|
|
10913
10923
|
BulkAssignEndUsersRequest:
|
|
10914
10924
|
type: object
|
|
10915
10925
|
description: |-
|
package/dist/tool.yml
CHANGED
|
@@ -16568,6 +16568,21 @@ components:
|
|
|
16568
16568
|
renders an empty string, not the value.
|
|
16569
16569
|
examples:
|
|
16570
16570
|
- address.city
|
|
16571
|
+
x-celigo-ai-guidance:
|
|
16572
|
+
- |-
|
|
16573
|
+
A Handlebars `extract` is evaluated by the Celigo bundle
|
|
16574
|
+
installed in the NetSuite account, which knows fewer
|
|
16575
|
+
helpers than the platform's Handlebars catalog: a helper
|
|
16576
|
+
it lacks (`pluck`, `eq`, `isEmpty`, `startsWith`,
|
|
16577
|
+
`jsonParse` and others) fails the record in the mapping
|
|
16578
|
+
preview and at runtime with
|
|
16579
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Missing helper:
|
|
16580
|
+
"<name>"`, although the same expression renders on the
|
|
16581
|
+
platform's Handlebars processor (the Playground). Prove
|
|
16582
|
+
a row with the mapping preview, and on that error switch
|
|
16583
|
+
helper rather than retry — see
|
|
16584
|
+
`mapping.lists[].fields[].extract` for examples of
|
|
16585
|
+
helpers observed present and missing.
|
|
16571
16586
|
generate:
|
|
16572
16587
|
type: string
|
|
16573
16588
|
description: |
|
|
@@ -16931,6 +16946,46 @@ components:
|
|
|
16931
16946
|
the number: `#if` treats a real `0` rate as empty.
|
|
16932
16947
|
The same expression on a body row (`fields[]`) renders
|
|
16933
16948
|
the first line's value only.
|
|
16949
|
+
- |-
|
|
16950
|
+
The engine evaluating a Handlebars `extract` is the
|
|
16951
|
+
Celigo bundle installed in the NetSuite account,
|
|
16952
|
+
whose helper set is smaller than the platform's
|
|
16953
|
+
Handlebars catalog. A helper the bundle
|
|
16954
|
+
lacks fails the record — in the mapping preview and
|
|
16955
|
+
at runtime alike — with `INVALID_HANDLE_BAR_EXPRESSION`
|
|
16956
|
+
/ `Could not compile handle bar "{{…}}" because
|
|
16957
|
+
"Missing helper: "<name>""`, and the record is
|
|
16958
|
+
dropped. Helpers observed missing on the probed
|
|
16959
|
+
account include `pluck`, `eq`, `isEmpty`, `startsWith`, `padLeft`,
|
|
16960
|
+
`padRight`, `jsonParse`, `inArray`, `not`, `some`,
|
|
16961
|
+
`typeOf`, `unique`, `reverse`, `trimLeft`,
|
|
16962
|
+
`trimRight`, `htmlEncode`, `htmlDecode` and the case
|
|
16963
|
+
helpers (`camelcase`, `snakecase`, `dashcase`,
|
|
16964
|
+
`dotcase`, `pascalcase`, `pathcase`, `sentence`);
|
|
16965
|
+
helpers observed present include `add`, `sum`, `multiply`,
|
|
16966
|
+
`subtract`, `divide`, `round`, `toFixed`, `join`,
|
|
16967
|
+
`split`, `replace`, `regexReplace`, `uppercase`,
|
|
16968
|
+
`lowercase`, `trim`, `dateFormat`, `#if`,
|
|
16969
|
+
`#compare`, `#contains`, `#each`, `#filter`,
|
|
16970
|
+
`#with` — examples, not the set: a helper named in
|
|
16971
|
+
neither list is proven only by the preview. The same
|
|
16972
|
+
expression renders on the platform's Handlebars
|
|
16973
|
+
processor (the Playground), so a render there proves
|
|
16974
|
+
nothing about this engine — the mapping preview is
|
|
16975
|
+
the check, and on a `Missing helper` error switch
|
|
16976
|
+
helper rather than retry. For a line's total over a nested array (the
|
|
16977
|
+
sum of its `tax_lines[].price`) no probed form
|
|
16978
|
+
produced it: `pluck` is missing, `{{sum
|
|
16979
|
+
line_items[*].tax_lines.price}}` renders `0`, and a
|
|
16980
|
+
multi-argument `sum` keeps only its first argument
|
|
16981
|
+
(`{{sum 1 2 3}}` renders `1`; `{{sum <array
|
|
16982
|
+
field>}}` adds the array's numbers) — so plan on the
|
|
16983
|
+
value arriving on the line already computed (the
|
|
16984
|
+
step producing the record, or an Integration App's
|
|
16985
|
+
own hook), or on fixed positions:
|
|
16986
|
+
`{{add line_items[*].tax_lines.[0].price
|
|
16987
|
+
line_items[*].tax_lines.[1].price}}` renders the
|
|
16988
|
+
two prices added.
|
|
16934
16989
|
generate:
|
|
16935
16990
|
type: string
|
|
16936
16991
|
description: |-
|
|
@@ -17348,7 +17403,8 @@ components:
|
|
|
17348
17403
|
`PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
|
|
17349
17404
|
editor's Preview) evaluates lookups for real — resolved
|
|
17350
17405
|
internal ids appear in `nlobjSublistIds`, misses and
|
|
17351
|
-
compile errors in `
|
|
17406
|
+
compile errors in `mappingErrors[]` (beside `jsObjects`
|
|
17407
|
+
under `data.returnedObjects`) — and handles
|
|
17352
17408
|
`[*]` in plain substitutions and inside a branch's output.
|
|
17353
17409
|
It does NOT apply the per-line evaluation to `[*]` used as a
|
|
17354
17410
|
block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
|
|
@@ -17362,6 +17418,28 @@ components:
|
|
|
17362
17418
|
A mapping row's `extract` with the same block-helper shape IS
|
|
17363
17419
|
rendered per line by the preview — see
|
|
17364
17420
|
`netsuite_da.mapping.lists[].fields[].extract`.
|
|
17421
|
+
- |-
|
|
17422
|
+
## The engine's helper set is the installed bundle's
|
|
17423
|
+
|
|
17424
|
+
The Handlebars in an `expression` is evaluated by the Celigo
|
|
17425
|
+
bundle installed in the NetSuite account, whose helper set
|
|
17426
|
+
is smaller than the platform's Handlebars catalog. A helper
|
|
17427
|
+
it lacks fails the record with
|
|
17428
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Could not compile handle
|
|
17429
|
+
bar "<expression>" because "Missing helper: "<name>""` —
|
|
17430
|
+
in the preview (under `data.returnedObjects.mappingErrors`,
|
|
17431
|
+
observed for `{{{pluck line_items[*].tax_lines 'price'}}}`
|
|
17432
|
+
and `{{{eq line_items[*].sku "CA-011"}}}` as the criterion
|
|
17433
|
+
value of a sublist-row lookup) and at runtime — although
|
|
17434
|
+
the same expression renders on the platform's Handlebars
|
|
17435
|
+
processor (the Playground). Examples of helpers observed
|
|
17436
|
+
present and missing are on `mapping.lists[].fields[].extract`
|
|
17437
|
+
(the engine is the same for both); a helper named in neither
|
|
17438
|
+
list is proven only by the preview. On that error switch to a
|
|
17439
|
+
helper the engine has, never retry the same one; the preview
|
|
17440
|
+
is the check for an expression it evaluates (the forms
|
|
17441
|
+
above), and a block-helper `[*]` lookup expression stays on
|
|
17442
|
+
the validate-with-a-run rule.
|
|
17365
17443
|
operator:
|
|
17366
17444
|
type: string
|
|
17367
17445
|
description: |-
|
package/dist/user.yml
CHANGED
|
@@ -889,25 +889,32 @@ components:
|
|
|
889
889
|
description: |-
|
|
890
890
|
Capabilities granted on the target resource. Each `:all` capability
|
|
891
891
|
covers only its own kind — grant `tool:all`, `api:all`, `prompt:all`,
|
|
892
|
-
and `resource:all` together to open every item on a server.
|
|
892
|
+
and `resource:all` together to open every item on a server. `pset:all`
|
|
893
|
+
covers every permission set on the target server, including sets added
|
|
894
|
+
later, and stays in place when a set is deleted; it reaches only what
|
|
895
|
+
the sets contain — an attached tool or prompt in no set stays denied.
|
|
896
|
+
Deleting a set rewrites each `pset:<_id>` grant
|
|
897
|
+
that named it — on end users, groups and roles — to the set's member
|
|
898
|
+
capabilities, so access is kept rather than dropped.
|
|
893
899
|
items:
|
|
894
900
|
type: string
|
|
895
|
-
pattern: ^(?:tool|api|prompt|resource):(?:[a-fA-F0-9]{24}|all)$|^pset:[a-fA-F0-9]{24}$
|
|
901
|
+
pattern: ^(?:tool|api|prompt|resource):(?:[a-fA-F0-9]{24}|all)$|^pset:(?:[a-fA-F0-9]{24}|all)$
|
|
896
902
|
description: |-
|
|
897
903
|
Capability string for an `mcpServer` grant. `tool:`, `api:`,
|
|
898
904
|
`prompt:`, and `resource:` take `all` or a 24-hex id on the target
|
|
899
905
|
server — a `tools[]._toolId` or upstream tool row `_id`, an
|
|
900
906
|
`apis[]._apiId`, a `prompts[]._id`, or a `resources[]._id`; `pset:`
|
|
901
|
-
takes a `permissionSets[]._id`. Grant prompts with
|
|
902
|
-
older grants written as `tool:<prompt _id>` still
|
|
903
|
-
not reported by effective access. Any other shape
|
|
904
|
-
400 `validation_failed` ("Invalid capability"), and
|
|
905
|
-
not attached to the target server with 400
|
|
906
|
-
naming the missing item.
|
|
907
|
+
takes a `permissionSets[]._id` or `all`. Grant prompts with
|
|
908
|
+
`prompt:<_id>`: older grants written as `tool:<prompt _id>` still
|
|
909
|
+
validate but are not reported by effective access. Any other shape
|
|
910
|
+
is rejected with 400 `validation_failed` ("Invalid capability"), and
|
|
911
|
+
an id that is not attached to the target server with 400
|
|
912
|
+
`validation_failed` naming the missing item.
|
|
907
913
|
examples:
|
|
908
914
|
- tool:all
|
|
909
915
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
|
910
916
|
- pset:6c3d4e5f6a7b8c9d0e1f2a3b
|
|
917
|
+
- pset:all
|
|
911
918
|
GroupMembership:
|
|
912
919
|
type: object
|
|
913
920
|
description: An end user's membership in a group, with the source that created it.
|
package/package.json
CHANGED