fix(ringcentral): change dmPolicy default to allowlist

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
John Lin 2026-01-28 10:28:07 +08:00
parent 7e57e324d1
commit fac7419ca0
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ export RINGCENTRAL_JWT="your-jwt-token"
| `selfOnly` | boolean | `true` | Only respond to JWT user in Personal chat |
| `name` | string | - | Bot display name |
| `textChunkLimit` | number | `4000` | Maximum characters per message chunk |
| `dmPolicy` | string | `"pairing"` | DM policy (only when `selfOnly: false`) |
| `dmPolicy` | string | `"allowlist"` | DM policy (only when `selfOnly: false`) |
| `groupPolicy` | string | `"allowlist"` | Group policy (only when `selfOnly: false`) |
> **Note:** When `selfOnly: true` (default), the bot only responds to the JWT user in their Personal chat. All other policy settings (`dmPolicy`, `allowFrom`, `groupPolicy`, etc.) are ignored.

View File

@ -30,7 +30,7 @@ const RingCentralAccountSchemaBase = z
webhookPath: z.string().optional(),
webhookVerificationToken: z.string().optional(),
markdown: MarkdownConfigSchema,
dmPolicy: DmPolicySchema.optional().default("pairing"),
dmPolicy: DmPolicySchema.optional().default("allowlist"),
allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
groupPolicy: GroupPolicySchema.optional().default("allowlist"),
groupAllowFrom: z.array(z.union([z.string(), z.number()])).optional(),