@dotcms/ai 26.8.10-1 → 26.8.10-1-next.2504

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 CHANGED
@@ -20,6 +20,34 @@ Safety isn't a setting you turn on; it's the shape of the runtime:
20
20
  npm install @dotcms/ai
21
21
  ```
22
22
 
23
+ ## Which SDK Version Should I Use?
24
+
25
+ dotCMS SDKs are published in lockstep with dotCMS itself: every `@dotcms/*` package ships
26
+ at the **exact same version number** as the dotCMS release it was built for (e.g. dotCMS
27
+ `26.7.14-1` → `@dotcms/client@26.7.14-1`, `@dotcms/react@26.7.14-1`, and so on).
28
+
29
+ **Simple rule of thumb: use the SDK version that matches your dotCMS instance's version.**
30
+
31
+ You don't have to upgrade the SDK every time dotCMS releases a new version (or vice versa).
32
+ Most releases don't change anything the SDKs rely on, so an older SDK usually keeps working
33
+ fine against a newer dotCMS instance. Occasionally, though, a release does include a real
34
+ breaking change — and if your SDK is older than that point, it will stop working correctly.
35
+
36
+ You don't need to track this yourself: your dotCMS instance always knows the oldest SDK
37
+ version it still supports, and the SDK checks itself against it automatically. If you're
38
+ using an SDK that's too old, you'll see a clear warning in your console telling you to
39
+ upgrade.
40
+
41
+ **Recommendation:** pin your SDKs to the same version as your dotCMS instance, and only bump
42
+ them when you upgrade dotCMS — or when the console tells you to.
43
+
44
+ > **On an LTS release?** LTS releases don't currently get their own matching SDK version.
45
+ > Until that's addressed, use the SDK version published for the closest regular release at
46
+ > or before your LTS version.
47
+ >
48
+ > Want more background on how dotCMS releases and support windows work? See
49
+ > [Release & Support Lifecycle](https://dev.dotcms.com/docs/release-support-lifecycle).
50
+
23
51
  ## The front door — one runtime, two verbs
24
52
 
25
53
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/ai",
3
- "version": "26.08.10-01",
3
+ "version": "26.8.10-1-next.2504",
4
4
  "description": "The dotCMS agentic runtime — run model-written or human-written code safely against a dotCMS instance, with auth and policy owned in one place.",
5
5
  "repository": {
6
6
  "type": "git",
package/spec.cjs.js CHANGED
@@ -1747,11 +1747,11 @@ var paths = {
1747
1747
  description: "Sort direction: choose between ascending or descending.",
1748
1748
  schema: {
1749
1749
  type: "string",
1750
- "default": "ASC",
1751
1750
  "enum": [
1752
1751
  "ASC",
1753
1752
  "DESC"
1754
- ]
1753
+ ],
1754
+ "default": "ASC"
1755
1755
  }
1756
1756
  },
1757
1757
  {
@@ -3211,7 +3211,7 @@ var paths = {
3211
3211
  "Folders"
3212
3212
  ],
3213
3213
  summary: "Search folders",
3214
- description: "Returns folders within a site matching an optional name filter and/or path scope. Supports recursive depth control, standard pagination, and sorting. With no 'name' and default path '/' + recursive=true, all site folders are returned.",
3214
+ description: "Returns folders within a site matching an optional name filter and/or path scope. Supports recursive depth control, standard pagination, and sorting. With no 'name' and default path '/' + recursive=true, all site folders are returned. Each folder carries the detail fields a folder-edit form needs (title, sortOrder, filesMasks, defaultFileType, showOnMenu, defaultBaseType). Set 'includePermissions=true' to also receive the permission types the requesting user holds on each folder; that flag caps 'perPage' (see the parameter description).",
3215
3215
  operationId: "searchFolders",
3216
3216
  parameters: [
3217
3217
  {
@@ -3254,11 +3254,11 @@ var paths = {
3254
3254
  description: "Column to sort by.",
3255
3255
  schema: {
3256
3256
  type: "string",
3257
- "default": "name",
3258
3257
  "enum": [
3259
3258
  "name",
3260
3259
  "mod_date"
3261
- ]
3260
+ ],
3261
+ "default": "name"
3262
3262
  }
3263
3263
  },
3264
3264
  {
@@ -3267,11 +3267,11 @@ var paths = {
3267
3267
  description: "Sort direction",
3268
3268
  schema: {
3269
3269
  type: "string",
3270
- "default": "ASC",
3271
3270
  "enum": [
3272
3271
  "ASC",
3273
3272
  "DESC"
3274
- ]
3273
+ ],
3274
+ "default": "ASC"
3275
3275
  }
3276
3276
  },
3277
3277
  {
@@ -3293,6 +3293,15 @@ var paths = {
3293
3293
  format: "int32",
3294
3294
  "default": 40
3295
3295
  }
3296
+ },
3297
+ {
3298
+ name: "includePermissions",
3299
+ "in": "query",
3300
+ description: "When true, each returned folder includes a 'permissions' array with the permission types the requesting user holds on it (READ, EDIT, PUBLISH, EDIT_PERMISSIONS, CAN_ADD_CHILDREN). When false (the default) 'permissions' is null — meaning 'not requested', which is not the same as an empty array ('requested, no grants'). Because permissions are resolved per page, enabling this flag caps 'perPage' at the value of the 'content.drive.folder.search.permissions.max.per.page' configuration property (default 200); a larger 'perPage' is rejected with a 400.",
3301
+ schema: {
3302
+ type: "boolean",
3303
+ "default": false
3304
+ }
3296
3305
  }
3297
3306
  ],
3298
3307
  responses: {
@@ -3304,7 +3313,7 @@ var paths = {
3304
3313
  }
3305
3314
  },
3306
3315
  "400": {
3307
- description: "'siteId' is required; 'name' must be at least 2 characters if provided"
3316
+ description: "'siteId' is required; 'name' must be at least 2 characters if provided; 'perPage' exceeds the maximum allowed when 'includePermissions' is true"
3308
3317
  },
3309
3318
  "401": {
3310
3319
  description: "User is not authenticated"
@@ -10998,11 +11007,11 @@ var paths = {
10998
11007
  description: "*Optional.* Case-insensitive parameter indicating how results are to be displayed.\n\nIn listing mode, all associated actions are returned; in editing mode (the default), it returns only the actions accessible to the contentlet's current workflow step.",
10999
11008
  schema: {
11000
11009
  type: "string",
11001
- "default": "EDITING",
11002
11010
  "enum": [
11003
11011
  "EDITING",
11004
11012
  "LISTING"
11005
- ]
11013
+ ],
11014
+ "default": "EDITING"
11006
11015
  }
11007
11016
  }
11008
11017
  ],
@@ -14021,10 +14030,10 @@ var paths = {
14021
14030
  type: {
14022
14031
  type: "string"
14023
14032
  },
14024
- bitPermission: {
14033
+ individualPermission: {
14025
14034
  type: "boolean"
14026
14035
  },
14027
- individualPermission: {
14036
+ bitPermission: {
14028
14037
  type: "boolean"
14029
14038
  },
14030
14039
  roleId: {
@@ -14509,11 +14518,11 @@ var paths = {
14509
14518
  description: "Asset version to retrieve. Accepted values: working (default), live.",
14510
14519
  schema: {
14511
14520
  type: "string",
14512
- "default": "working",
14513
14521
  "enum": [
14514
14522
  "working",
14515
14523
  "live"
14516
- ]
14524
+ ],
14525
+ "default": "working"
14517
14526
  },
14518
14527
  example: "working"
14519
14528
  }
@@ -14591,11 +14600,11 @@ var paths = {
14591
14600
  description: "Asset version to retrieve. Accepted values: working (default), live.",
14592
14601
  schema: {
14593
14602
  type: "string",
14594
- "default": "working",
14595
14603
  "enum": [
14596
14604
  "working",
14597
14605
  "live"
14598
- ]
14606
+ ],
14607
+ "default": "working"
14599
14608
  },
14600
14609
  example: "working"
14601
14610
  }
@@ -15698,11 +15707,11 @@ var paths = {
15698
15707
  description: "Export format",
15699
15708
  schema: {
15700
15709
  type: "string",
15701
- "default": "csv",
15702
15710
  "enum": [
15703
15711
  "csv",
15704
15712
  "json"
15705
- ]
15713
+ ],
15714
+ "default": "csv"
15706
15715
  },
15707
15716
  example: "csv"
15708
15717
  },
package/spec.esm.js CHANGED
@@ -1745,11 +1745,11 @@ var paths = {
1745
1745
  description: "Sort direction: choose between ascending or descending.",
1746
1746
  schema: {
1747
1747
  type: "string",
1748
- "default": "ASC",
1749
1748
  "enum": [
1750
1749
  "ASC",
1751
1750
  "DESC"
1752
- ]
1751
+ ],
1752
+ "default": "ASC"
1753
1753
  }
1754
1754
  },
1755
1755
  {
@@ -3209,7 +3209,7 @@ var paths = {
3209
3209
  "Folders"
3210
3210
  ],
3211
3211
  summary: "Search folders",
3212
- description: "Returns folders within a site matching an optional name filter and/or path scope. Supports recursive depth control, standard pagination, and sorting. With no 'name' and default path '/' + recursive=true, all site folders are returned.",
3212
+ description: "Returns folders within a site matching an optional name filter and/or path scope. Supports recursive depth control, standard pagination, and sorting. With no 'name' and default path '/' + recursive=true, all site folders are returned. Each folder carries the detail fields a folder-edit form needs (title, sortOrder, filesMasks, defaultFileType, showOnMenu, defaultBaseType). Set 'includePermissions=true' to also receive the permission types the requesting user holds on each folder; that flag caps 'perPage' (see the parameter description).",
3213
3213
  operationId: "searchFolders",
3214
3214
  parameters: [
3215
3215
  {
@@ -3252,11 +3252,11 @@ var paths = {
3252
3252
  description: "Column to sort by.",
3253
3253
  schema: {
3254
3254
  type: "string",
3255
- "default": "name",
3256
3255
  "enum": [
3257
3256
  "name",
3258
3257
  "mod_date"
3259
- ]
3258
+ ],
3259
+ "default": "name"
3260
3260
  }
3261
3261
  },
3262
3262
  {
@@ -3265,11 +3265,11 @@ var paths = {
3265
3265
  description: "Sort direction",
3266
3266
  schema: {
3267
3267
  type: "string",
3268
- "default": "ASC",
3269
3268
  "enum": [
3270
3269
  "ASC",
3271
3270
  "DESC"
3272
- ]
3271
+ ],
3272
+ "default": "ASC"
3273
3273
  }
3274
3274
  },
3275
3275
  {
@@ -3291,6 +3291,15 @@ var paths = {
3291
3291
  format: "int32",
3292
3292
  "default": 40
3293
3293
  }
3294
+ },
3295
+ {
3296
+ name: "includePermissions",
3297
+ "in": "query",
3298
+ description: "When true, each returned folder includes a 'permissions' array with the permission types the requesting user holds on it (READ, EDIT, PUBLISH, EDIT_PERMISSIONS, CAN_ADD_CHILDREN). When false (the default) 'permissions' is null — meaning 'not requested', which is not the same as an empty array ('requested, no grants'). Because permissions are resolved per page, enabling this flag caps 'perPage' at the value of the 'content.drive.folder.search.permissions.max.per.page' configuration property (default 200); a larger 'perPage' is rejected with a 400.",
3299
+ schema: {
3300
+ type: "boolean",
3301
+ "default": false
3302
+ }
3294
3303
  }
3295
3304
  ],
3296
3305
  responses: {
@@ -3302,7 +3311,7 @@ var paths = {
3302
3311
  }
3303
3312
  },
3304
3313
  "400": {
3305
- description: "'siteId' is required; 'name' must be at least 2 characters if provided"
3314
+ description: "'siteId' is required; 'name' must be at least 2 characters if provided; 'perPage' exceeds the maximum allowed when 'includePermissions' is true"
3306
3315
  },
3307
3316
  "401": {
3308
3317
  description: "User is not authenticated"
@@ -10996,11 +11005,11 @@ var paths = {
10996
11005
  description: "*Optional.* Case-insensitive parameter indicating how results are to be displayed.\n\nIn listing mode, all associated actions are returned; in editing mode (the default), it returns only the actions accessible to the contentlet's current workflow step.",
10997
11006
  schema: {
10998
11007
  type: "string",
10999
- "default": "EDITING",
11000
11008
  "enum": [
11001
11009
  "EDITING",
11002
11010
  "LISTING"
11003
- ]
11011
+ ],
11012
+ "default": "EDITING"
11004
11013
  }
11005
11014
  }
11006
11015
  ],
@@ -14019,10 +14028,10 @@ var paths = {
14019
14028
  type: {
14020
14029
  type: "string"
14021
14030
  },
14022
- bitPermission: {
14031
+ individualPermission: {
14023
14032
  type: "boolean"
14024
14033
  },
14025
- individualPermission: {
14034
+ bitPermission: {
14026
14035
  type: "boolean"
14027
14036
  },
14028
14037
  roleId: {
@@ -14507,11 +14516,11 @@ var paths = {
14507
14516
  description: "Asset version to retrieve. Accepted values: working (default), live.",
14508
14517
  schema: {
14509
14518
  type: "string",
14510
- "default": "working",
14511
14519
  "enum": [
14512
14520
  "working",
14513
14521
  "live"
14514
- ]
14522
+ ],
14523
+ "default": "working"
14515
14524
  },
14516
14525
  example: "working"
14517
14526
  }
@@ -14589,11 +14598,11 @@ var paths = {
14589
14598
  description: "Asset version to retrieve. Accepted values: working (default), live.",
14590
14599
  schema: {
14591
14600
  type: "string",
14592
- "default": "working",
14593
14601
  "enum": [
14594
14602
  "working",
14595
14603
  "live"
14596
- ]
14604
+ ],
14605
+ "default": "working"
14597
14606
  },
14598
14607
  example: "working"
14599
14608
  }
@@ -15696,11 +15705,11 @@ var paths = {
15696
15705
  description: "Export format",
15697
15706
  schema: {
15698
15707
  type: "string",
15699
- "default": "csv",
15700
15708
  "enum": [
15701
15709
  "csv",
15702
15710
  "json"
15703
- ]
15711
+ ],
15712
+ "default": "csv"
15704
15713
  },
15705
15714
  example: "csv"
15706
15715
  },