diff --git a/src/api/deprecated.ts b/src/api/deprecated.ts index 36f4d57..819c982 100644 --- a/src/api/deprecated.ts +++ b/src/api/deprecated.ts @@ -179,9 +179,9 @@ export class DeprecatedApiClient extends BasePermitApi implements IDeprecatedPer await this.ensureContext(ApiContextLevel.ENVIRONMENT); try { - const response = await this._roles.listRoles({ + const response = (await this._roles.listRoles({ ...this.config.apiContext.environmentContext, - }); + })) as AxiosResponse; this.logger.debug(`[${response.status}] permit.api.listRoles()`); return response.data; diff --git a/src/api/resources.ts b/src/api/resources.ts index bf0c1a5..1d5c9eb 100644 --- a/src/api/resources.ts +++ b/src/api/resources.ts @@ -128,7 +128,7 @@ export class ResourcesApi extends BasePermitApi implements IResourcesApi { /** * Retrieves a list of resources. * - * @param pagination The pagination options, @see {@link IBasePaginationExtended} + * @param pagination The pagination options, @see {@link IPaginationExtended} * @returns A promise that resolves to an array of resources. * @throws {@link PermitApiError} If the API returns an error HTTP status code. * @throws {@link PermitContextError} If the configured {@link ApiContext} does not match the required endpoint context.