@naturali/cli 0.85.4 → 0.86.1
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/index.mjs +39 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.86.1";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -4114,6 +4114,22 @@ var Users = class {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
});
|
|
4116
4116
|
}
|
|
4117
|
+
/**
|
|
4118
|
+
* Replace a user's roles
|
|
4119
|
+
*
|
|
4120
|
+
* Replaces the platform roles of any user. Needs the `admin` role, and each role that changes needs the caller to hold the role that grants it (today `admin` grants `admin`). Values outside the catalog are rejected with a 400, and a caller cannot remove their own `admin` role.
|
|
4121
|
+
*
|
|
4122
|
+
*/
|
|
4123
|
+
static updateUserRoles(options) {
|
|
4124
|
+
return (options.client ?? client).put({
|
|
4125
|
+
url: "/v1/users/{user_id}/roles",
|
|
4126
|
+
...options,
|
|
4127
|
+
headers: {
|
|
4128
|
+
"Content-Type": "application/json",
|
|
4129
|
+
...options.headers
|
|
4130
|
+
}
|
|
4131
|
+
});
|
|
4132
|
+
}
|
|
4117
4133
|
};
|
|
4118
4134
|
var Webhooks = class {
|
|
4119
4135
|
/**
|
|
@@ -14960,6 +14976,28 @@ const routes = {
|
|
|
14960
14976
|
"in": "body"
|
|
14961
14977
|
}]
|
|
14962
14978
|
},
|
|
14979
|
+
"update-user-roles": {
|
|
14980
|
+
serviceClass: "Users",
|
|
14981
|
+
operationId: "updateUserRoles",
|
|
14982
|
+
description: "Replaces the platform roles of any user. Needs the `admin` role, and each role that changes needs the caller to hold the role that grants it (today `admin` grants `admin`). Values outside the catalog are rejected with a 400, and a caller cannot remove their own `admin` role.",
|
|
14983
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
|
|
14984
|
+
httpMethod: "put",
|
|
14985
|
+
pathParams: ["user_id"],
|
|
14986
|
+
queryParams: [],
|
|
14987
|
+
flags: [{
|
|
14988
|
+
"name": "user_id",
|
|
14989
|
+
"description": "",
|
|
14990
|
+
"required": true,
|
|
14991
|
+
"type": "string",
|
|
14992
|
+
"in": "path"
|
|
14993
|
+
}, {
|
|
14994
|
+
"name": "roles",
|
|
14995
|
+
"description": "The complete new list; an empty array clears every role.",
|
|
14996
|
+
"required": true,
|
|
14997
|
+
"type": "array",
|
|
14998
|
+
"in": "body"
|
|
14999
|
+
}]
|
|
15000
|
+
},
|
|
14963
15001
|
"list-webhooks": {
|
|
14964
15002
|
serviceClass: "Webhooks",
|
|
14965
15003
|
operationId: "listWebhooks",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.86.1",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.86.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|