chatwoot-router 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,16 +4,12 @@ export declare const configSchema: z.ZodObject<{
4
4
  chatwoot: z.ZodObject<{
5
5
  baseUrl: z.ZodURL;
6
6
  }, z.core.$strict>;
7
- reconcile: z.ZodPrefault<z.ZodObject<{
8
- lookbackSeconds: z.ZodDefault<z.ZodNumber>;
9
- maxCatchUpSeconds: z.ZodDefault<z.ZodNumber>;
10
- }, z.core.$strict>>;
11
- startAfterConversationId: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
12
7
  subrequestBudget: z.ZodDefault<z.ZodNumber>;
13
8
  routing: z.ZodObject<{
9
+ endpoint: z.ZodDefault<z.ZodURL>;
14
10
  model: z.ZodDefault<z.ZodString>;
15
11
  minConfidence: z.ZodDefault<z.ZodNumber>;
16
- snoozeUnclear: z.ZodDefault<z.ZodBoolean>;
12
+ botIds: z.ZodRecord<z.ZodString, z.ZodNumber>;
17
13
  accounts: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
18
14
  assignee: z.ZodNumber;
19
15
  covers: z.ZodString;
@@ -31,16 +27,15 @@ export declare const configSchema: z.ZodObject<{
31
27
  }, z.core.$strict>;
32
28
  export declare const secretsSchema: z.ZodObject<{
33
29
  CHATWOOT_TOKEN: z.ZodString;
34
- CHATWOOT_WEBHOOK_SECRETS: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<unknown, string>>, z.ZodRecord<z.ZodString, z.ZodString>>;
30
+ CHATWOOT_AGENT_BOT_SECRETS: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<unknown, string>>, z.ZodRecord<z.ZodString, z.ZodString>>;
35
31
  TYPESAFE_API_KEY: z.ZodString;
36
- CHATWOOT_BOT_TOKENS: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<unknown, string>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
32
+ CHATWOOT_AGENT_BOT_TOKENS: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<unknown, string>>, z.ZodRecord<z.ZodString, z.ZodString>>;
37
33
  }, z.core.$strip>;
38
34
  type Config = z.infer<typeof configSchema>;
39
35
  type Secrets = z.infer<typeof secretsSchema>;
40
36
  export interface Settings {
41
37
  config: Config;
42
38
  secrets: Secrets;
43
- botToken(accountId: number): string | undefined;
44
39
  }
45
40
  export declare function parseSettings(rawConfig: unknown, rawSecrets: object): Settings;
46
41
  export declare function buildSettings(config: Config, secrets: Secrets): Settings;
@@ -3,7 +3,7 @@ import type { Router } from "./router.ts";
3
3
  export interface Env extends ConfigEnv {
4
4
  ROUTER: DurableObjectNamespace<Router>;
5
5
  CHATWOOT_TOKEN: string;
6
- CHATWOOT_WEBHOOK_SECRETS: string;
6
+ CHATWOOT_AGENT_BOT_SECRETS: string;
7
7
  TYPESAFE_API_KEY: string;
8
- CHATWOOT_BOT_TOKENS?: string;
8
+ CHATWOOT_AGENT_BOT_TOKENS: string;
9
9
  }