@scalekit-sdk/node 2.4.0 → 2.5.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/lib/actions.d.ts +169 -0
- package/lib/actions.js +286 -0
- package/lib/actions.js.map +1 -0
- package/lib/connected-accounts.d.ts +149 -0
- package/lib/connected-accounts.js +213 -0
- package/lib/connected-accounts.js.map +1 -0
- package/lib/core.d.ts +5 -3
- package/lib/core.js +35 -13
- package/lib/core.js.map +1 -1
- package/lib/m2mclient.d.ts +122 -0
- package/lib/m2mclient.js +172 -0
- package/lib/m2mclient.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +2 -1
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/clients/clients_pb.d.ts +2597 -0
- package/lib/pkg/grpc/scalekit/v1/clients/clients_pb.js +546 -0
- package/lib/pkg/grpc/scalekit/v1/clients/clients_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.d.ts +798 -0
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +233 -0
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +78 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +17 -2
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +70 -0
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +18 -2
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +13 -0
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +8 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +504 -0
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +118 -0
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/role.d.ts +47 -1
- package/lib/role.js +65 -0
- package/lib/role.js.map +1 -1
- package/lib/scalekit.d.ts +8 -0
- package/lib/scalekit.js +8 -0
- package/lib/scalekit.js.map +1 -1
- package/lib/token.d.ts +34 -2
- package/lib/token.js +30 -0
- package/lib/token.js.map +1 -1
- package/lib/tools.d.ts +96 -0
- package/lib/tools.js +108 -0
- package/lib/tools.js.map +1 -0
- package/lib/user.d.ts +54 -1
- package/lib/user.js +85 -0
- package/lib/user.js.map +1 -1
- package/package.json +2 -2
package/lib/tools.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { type MessageInitShape } from '@bufbuild/protobuf';
|
|
2
|
+
import GrpcConnect from './connect';
|
|
3
|
+
import CoreClient from './core';
|
|
4
|
+
import { ExecuteToolResponse, FilterSchema, ListAvailableToolsResponse, ListScopedToolsResponse, ListToolsResponse, ScopedToolFilterSchema } from './pkg/grpc/scalekit/v1/tools/tools_pb';
|
|
5
|
+
/**
|
|
6
|
+
* Client for listing and executing tools.
|
|
7
|
+
*
|
|
8
|
+
* This client provides convenient helpers around the `ToolService` for:
|
|
9
|
+
* - listing all tools available in your workspace
|
|
10
|
+
* - listing tools scoped to a specific connected account identifier
|
|
11
|
+
* - executing tools using connected account credentials
|
|
12
|
+
*
|
|
13
|
+
* It mirrors the capabilities of the Python SDK `ToolsClient` while following
|
|
14
|
+
* the idioms and patterns used across the Node SDK.
|
|
15
|
+
*/
|
|
16
|
+
export default class ToolsClient {
|
|
17
|
+
private readonly grpcConnect;
|
|
18
|
+
private readonly coreClient;
|
|
19
|
+
private client;
|
|
20
|
+
constructor(grpcConnect: GrpcConnect, coreClient: CoreClient);
|
|
21
|
+
/**
|
|
22
|
+
* Lists tools available in your workspace with optional filtering and pagination.
|
|
23
|
+
*
|
|
24
|
+
* @param options Optional filter and pagination parameters
|
|
25
|
+
* @param options.filter Filter configuration. Supports `provider`, `identifier`, `toolName`, `summary`, and `query` fields.
|
|
26
|
+
* Use `query` to do a text search across tool metadata (names, descriptions, identifiers).
|
|
27
|
+
* @param options.pageSize Maximum number of tools to return per page.
|
|
28
|
+
* @param options.pageToken Token from a previous `listTools` response for pagination.
|
|
29
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
30
|
+
*/
|
|
31
|
+
listTools(options?: {
|
|
32
|
+
filter?: MessageInitShape<typeof FilterSchema>;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
pageToken?: string;
|
|
35
|
+
}): Promise<ListToolsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Lists tools that are scoped to a specific connected account identifier.
|
|
38
|
+
*
|
|
39
|
+
* @param identifier Connected account identifier to scope the tools list (for example,
|
|
40
|
+
* a workspace identifier or email).
|
|
41
|
+
* @param options Filter and pagination parameters
|
|
42
|
+
* @param options.filter Filter configuration for scoped tools (providers, tool names, connection names). Required.
|
|
43
|
+
* @param options.pageSize Maximum number of tools to return per page.
|
|
44
|
+
* @param options.pageToken Token from a previous `listScopedTools` response for pagination.
|
|
45
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
46
|
+
*/
|
|
47
|
+
listScopedTools(identifier: string, options: {
|
|
48
|
+
filter: MessageInitShape<typeof ScopedToolFilterSchema>;
|
|
49
|
+
pageSize?: number;
|
|
50
|
+
pageToken?: string;
|
|
51
|
+
}): Promise<ListScopedToolsResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Lists tools that are available for a specific connected account identifier.
|
|
54
|
+
*
|
|
55
|
+
* This is similar to `listScopedTools` but returns the tools that can be
|
|
56
|
+
* made available for a given identifier, rather than the tools that are
|
|
57
|
+
* already scoped to it.
|
|
58
|
+
*
|
|
59
|
+
* @param identifier Connected account identifier to scope the available tools list (for example,
|
|
60
|
+
* a workspace identifier or email).
|
|
61
|
+
* @param options Optional pagination parameters
|
|
62
|
+
* @param options.pageSize Maximum number of tools to return per page.
|
|
63
|
+
* @param options.pageToken Token from a previous `listAvailableTools` response for pagination.
|
|
64
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
65
|
+
*/
|
|
66
|
+
listAvailableTools(identifier: string, options?: {
|
|
67
|
+
pageSize?: number;
|
|
68
|
+
pageToken?: string;
|
|
69
|
+
}): Promise<ListAvailableToolsResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Executes a tool using credentials from a connected account.
|
|
72
|
+
*
|
|
73
|
+
* You can either:
|
|
74
|
+
* - reference the connected account directly via `connectedAccountId`, or
|
|
75
|
+
* - identify it using a combination of `identifier`, `connector`, `organizationId`, and `userId`.
|
|
76
|
+
*
|
|
77
|
+
* @param params Execution configuration
|
|
78
|
+
* @param params.toolName Name of the tool to execute.
|
|
79
|
+
* @param params.identifier Optional connected account identifier (for example, email or workspace ID).
|
|
80
|
+
* @param params.params JSON parameters required by the tool. These will be sent as a structured payload.
|
|
81
|
+
* @param params.connectedAccountId Optional direct ID of the connected account (`ca_...`).
|
|
82
|
+
* @param params.connector Optional connector/provider name when using identifier-based lookup.
|
|
83
|
+
* @param params.organizationId Optional organization ID to scope the connected account lookup.
|
|
84
|
+
* @param params.userId Optional user ID to scope the connected account lookup.
|
|
85
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
86
|
+
*/
|
|
87
|
+
executeTool(params: {
|
|
88
|
+
toolName: string;
|
|
89
|
+
identifier?: string;
|
|
90
|
+
params?: Record<string, unknown>;
|
|
91
|
+
connectedAccountId?: string;
|
|
92
|
+
connector?: string;
|
|
93
|
+
organizationId?: string;
|
|
94
|
+
userId?: string;
|
|
95
|
+
}): Promise<ExecuteToolResponse>;
|
|
96
|
+
}
|
package/lib/tools.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
13
|
+
const tools_pb_1 = require("./pkg/grpc/scalekit/v1/tools/tools_pb");
|
|
14
|
+
/**
|
|
15
|
+
* Client for listing and executing tools.
|
|
16
|
+
*
|
|
17
|
+
* This client provides convenient helpers around the `ToolService` for:
|
|
18
|
+
* - listing all tools available in your workspace
|
|
19
|
+
* - listing tools scoped to a specific connected account identifier
|
|
20
|
+
* - executing tools using connected account credentials
|
|
21
|
+
*
|
|
22
|
+
* It mirrors the capabilities of the Python SDK `ToolsClient` while following
|
|
23
|
+
* the idioms and patterns used across the Node SDK.
|
|
24
|
+
*/
|
|
25
|
+
class ToolsClient {
|
|
26
|
+
constructor(grpcConnect, coreClient) {
|
|
27
|
+
this.grpcConnect = grpcConnect;
|
|
28
|
+
this.coreClient = coreClient;
|
|
29
|
+
this.client = this.grpcConnect.createClient(tools_pb_1.ToolService);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Lists tools available in your workspace with optional filtering and pagination.
|
|
33
|
+
*
|
|
34
|
+
* @param options Optional filter and pagination parameters
|
|
35
|
+
* @param options.filter Filter configuration. Supports `provider`, `identifier`, `toolName`, `summary`, and `query` fields.
|
|
36
|
+
* Use `query` to do a text search across tool metadata (names, descriptions, identifiers).
|
|
37
|
+
* @param options.pageSize Maximum number of tools to return per page.
|
|
38
|
+
* @param options.pageToken Token from a previous `listTools` response for pagination.
|
|
39
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
40
|
+
*/
|
|
41
|
+
listTools(options) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return this.coreClient.connectExec(this.client.listTools, (0, protobuf_1.create)(tools_pb_1.ListToolsRequestSchema, Object.assign(Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.filter) && {
|
|
44
|
+
filter: (0, protobuf_1.create)(tools_pb_1.FilterSchema, options.filter),
|
|
45
|
+
})), ((options === null || options === void 0 ? void 0 : options.pageSize) !== undefined && { pageSize: options.pageSize })), ((options === null || options === void 0 ? void 0 : options.pageToken) && { pageToken: options.pageToken }))));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Lists tools that are scoped to a specific connected account identifier.
|
|
50
|
+
*
|
|
51
|
+
* @param identifier Connected account identifier to scope the tools list (for example,
|
|
52
|
+
* a workspace identifier or email).
|
|
53
|
+
* @param options Filter and pagination parameters
|
|
54
|
+
* @param options.filter Filter configuration for scoped tools (providers, tool names, connection names). Required.
|
|
55
|
+
* @param options.pageSize Maximum number of tools to return per page.
|
|
56
|
+
* @param options.pageToken Token from a previous `listScopedTools` response for pagination.
|
|
57
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
58
|
+
*/
|
|
59
|
+
listScopedTools(identifier, options) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
return this.coreClient.connectExec(this.client.listScopedTools, (0, protobuf_1.create)(tools_pb_1.ListScopedToolsRequestSchema, Object.assign(Object.assign({ identifier, filter: (0, protobuf_1.create)(tools_pb_1.ScopedToolFilterSchema, options.filter) }, (options.pageSize !== undefined && { pageSize: options.pageSize })), (options.pageToken && { pageToken: options.pageToken }))));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Lists tools that are available for a specific connected account identifier.
|
|
66
|
+
*
|
|
67
|
+
* This is similar to `listScopedTools` but returns the tools that can be
|
|
68
|
+
* made available for a given identifier, rather than the tools that are
|
|
69
|
+
* already scoped to it.
|
|
70
|
+
*
|
|
71
|
+
* @param identifier Connected account identifier to scope the available tools list (for example,
|
|
72
|
+
* a workspace identifier or email).
|
|
73
|
+
* @param options Optional pagination parameters
|
|
74
|
+
* @param options.pageSize Maximum number of tools to return per page.
|
|
75
|
+
* @param options.pageToken Token from a previous `listAvailableTools` response for pagination.
|
|
76
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
77
|
+
*/
|
|
78
|
+
listAvailableTools(identifier, options) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return this.coreClient.connectExec(this.client.listAvailableTools, (0, protobuf_1.create)(tools_pb_1.ListAvailableToolsRequestSchema, Object.assign(Object.assign({ identifier }, ((options === null || options === void 0 ? void 0 : options.pageSize) !== undefined && { pageSize: options.pageSize })), ((options === null || options === void 0 ? void 0 : options.pageToken) && { pageToken: options.pageToken }))));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Executes a tool using credentials from a connected account.
|
|
85
|
+
*
|
|
86
|
+
* You can either:
|
|
87
|
+
* - reference the connected account directly via `connectedAccountId`, or
|
|
88
|
+
* - identify it using a combination of `identifier`, `connector`, `organizationId`, and `userId`.
|
|
89
|
+
*
|
|
90
|
+
* @param params Execution configuration
|
|
91
|
+
* @param params.toolName Name of the tool to execute.
|
|
92
|
+
* @param params.identifier Optional connected account identifier (for example, email or workspace ID).
|
|
93
|
+
* @param params.params JSON parameters required by the tool. These will be sent as a structured payload.
|
|
94
|
+
* @param params.connectedAccountId Optional direct ID of the connected account (`ca_...`).
|
|
95
|
+
* @param params.connector Optional connector/provider name when using identifier-based lookup.
|
|
96
|
+
* @param params.organizationId Optional organization ID to scope the connected account lookup.
|
|
97
|
+
* @param params.userId Optional user ID to scope the connected account lookup.
|
|
98
|
+
* @throws {ScalekitServerException} If a network or server error occurs.
|
|
99
|
+
*/
|
|
100
|
+
executeTool(params) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const { toolName, identifier, params: toolParams, connectedAccountId, connector, organizationId, userId, } = params;
|
|
103
|
+
return this.coreClient.connectExec(this.client.executeTool, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ toolName }, (identifier && { identifier })), (toolParams && { params: toolParams })), (connectedAccountId && { connectedAccountId })), (connector && { connector })), (organizationId && { organizationId })), (userId && { userId })));
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.default = ToolsClient;
|
|
108
|
+
//# sourceMappingURL=tools.js.map
|
package/lib/tools.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,iDAI4B;AAI5B,oEAW+C;AAE/C;;;;;;;;;;GAUG;AACH,MAAqB,WAAW;IAG9B,YACmB,WAAwB,EACxB,UAAsB;QADtB,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;QAEvC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,sBAAW,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;OASG;IACG,SAAS,CAAC,OAIf;;YACC,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,SAAS,EACrB,IAAA,iBAAM,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AC,QAAQ,EAAE,CAAC,GACnE,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,EAC3D,CACH,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;OAgBG;IACG,WAAW,CAAC,MAQjB;;YACC,MAAM,EACJ,QAAQ,EACR,UAAU,EACV,MAAM,EAAE,UAAU,EAClB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,MAAM,GACP,GAAG,MAAM,CAAC;YAEX,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,wFACxD,QAAQ,IACL,CAAC,UAAU,IAAI,EAAE,UAAU,EAAE,CAAC,GAC9B,CAAC,UAAU,IAAI,EAAE,MAAM,EAAE,UAAwB,EAAE,CAAC,GACpD,CAAC,kBAAkB,IAAI,EAAE,kBAAkB,EAAE,CAAC,GAC9C,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,GAC5B,CAAC,cAAc,IAAI,EAAE,cAAc,EAAE,CAAC,GACtC,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,CAAC,EACzB,CAAC;QACL,CAAC;KAAA;CACF;AAhJD,8BAgJC"}
|
package/lib/user.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import type { MessageShape } from '@bufbuild/protobuf';
|
|
|
15
15
|
import { EmptySchema } from '@bufbuild/protobuf/wkt';
|
|
16
16
|
import GrpcConnect from './connect';
|
|
17
17
|
import CoreClient from './core';
|
|
18
|
-
import { CreateUserAndMembershipResponse, GetUserResponse, ListUsersResponse, UpdateUserResponse, CreateMembershipResponse, UpdateMembershipResponse, ListOrganizationUsersResponse, ResendInviteResponse } from './pkg/grpc/scalekit/v1/users/users_pb';
|
|
18
|
+
import { CreateUserAndMembershipResponse, GetUserResponse, ListUsersResponse, UpdateUserResponse, CreateMembershipResponse, UpdateMembershipResponse, ListOrganizationUsersResponse, ResendInviteResponse, ListUserRolesResponse, ListUserPermissionsResponse } from './pkg/grpc/scalekit/v1/users/users_pb';
|
|
19
19
|
import { CreateUserRequest, UpdateUserRequest as UpdateUserRequestType } from './types/user';
|
|
20
20
|
export default class UserClient {
|
|
21
21
|
private readonly grpcConnect;
|
|
@@ -615,4 +615,57 @@ export default class UserClient {
|
|
|
615
615
|
* @see {@link getUser} - Check user's invitation status
|
|
616
616
|
*/
|
|
617
617
|
resendInvite(organizationId: string, userId: string): Promise<ResendInviteResponse>;
|
|
618
|
+
/**
|
|
619
|
+
* Lists all roles assigned to a user within a specific organization.
|
|
620
|
+
*
|
|
621
|
+
* Use this method to retrieve the complete set of roles that have been granted to a user
|
|
622
|
+
* in a given organization. This is useful for authorization checks, displaying user
|
|
623
|
+
* permissions in a management UI, or auditing access control assignments.
|
|
624
|
+
*
|
|
625
|
+
* @param {string} organizationId - The organization ID to query roles for (format: "org_...")
|
|
626
|
+
* @param {string} userId - The user ID whose roles to list (format: "usr_...")
|
|
627
|
+
*
|
|
628
|
+
* @returns {Promise<ListUserRolesResponse>} Response containing:
|
|
629
|
+
* - roles: Array of Role objects assigned to the user in the organization
|
|
630
|
+
*
|
|
631
|
+
* @throws {ScalekitServerException} When the request fails (e.g. org or user not found)
|
|
632
|
+
* @throws {Error} When organizationId is missing
|
|
633
|
+
* @throws {Error} When userId is missing
|
|
634
|
+
*
|
|
635
|
+
* @example
|
|
636
|
+
* // List roles for a user in an organization
|
|
637
|
+
* const response = await scalekitClient.user.listUserRoles('org_123456', 'usr_789012');
|
|
638
|
+
* console.log('Roles:', response.roles.map(r => r.name));
|
|
639
|
+
*
|
|
640
|
+
* @see {@link https://docs.scalekit.com/apis/#tag/users | User Roles API}
|
|
641
|
+
* @see {@link listUserPermissions} - List effective permissions for the user
|
|
642
|
+
* @see {@link updateMembership} - Update the roles assigned to a user
|
|
643
|
+
*/
|
|
644
|
+
listUserRoles(organizationId: string, userId: string): Promise<ListUserRolesResponse>;
|
|
645
|
+
/**
|
|
646
|
+
* Lists all effective permissions for a user within a specific organization.
|
|
647
|
+
*
|
|
648
|
+
* Use this method to retrieve the complete set of permissions that a user has been
|
|
649
|
+
* granted in a given organization, including those derived from their assigned roles.
|
|
650
|
+
* This is useful for fine-grained authorization checks and auditing access.
|
|
651
|
+
*
|
|
652
|
+
* @param {string} organizationId - The organization ID to query permissions for (format: "org_...")
|
|
653
|
+
* @param {string} userId - The user ID whose permissions to list (format: "usr_...")
|
|
654
|
+
*
|
|
655
|
+
* @returns {Promise<ListUserPermissionsResponse>} Response containing:
|
|
656
|
+
* - permissions: Array of Permission objects effective for the user in the organization
|
|
657
|
+
*
|
|
658
|
+
* @throws {ScalekitServerException} When the request fails (e.g. org or user not found)
|
|
659
|
+
* @throws {Error} When organizationId is missing
|
|
660
|
+
* @throws {Error} When userId is missing
|
|
661
|
+
*
|
|
662
|
+
* @example
|
|
663
|
+
* // List permissions for a user in an organization
|
|
664
|
+
* const response = await scalekitClient.user.listUserPermissions('org_123456', 'usr_789012');
|
|
665
|
+
* console.log('Permissions:', response.permissions.map(p => p.name));
|
|
666
|
+
*
|
|
667
|
+
* @see {@link https://docs.scalekit.com/apis/#tag/users | User Permissions API}
|
|
668
|
+
* @see {@link listUserRoles} - List roles assigned to the user
|
|
669
|
+
*/
|
|
670
|
+
listUserPermissions(organizationId: string, userId: string): Promise<ListUserPermissionsResponse>;
|
|
618
671
|
}
|
package/lib/user.js
CHANGED
|
@@ -737,6 +737,91 @@ class UserClient {
|
|
|
737
737
|
return this.coreClient.connectExec(this.client.resendInvite, request);
|
|
738
738
|
});
|
|
739
739
|
}
|
|
740
|
+
/**
|
|
741
|
+
* Lists all roles assigned to a user within a specific organization.
|
|
742
|
+
*
|
|
743
|
+
* Use this method to retrieve the complete set of roles that have been granted to a user
|
|
744
|
+
* in a given organization. This is useful for authorization checks, displaying user
|
|
745
|
+
* permissions in a management UI, or auditing access control assignments.
|
|
746
|
+
*
|
|
747
|
+
* @param {string} organizationId - The organization ID to query roles for (format: "org_...")
|
|
748
|
+
* @param {string} userId - The user ID whose roles to list (format: "usr_...")
|
|
749
|
+
*
|
|
750
|
+
* @returns {Promise<ListUserRolesResponse>} Response containing:
|
|
751
|
+
* - roles: Array of Role objects assigned to the user in the organization
|
|
752
|
+
*
|
|
753
|
+
* @throws {ScalekitServerException} When the request fails (e.g. org or user not found)
|
|
754
|
+
* @throws {Error} When organizationId is missing
|
|
755
|
+
* @throws {Error} When userId is missing
|
|
756
|
+
*
|
|
757
|
+
* @example
|
|
758
|
+
* // List roles for a user in an organization
|
|
759
|
+
* const response = await scalekitClient.user.listUserRoles('org_123456', 'usr_789012');
|
|
760
|
+
* console.log('Roles:', response.roles.map(r => r.name));
|
|
761
|
+
*
|
|
762
|
+
* @see {@link https://docs.scalekit.com/apis/#tag/users | User Roles API}
|
|
763
|
+
* @see {@link listUserPermissions} - List effective permissions for the user
|
|
764
|
+
* @see {@link updateMembership} - Update the roles assigned to a user
|
|
765
|
+
*/
|
|
766
|
+
listUserRoles(organizationId, userId) {
|
|
767
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
768
|
+
const orgId = organizationId === null || organizationId === void 0 ? void 0 : organizationId.trim();
|
|
769
|
+
const uId = userId === null || userId === void 0 ? void 0 : userId.trim();
|
|
770
|
+
if (!orgId) {
|
|
771
|
+
throw new Error('organizationId is required');
|
|
772
|
+
}
|
|
773
|
+
if (!uId) {
|
|
774
|
+
throw new Error('userId is required');
|
|
775
|
+
}
|
|
776
|
+
const request = (0, protobuf_1.create)(users_pb_2.ListUserRolesRequestSchema, {
|
|
777
|
+
organizationId: orgId,
|
|
778
|
+
userId: uId,
|
|
779
|
+
});
|
|
780
|
+
return this.coreClient.connectExec(this.client.listUserRoles, request);
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Lists all effective permissions for a user within a specific organization.
|
|
785
|
+
*
|
|
786
|
+
* Use this method to retrieve the complete set of permissions that a user has been
|
|
787
|
+
* granted in a given organization, including those derived from their assigned roles.
|
|
788
|
+
* This is useful for fine-grained authorization checks and auditing access.
|
|
789
|
+
*
|
|
790
|
+
* @param {string} organizationId - The organization ID to query permissions for (format: "org_...")
|
|
791
|
+
* @param {string} userId - The user ID whose permissions to list (format: "usr_...")
|
|
792
|
+
*
|
|
793
|
+
* @returns {Promise<ListUserPermissionsResponse>} Response containing:
|
|
794
|
+
* - permissions: Array of Permission objects effective for the user in the organization
|
|
795
|
+
*
|
|
796
|
+
* @throws {ScalekitServerException} When the request fails (e.g. org or user not found)
|
|
797
|
+
* @throws {Error} When organizationId is missing
|
|
798
|
+
* @throws {Error} When userId is missing
|
|
799
|
+
*
|
|
800
|
+
* @example
|
|
801
|
+
* // List permissions for a user in an organization
|
|
802
|
+
* const response = await scalekitClient.user.listUserPermissions('org_123456', 'usr_789012');
|
|
803
|
+
* console.log('Permissions:', response.permissions.map(p => p.name));
|
|
804
|
+
*
|
|
805
|
+
* @see {@link https://docs.scalekit.com/apis/#tag/users | User Permissions API}
|
|
806
|
+
* @see {@link listUserRoles} - List roles assigned to the user
|
|
807
|
+
*/
|
|
808
|
+
listUserPermissions(organizationId, userId) {
|
|
809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
+
const orgId = organizationId === null || organizationId === void 0 ? void 0 : organizationId.trim();
|
|
811
|
+
const uId = userId === null || userId === void 0 ? void 0 : userId.trim();
|
|
812
|
+
if (!orgId) {
|
|
813
|
+
throw new Error('organizationId is required');
|
|
814
|
+
}
|
|
815
|
+
if (!uId) {
|
|
816
|
+
throw new Error('userId is required');
|
|
817
|
+
}
|
|
818
|
+
const request = (0, protobuf_1.create)(users_pb_2.ListUserPermissionsRequestSchema, {
|
|
819
|
+
organizationId: orgId,
|
|
820
|
+
userId: uId,
|
|
821
|
+
});
|
|
822
|
+
return this.coreClient.connectExec(this.client.listUserPermissions, request);
|
|
823
|
+
});
|
|
824
|
+
}
|
|
740
825
|
}
|
|
741
826
|
exports.default = UserClient;
|
|
742
827
|
//# sourceMappingURL=user.js.map
|
package/lib/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/user.ts"],"names":[],"mappings":";;;;;;;;;;;AAcA,iDAA4C;AAK5C,oEAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/user.ts"],"names":[],"mappings":";;;;;;;;;;;AAcA,iDAA4C;AAK5C,oEAAoE;AACpE,oEAuC+C;AAM/C,MAAqB,UAAU;IAG7B,YACmB,WAAwB,EACxB,UAAsB;QADtB,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;QAEvC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,sBAAW,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACG,uBAAuB,CAC3B,cAAsB,EACtB,OAA0B;;YAE1B,IAAI,CAAC,cAAc,EAAE,CAAC;gBACpB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;YAChD,CAAC;YACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACvC,CAAC;YAED,MAAM,IAAI,GAAG,IAAA,iBAAM,EAAC,2BAAgB,EAAE;gBACpC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,WAAW,EAAE,OAAO,CAAC,WAAW;oBAC9B,CAAC,CAAC,IAAA,iBAAM,EAAC,kCAAuB,EAAE;wBAC9B,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS;wBACxC,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ;qBACvC,CAAC;oBACJ,CAAC,CAAC,SAAS;gBACb,QAAQ,EAAE,OAAO,CA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.5.1",
|
|
3
3
|
"name": "@scalekit-sdk/node",
|
|
4
4
|
"description": "Official Scalekit Node SDK",
|
|
5
5
|
"main": "lib/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"build": "rm -rf lib && tsc",
|
|
21
21
|
"lint": "tsc --noEmit",
|
|
22
22
|
"prettier": "prettier --check .",
|
|
23
|
-
"test": "jest",
|
|
23
|
+
"test": "jest --runInBand",
|
|
24
24
|
"test:watch": "jest --watch"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|