Js Snclient
// reloadSchema will call GetSchema and set it in the repositoryawait repository.reloadSchema()// to get the schema result call executeAction on the repositoryconst schemas = await repository.executeAction({idOrPath: 'Root',name: 'GetSchema',method: 'GET',body: undefined,})