From 3c5b9cc4022c47adb5670936bafea9f322d7c4dc Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Mon, 3 Aug 2026 16:52:32 +0000 Subject: [PATCH] fix(teal): teal client app password is required --- .../configuration/clients/_env_configs/_tealfm.md | 14 +++++++------- .../common/infrastructure/config/client/tealfm.ts | 2 +- .../common/infrastructure/config/source/tealfm.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docsite/docs/configuration/clients/_env_configs/_tealfm.md b/docsite/docs/configuration/clients/_env_configs/_tealfm.md index 3b59266f..5a518e37 100644 --- a/docsite/docs/configuration/clients/_env_configs/_tealfm.md +++ b/docsite/docs/configuration/clients/_env_configs/_tealfm.md @@ -1,7 +1,7 @@ -| Environmental Variable | Type | Default | Description | -| ------------------------- | ------- | -------------------- | --------------------------------------- | -| _**`TEALFM_ID`**_ | string | | A globally unique ID EX `myComponentId` | -| `TEALFM_NAME` | string | Value of `TEALFM_ID` | A vanity name EX `My Cool Component` | -| `TEALFM_ENABLE` | boolean | true | Should this component be used? | -| _**`TEALFM_IDENTIFIER`**_ | string | | Identify the account to login as | -| `TEALFM_APP_PW` | string | | | \ No newline at end of file +| Environmental Variable | Type | Default | Description | +| ------------------------- | ------- | -------------------- | --------------------------------------------------------------------------------------------- | +| _**`TEALFM_ID`**_ | string | | A globally unique ID EX `myComponentId` | +| `TEALFM_NAME` | string | Value of `TEALFM_ID` | A vanity name EX `My Cool Component` | +| `TEALFM_ENABLE` | boolean | true | Should this component be used? | +| _**`TEALFM_IDENTIFIER`**_ | string | | Identify the account to login as | +| _**`TEALFM_APP_PW`**_ | string | | The [App Password](https://atproto.com/specs/xrpc#app-passwords) you created for your account | \ No newline at end of file diff --git a/src/backend/common/infrastructure/config/client/tealfm.ts b/src/backend/common/infrastructure/config/client/tealfm.ts index b9caef33..3dd2a3a2 100644 --- a/src/backend/common/infrastructure/config/client/tealfm.ts +++ b/src/backend/common/infrastructure/config/client/tealfm.ts @@ -7,7 +7,7 @@ import {commonClientConfigSchema, commonClientDataSchema, commonClientOptionsSch export const tealDataSchema = z.object({ ...requestRetryOptionsSchema.shape, ...atProtoUserIdentifierDataSchema.shape, - ...atProtoAppDataSchema.partial().shape, + ...atProtoAppDataSchema.shape, /** * The base URI of the Multi-Scrobbler to use for ATProto OAuth * diff --git a/src/backend/common/infrastructure/config/source/tealfm.ts b/src/backend/common/infrastructure/config/source/tealfm.ts index 39adb78b..c65efde1 100644 --- a/src/backend/common/infrastructure/config/source/tealfm.ts +++ b/src/backend/common/infrastructure/config/source/tealfm.ts @@ -15,7 +15,7 @@ export type TealSourceData = z.infer; const envDataSchema = z.object({ SOURCE_TEALFM_IDENTIFIER: tealSourceDataSchema.shape.identifier, - SOURCE_TEALFM_APP_PW: tealSourceDataSchema.shape.appPassword, + SOURCE_TEALFM_APP_PW: tealSourceDataSchema.shape.appPassword.optional(), }); export const envSchemas: EnvSourceSchema = { -- 2.51.2