@mestra-dev/contract 0.0.245 → 0.0.247

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +51 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3,6 +3,37 @@ import type { JwtVariables } from 'hono/jwt';
3
3
 
4
4
  type FinanceCurrency = "ruble" | "dollar" | "euro";
5
5
  type FinanceTransactionType = "refund" | "income" | "expense" | "transfer";
6
+ declare const PERSONA_CHOICES: {
7
+ readonly language: {
8
+ readonly label: "Language";
9
+ readonly default: "auto";
10
+ readonly options: {
11
+ readonly auto: "Write in the language of the customer's most recent message.";
12
+ readonly ru: "Write in Russian.";
13
+ readonly en: "Write in English.";
14
+ };
15
+ };
16
+ readonly tone: {
17
+ readonly label: "Tone";
18
+ readonly default: "professional";
19
+ readonly options: {
20
+ readonly professional: "Polite, clear and businesslike.";
21
+ readonly friendly: "Warm and approachable, while staying respectful.";
22
+ readonly formal: "Formal and courteous, with no slang or emoji.";
23
+ };
24
+ };
25
+ readonly detail: {
26
+ readonly label: "Length";
27
+ readonly default: "brief";
28
+ readonly options: {
29
+ readonly brief: "One to three short sentences.";
30
+ readonly balanced: "A short paragraph: the answer plus one helpful detail or next step.";
31
+ readonly detailed: "A thorough but focused answer, in a few short paragraphs at most.";
32
+ };
33
+ };
34
+ };
35
+ type PersonaChoice = keyof typeof PERSONA_CHOICES;
36
+ type PersonaChoiceOption<Field extends PersonaChoice> = keyof (typeof PERSONA_CHOICES)[Field]["options"] & string;
6
37
  type AiUnavailableReason =
7
38
  /** AI_ENABLED is not set: the master switch for the whole deployment. */
8
39
  "service_disabled" | "no_subscription" | "subscription_not_active"
@@ -9746,6 +9777,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9746
9777
  preferences: {
9747
9778
  [x: string]: import("hono/utils/types").JSONValue;
9748
9779
  };
9780
+ persona: {
9781
+ language: PersonaChoiceOption<"language">;
9782
+ tone: PersonaChoiceOption<"tone">;
9783
+ detail: PersonaChoiceOption<"detail">;
9784
+ businessDescription: string | null;
9785
+ customInstructions: string | null;
9786
+ };
9749
9787
  };
9750
9788
  availability: {
9751
9789
  available: boolean;
@@ -9772,8 +9810,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
9772
9810
  workspace: string;
9773
9811
  enabled?: boolean | undefined;
9774
9812
  systemPrompt?: string | null | undefined;
9775
- preferences?: {
9776
- [x: string]: unknown;
9813
+ persona?: {
9814
+ language?: PersonaChoiceOption<"language"> | null | undefined;
9815
+ tone?: PersonaChoiceOption<"tone"> | null | undefined;
9816
+ detail?: PersonaChoiceOption<"detail"> | null | undefined;
9817
+ businessDescription?: string | null | undefined;
9818
+ customInstructions?: string | null | undefined;
9777
9819
  } | undefined;
9778
9820
  };
9779
9821
  };
@@ -9785,6 +9827,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
9785
9827
  preferences: {
9786
9828
  [x: string]: import("hono/utils/types").JSONValue;
9787
9829
  };
9830
+ persona: {
9831
+ language: PersonaChoiceOption<"language">;
9832
+ tone: PersonaChoiceOption<"tone">;
9833
+ detail: PersonaChoiceOption<"detail">;
9834
+ businessDescription: string | null;
9835
+ customInstructions: string | null;
9836
+ };
9788
9837
  };
9789
9838
  };
9790
9839
  outputFormat: "json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.245",
3
+ "version": "0.0.247",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,