import { ApiRequest , ApiVersionedResponse , ApiClaims } from '@mds-core/mds-api-server' ; import { Policy } from '@mds-core/mds-types' ; export const POLICY_API_SUPPORTED_VERSIONS = [ '0.4.1' ] as const ; export type POLICY_API_SUPPORTED_VERSION = typeof POLICY_API_SUPPORTED_VERSIONS [ number ] ; export const [ POLICY_API_DEFAULT_VERSION ] = POLICY_API_SUPPORTED_VERSIONS ; export type PolicyApiRequest = ApiRequest ; export type PolicyApiAccessTokenScopes = 'policies:read' ; export type PolicyApiResponse < TBody = { } > = ApiVersionedResponse < POLICY_API_SUPPORTED_VERSION , ApiClaims < PolicyApiAccessTokenScopes > , TBody > ; export type GetPolicyResponse = PolicyApiResponse < { data : { policy : Policy ; } ; } > ; export type GetPoliciesResponse = PolicyApiResponse < { data : { policies : Policy [ ] ; } ; } > ;