diff --git a/packages/pl-api/lib/client.ts b/packages/pl-api/lib/client.ts index 0a1d75c8c..69c73d9e3 100644 --- a/packages/pl-api/lib/client.ts +++ b/packages/pl-api/lib/client.ts @@ -82,7 +82,7 @@ import { subscriptionOptionSchema, suggestionSchema, tagSchema, - termfsOfServiceSchema, + termsOfServiceSchema, tokenSchema, translationSchema, trendsLinkSchema, @@ -3649,7 +3649,7 @@ class PlApiClient { getInstanceTermsOfService: async () => { const response = await this.request('/api/v1/instance/terms_of_service'); - return v.parse(termfsOfServiceSchema, response.json); + return v.parse(termsOfServiceSchema, response.json); }, /** @@ -3660,7 +3660,7 @@ class PlApiClient { getInstanceTermsOfServiceForDate: async (date: string) => { const response = await this.request(`/api/v1/instance/terms_of_service/${date}`); - return v.parse(termfsOfServiceSchema, response.json); + return v.parse(termsOfServiceSchema, response.json); }, }; diff --git a/packages/pl-api/lib/entities/terms-of-service.ts b/packages/pl-api/lib/entities/terms-of-service.ts index 169d29e97..83c8660e3 100644 --- a/packages/pl-api/lib/entities/terms-of-service.ts +++ b/packages/pl-api/lib/entities/terms-of-service.ts @@ -6,7 +6,7 @@ import { dateSchema } from './utils'; * @category Schemas * @see {@link https://docs.joinmastodon.org/entities/TermsOfService/} */ -const termfsOfServiceSchema = v.object({ +const termsOfServiceSchema = v.object({ effective_date: dateSchema, effective: v.boolean(), content: v.string(), @@ -16,6 +16,6 @@ const termfsOfServiceSchema = v.object({ /** * @category Entity types */ -type TermfsOfService = v.InferOutput; +type TermsOfService = v.InferOutput; -export { termfsOfServiceSchema, type TermfsOfService }; +export { termsOfServiceSchema, type TermsOfService };