<?php

declare(strict_types=1);

namespace Kreait\Firebase;

use SensitiveParameter;

/**
 * @internal
 */
final class ServiceAccount
{
    public function __construct(
        /** @var non-empty-string */
        public string $type,
        /** @var non-empty-string */
        public string $projectId,
        /** @var non-empty-string */
        public string $clientEmail,
        /** @var non-empty-string */
        #[SensitiveParameter]
        public string $privateKey,
        /** @var non-empty-string|null */
        public ?string $clientId = null,
        /** @var non-empty-string|null */
        public ?string $privateKeyId = null,
        /** @var non-empty-string|null */
        public ?string $authUri = null,
        /** @var non-empty-string|null */
        public ?string $tokenUri = null,
        /** @var non-empty-string|null */
        public ?string $authProviderX509CertUrl = null,
        /** @var non-empty-string|null */
        public ?string $clientX509CertUrl = null,
        /** @var non-empty-string|null */
        public ?string $quotaProjectId = null,
        /** @var non-empty-string|null */
        public ?string $universeDomain = null,
    ) {
    }
}
