qbo_auth: вебхук cloudevents+json (был 415), страница тестов по секретной ссылке, allowedRealmIds; требования Intuit
All checks were successful
ci / test (push) Successful in 36s
ci / deploy (push) Successful in 2m37s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 09:28:24 +03:00
parent e90b9f352d
commit 9a1a2a8a6b
9 changed files with 85 additions and 28 deletions

View File

@@ -17,6 +17,8 @@ export const qboAuthSchema = z.object({
/** Обновлять токены, если последнее обновление старше, часов (refresh token скользящий, до 100 дней). */
keepAliveHours: z.number().default(20),
/** Verifier token вебхуков Intuit (раздел Webhooks приложения: отдельный для development и production); пусто - вебхуки отклоняются. */
/** Компании QuickBooks (realmId), которые разрешено подключать (sandbox и production); пусто - без ограничения. */
allowedRealmIds: z.array(z.string().min(1)).default([]),
webhookVerifierTokens: z.array(z.string().min(1)).default([]),
});
export type QboAuthSettings = z.infer<typeof qboAuthSchema>;