UNPKG

@fairmint/canton-node-sdk

Version:
18 lines 720 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GrantUserRights = void 0; const core_1 = require("../../../../../core"); const operations_1 = require("../../../schemas/operations"); exports.GrantUserRights = (0, core_1.createApiOperation)({ paramsSchema: operations_1.GrantUserRightsParamsSchema, method: 'POST', buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}/rights`, buildRequestData: (params) => // Canton API expects userId in both the URL path AND the request body // Always inject empty string for identityProviderId ({ ...params, identityProviderId: '', }), }); //# sourceMappingURL=grant-user-rights.js.map