@dotcms/ai 26.10.22-1 → 26.10.23-2
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/package.json +2 -2
- package/spec.cjs2.js +18 -7
- package/spec.esm2.js +18 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/ai",
|
|
3
|
-
"version": "26.10.
|
|
3
|
+
"version": "26.10.23-2",
|
|
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",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"directory": "core-web/libs/sdk/ai"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@dotcms/types": "26.10.
|
|
11
|
+
"@dotcms/types": "26.10.23-2",
|
|
12
12
|
"tslib": "^2.3.0",
|
|
13
13
|
"zod": "^4.1.9"
|
|
14
14
|
},
|
package/spec.cjs2.js
CHANGED
|
@@ -7540,7 +7540,7 @@ var paths = {
|
|
|
7540
7540
|
},
|
|
7541
7541
|
"/api/v1/users": {
|
|
7542
7542
|
post: {
|
|
7543
|
-
description: "Creates a new user. Requires
|
|
7543
|
+
description: "Creates a new user. Requires a CMS Administrator. FirstName, LastName, Email and Password are required",
|
|
7544
7544
|
operationId: "createUser",
|
|
7545
7545
|
requestBody: {
|
|
7546
7546
|
content: {
|
|
@@ -7583,7 +7583,7 @@ var paths = {
|
|
|
7583
7583
|
"application/json": {
|
|
7584
7584
|
}
|
|
7585
7585
|
},
|
|
7586
|
-
description: "Forbidden -
|
|
7586
|
+
description: "Forbidden - only a CMS Administrator can create users"
|
|
7587
7587
|
},
|
|
7588
7588
|
"409": {
|
|
7589
7589
|
content: {
|
|
@@ -7648,7 +7648,7 @@ var paths = {
|
|
|
7648
7648
|
}
|
|
7649
7649
|
}
|
|
7650
7650
|
},
|
|
7651
|
-
description: "If the user is not an admin or access to the role + user layouts or does have permission, it will return a 403."
|
|
7651
|
+
description: "If the user is not an admin or access to the role + user layouts or does have permission, it will return a 403. Changing the user's roles also requires a CMS Administrator; otherwise nothing is changed and a 403 is returned."
|
|
7652
7652
|
},
|
|
7653
7653
|
"404": {
|
|
7654
7654
|
content: {
|
|
@@ -7881,7 +7881,7 @@ var paths = {
|
|
|
7881
7881
|
},
|
|
7882
7882
|
"/api/v1/users/filter": {
|
|
7883
7883
|
get: {
|
|
7884
|
-
description: "Returns a list of dotCMS users based on specified search criteria with pagination support. Each item is the user's data map. When `includeRoles=true` is passed, each item additionally carries a `roles` array listing the user's directly assigned roles as `{id, name, roleKey}` objects (`roleKey` may be null for roles created without a key); roles held through the role hierarchy and the user's personal role are not included. Requesting roles requires being a CMS Administrator or having access to both the Roles and Users portlets (403 otherwise). Without the flag the payload is unchanged.",
|
|
7884
|
+
description: "Returns a list of dotCMS users based on specified search criteria with pagination support. Each item is the user's data map. When `includeRoles=true` is passed, each item additionally carries a `roles` array listing the user's directly assigned roles as `{id, name, roleKey}` objects (`roleKey` may be null for roles created without a key); roles held through the role hierarchy and the user's personal role are not included. Requesting roles requires being a CMS Administrator or having access to both the Roles and Users portlets (403 otherwise). Without the flag the payload is unchanged. Results can be restricted to users directly holding any of the given roles through `roleKey` and/or `roleId`; filtering by role requires that same privilege. The `admin` flag on each item is only returned to callers with that same privilege; for anyone else it is left out.",
|
|
7885
7885
|
operationId: "filterUsers",
|
|
7886
7886
|
parameters: [
|
|
7887
7887
|
{
|
|
@@ -7963,7 +7963,7 @@ var paths = {
|
|
|
7963
7963
|
}
|
|
7964
7964
|
},
|
|
7965
7965
|
{
|
|
7966
|
-
description: "Role key(s) to restrict results to users holding any of them; repeatable and/or comma-separated, e.g. roleKey=DOTCMS_BACK_END_USER. Requires CMS Administrator or Roles+Users portlet access (403 otherwise)",
|
|
7966
|
+
description: "Role key(s) to restrict results to users holding any of them; repeatable and/or comma-separated, e.g. roleKey=DOTCMS_BACK_END_USER (exact match). Requires CMS Administrator or Roles+Users portlet access (403 otherwise)",
|
|
7967
7967
|
"in": "query",
|
|
7968
7968
|
name: "roleKey",
|
|
7969
7969
|
schema: {
|
|
@@ -7973,6 +7973,17 @@ var paths = {
|
|
|
7973
7973
|
}
|
|
7974
7974
|
}
|
|
7975
7975
|
},
|
|
7976
|
+
{
|
|
7977
|
+
description: "Role ID(s) to restrict results to users directly holding any of them, combined with roleKey; repeatable and/or comma-separated. Also matches roles created without a key. Requires CMS Administrator or Roles+Users portlet access (403 otherwise)",
|
|
7978
|
+
"in": "query",
|
|
7979
|
+
name: "roleId",
|
|
7980
|
+
schema: {
|
|
7981
|
+
type: "array",
|
|
7982
|
+
items: {
|
|
7983
|
+
type: "string"
|
|
7984
|
+
}
|
|
7985
|
+
}
|
|
7986
|
+
},
|
|
7976
7987
|
{
|
|
7977
7988
|
description: "When true, each user carries a `roles` array of its directly assigned roles as {id, name, roleKey}; inherited roles and the user's personal role are excluded. Requires CMS Administrator or Roles+Users portlet access (403 otherwise). Defaults to false (payload unchanged)",
|
|
7978
7989
|
"in": "query",
|
|
@@ -7999,7 +8010,7 @@ var paths = {
|
|
|
7999
8010
|
"application/json": {
|
|
8000
8011
|
}
|
|
8001
8012
|
},
|
|
8002
|
-
description: "Bad request - a provided roleKey does not match any existing Role"
|
|
8013
|
+
description: "Bad request - a provided roleKey or roleId does not match any existing Role"
|
|
8003
8014
|
},
|
|
8004
8015
|
"401": {
|
|
8005
8016
|
content: {
|
|
@@ -8013,7 +8024,7 @@ var paths = {
|
|
|
8013
8024
|
"application/json": {
|
|
8014
8025
|
}
|
|
8015
8026
|
},
|
|
8016
|
-
description: "Forbidden - insufficient permissions, or includeRoles=true requested without CMS Administrator / Roles+Users portlet access"
|
|
8027
|
+
description: "Forbidden - insufficient permissions, or includeRoles=true / a role filter requested without CMS Administrator / Roles+Users portlet access"
|
|
8017
8028
|
}
|
|
8018
8029
|
},
|
|
8019
8030
|
summary: "Filter users",
|
package/spec.esm2.js
CHANGED
|
@@ -7538,7 +7538,7 @@ var paths = {
|
|
|
7538
7538
|
},
|
|
7539
7539
|
"/api/v1/users": {
|
|
7540
7540
|
post: {
|
|
7541
|
-
description: "Creates a new user. Requires
|
|
7541
|
+
description: "Creates a new user. Requires a CMS Administrator. FirstName, LastName, Email and Password are required",
|
|
7542
7542
|
operationId: "createUser",
|
|
7543
7543
|
requestBody: {
|
|
7544
7544
|
content: {
|
|
@@ -7581,7 +7581,7 @@ var paths = {
|
|
|
7581
7581
|
"application/json": {
|
|
7582
7582
|
}
|
|
7583
7583
|
},
|
|
7584
|
-
description: "Forbidden -
|
|
7584
|
+
description: "Forbidden - only a CMS Administrator can create users"
|
|
7585
7585
|
},
|
|
7586
7586
|
"409": {
|
|
7587
7587
|
content: {
|
|
@@ -7646,7 +7646,7 @@ var paths = {
|
|
|
7646
7646
|
}
|
|
7647
7647
|
}
|
|
7648
7648
|
},
|
|
7649
|
-
description: "If the user is not an admin or access to the role + user layouts or does have permission, it will return a 403."
|
|
7649
|
+
description: "If the user is not an admin or access to the role + user layouts or does have permission, it will return a 403. Changing the user's roles also requires a CMS Administrator; otherwise nothing is changed and a 403 is returned."
|
|
7650
7650
|
},
|
|
7651
7651
|
"404": {
|
|
7652
7652
|
content: {
|
|
@@ -7879,7 +7879,7 @@ var paths = {
|
|
|
7879
7879
|
},
|
|
7880
7880
|
"/api/v1/users/filter": {
|
|
7881
7881
|
get: {
|
|
7882
|
-
description: "Returns a list of dotCMS users based on specified search criteria with pagination support. Each item is the user's data map. When `includeRoles=true` is passed, each item additionally carries a `roles` array listing the user's directly assigned roles as `{id, name, roleKey}` objects (`roleKey` may be null for roles created without a key); roles held through the role hierarchy and the user's personal role are not included. Requesting roles requires being a CMS Administrator or having access to both the Roles and Users portlets (403 otherwise). Without the flag the payload is unchanged.",
|
|
7882
|
+
description: "Returns a list of dotCMS users based on specified search criteria with pagination support. Each item is the user's data map. When `includeRoles=true` is passed, each item additionally carries a `roles` array listing the user's directly assigned roles as `{id, name, roleKey}` objects (`roleKey` may be null for roles created without a key); roles held through the role hierarchy and the user's personal role are not included. Requesting roles requires being a CMS Administrator or having access to both the Roles and Users portlets (403 otherwise). Without the flag the payload is unchanged. Results can be restricted to users directly holding any of the given roles through `roleKey` and/or `roleId`; filtering by role requires that same privilege. The `admin` flag on each item is only returned to callers with that same privilege; for anyone else it is left out.",
|
|
7883
7883
|
operationId: "filterUsers",
|
|
7884
7884
|
parameters: [
|
|
7885
7885
|
{
|
|
@@ -7961,7 +7961,7 @@ var paths = {
|
|
|
7961
7961
|
}
|
|
7962
7962
|
},
|
|
7963
7963
|
{
|
|
7964
|
-
description: "Role key(s) to restrict results to users holding any of them; repeatable and/or comma-separated, e.g. roleKey=DOTCMS_BACK_END_USER. Requires CMS Administrator or Roles+Users portlet access (403 otherwise)",
|
|
7964
|
+
description: "Role key(s) to restrict results to users holding any of them; repeatable and/or comma-separated, e.g. roleKey=DOTCMS_BACK_END_USER (exact match). Requires CMS Administrator or Roles+Users portlet access (403 otherwise)",
|
|
7965
7965
|
"in": "query",
|
|
7966
7966
|
name: "roleKey",
|
|
7967
7967
|
schema: {
|
|
@@ -7971,6 +7971,17 @@ var paths = {
|
|
|
7971
7971
|
}
|
|
7972
7972
|
}
|
|
7973
7973
|
},
|
|
7974
|
+
{
|
|
7975
|
+
description: "Role ID(s) to restrict results to users directly holding any of them, combined with roleKey; repeatable and/or comma-separated. Also matches roles created without a key. Requires CMS Administrator or Roles+Users portlet access (403 otherwise)",
|
|
7976
|
+
"in": "query",
|
|
7977
|
+
name: "roleId",
|
|
7978
|
+
schema: {
|
|
7979
|
+
type: "array",
|
|
7980
|
+
items: {
|
|
7981
|
+
type: "string"
|
|
7982
|
+
}
|
|
7983
|
+
}
|
|
7984
|
+
},
|
|
7974
7985
|
{
|
|
7975
7986
|
description: "When true, each user carries a `roles` array of its directly assigned roles as {id, name, roleKey}; inherited roles and the user's personal role are excluded. Requires CMS Administrator or Roles+Users portlet access (403 otherwise). Defaults to false (payload unchanged)",
|
|
7976
7987
|
"in": "query",
|
|
@@ -7997,7 +8008,7 @@ var paths = {
|
|
|
7997
8008
|
"application/json": {
|
|
7998
8009
|
}
|
|
7999
8010
|
},
|
|
8000
|
-
description: "Bad request - a provided roleKey does not match any existing Role"
|
|
8011
|
+
description: "Bad request - a provided roleKey or roleId does not match any existing Role"
|
|
8001
8012
|
},
|
|
8002
8013
|
"401": {
|
|
8003
8014
|
content: {
|
|
@@ -8011,7 +8022,7 @@ var paths = {
|
|
|
8011
8022
|
"application/json": {
|
|
8012
8023
|
}
|
|
8013
8024
|
},
|
|
8014
|
-
description: "Forbidden - insufficient permissions, or includeRoles=true requested without CMS Administrator / Roles+Users portlet access"
|
|
8025
|
+
description: "Forbidden - insufficient permissions, or includeRoles=true / a role filter requested without CMS Administrator / Roles+Users portlet access"
|
|
8015
8026
|
}
|
|
8016
8027
|
},
|
|
8017
8028
|
summary: "Filter users",
|