code: def list(self, project_name: str, repo_id: str) -> List[Secret]:
      body = ListSecretsRequest(repo_id=repo_id)
      resp = self._request(
          f"/api/project/{project_name}/secrets/list", body=body.json()
      )
      return parse_obj_as(List[Secret], resp.json())
  
file_path: dstack/src/dstack/api/server/_secrets.py
imports: from typing import List
  from pydantic import parse_obj_as
  from dstack._internal.core.models.secrets import Secret
  from dstack._internal.server.schemas.secrets import AddSecretRequest, DeleteSecretsRequest, GetSecretsRequest, ListSecretsRequest
  from dstack.api.server._group import APIClientGroup
label_desc: Use image node_id 1 for calling the SecretsAPIClient obj's underlying member method code with example usage: obj.list(project_name, repo_id) and returns: parse_obj_as