Ассистент менеджера: вопрос о chargeback к контракту подрядчика (khb-chargeback, п.87); граница с accounting_automation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,6 +111,13 @@ export const mailSchema = z.object({
|
||||
agentsEmail: z.string().default("agents@khbuild.pro"),
|
||||
});
|
||||
|
||||
/** accounting_automation: ручки chargeback для ассистента менеджера (команда khb-chargeback). token - токен сервиса (у агента его нет), tokenSecret - секрет токенов менеджеров. */
|
||||
export const accountingSchema = z.object({
|
||||
url: z.string().default("http://khb-accounting:8096"),
|
||||
token: z.string().min(1),
|
||||
tokenSecret: z.string().min(16),
|
||||
});
|
||||
|
||||
export const assistantPrepSchema = z.object({
|
||||
http: z.object({ host: z.string().default("127.0.0.1"), port: z.number(), token: z.string().min(1) }),
|
||||
lookaheadWorkDays: z.number().default(10),
|
||||
@@ -122,5 +129,6 @@ export const assistantPrepSchema = z.object({
|
||||
drive: driveSchema.optional(),
|
||||
tts: ttsSchema.optional(),
|
||||
mail: mailSchema.optional(),
|
||||
accounting: accountingSchema.optional(),
|
||||
});
|
||||
export type AssistantPrepSettings = z.infer<typeof assistantPrepSchema>;
|
||||
|
||||
Reference in New Issue
Block a user