import type { ExtractStrict } from 'type-fest'; import type { EndpointFromPaths } from '../types'; import type { components, paths } from './termsOfService.contract'; type TermsOfServiceEndpoints = EndpointFromPaths; export type TermsOfServiceDocumentFormat = NonNullable; export type ServiceAgreementRequest = components['schemas']['TermsOfServiceDocumentRequest']; export type ServiceAgreementResponse = components['schemas']['TermsOfServiceDocumentResponse']; export type ServiceAgreementSignRequest = components['schemas']['AcceptTermsOfServiceRequest']; /** The endpoint response always contains the legacy SDK fields; the contract marks them optional. */ export type ServiceAgreementSignResponse = Required>; /** The endpoint always returns complete acceptance entries; the contract marks them optional. */ export interface ServiceAgreementAcceptanceInfos { data: Array>>; } export type AcceptedTermsOfServiceEndpoint = ExtractStrict; export type AcceptedTermsOfServiceResponse = components['schemas']['GetAcceptedTermsOfServiceDocumentResponse']; export type AcceptTermsOfServiceAcceptEndpoint = ExtractStrict; export type AcceptTermsOfServiceAcceptRequest = components['schemas']['AcceptTermsOfServiceRequest']; export type AcceptTermsOfServiceAcceptResponse = ServiceAgreementSignResponse; export {};