@mestra-dev/contract 0.0.254 → 0.0.255
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.
- package/dist/index.d.ts +145 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,14 @@ declare const PERSONA_CHOICES: {
|
|
|
34
34
|
};
|
|
35
35
|
type PersonaChoice = keyof typeof PERSONA_CHOICES;
|
|
36
36
|
type PersonaChoiceOption<Field extends PersonaChoice> = keyof (typeof PERSONA_CHOICES)[Field]["options"] & string;
|
|
37
|
+
declare const PAYMENT_METHODS: {
|
|
38
|
+
readonly cash: "cash";
|
|
39
|
+
readonly card: "card";
|
|
40
|
+
readonly bank_transfer: "bank transfer";
|
|
41
|
+
readonly online: "online payment";
|
|
42
|
+
readonly installments: "installments";
|
|
43
|
+
};
|
|
44
|
+
type PaymentMethod = keyof typeof PAYMENT_METHODS;
|
|
37
45
|
type AiUnavailableReason =
|
|
38
46
|
/** AI_ENABLED is not set: the master switch for the whole deployment. */
|
|
39
47
|
"service_disabled" | "no_subscription" | "subscription_not_active"
|
|
@@ -9791,16 +9799,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9791
9799
|
success: true;
|
|
9792
9800
|
settings: {
|
|
9793
9801
|
enabled: boolean;
|
|
9794
|
-
systemPrompt: string | null;
|
|
9795
|
-
preferences: {
|
|
9796
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
9797
|
-
};
|
|
9798
9802
|
persona: {
|
|
9799
9803
|
language: PersonaChoiceOption<"language">;
|
|
9800
9804
|
tone: PersonaChoiceOption<"tone">;
|
|
9801
9805
|
detail: PersonaChoiceOption<"detail">;
|
|
9802
|
-
|
|
9803
|
-
|
|
9806
|
+
};
|
|
9807
|
+
business: {
|
|
9808
|
+
openingHours: {
|
|
9809
|
+
monday?: {
|
|
9810
|
+
open: string;
|
|
9811
|
+
close: string;
|
|
9812
|
+
} | undefined;
|
|
9813
|
+
tuesday?: {
|
|
9814
|
+
open: string;
|
|
9815
|
+
close: string;
|
|
9816
|
+
} | undefined;
|
|
9817
|
+
wednesday?: {
|
|
9818
|
+
open: string;
|
|
9819
|
+
close: string;
|
|
9820
|
+
} | undefined;
|
|
9821
|
+
thursday?: {
|
|
9822
|
+
open: string;
|
|
9823
|
+
close: string;
|
|
9824
|
+
} | undefined;
|
|
9825
|
+
friday?: {
|
|
9826
|
+
open: string;
|
|
9827
|
+
close: string;
|
|
9828
|
+
} | undefined;
|
|
9829
|
+
saturday?: {
|
|
9830
|
+
open: string;
|
|
9831
|
+
close: string;
|
|
9832
|
+
} | undefined;
|
|
9833
|
+
sunday?: {
|
|
9834
|
+
open: string;
|
|
9835
|
+
close: string;
|
|
9836
|
+
} | undefined;
|
|
9837
|
+
} | null;
|
|
9838
|
+
address: string | null;
|
|
9839
|
+
paymentMethods: PaymentMethod[] | null;
|
|
9804
9840
|
};
|
|
9805
9841
|
};
|
|
9806
9842
|
availability: {
|
|
@@ -9827,13 +9863,44 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9827
9863
|
json: {
|
|
9828
9864
|
workspace: string;
|
|
9829
9865
|
enabled?: boolean | undefined;
|
|
9830
|
-
systemPrompt?: string | null | undefined;
|
|
9831
9866
|
persona?: {
|
|
9832
9867
|
language?: PersonaChoiceOption<"language"> | null | undefined;
|
|
9833
9868
|
tone?: PersonaChoiceOption<"tone"> | null | undefined;
|
|
9834
9869
|
detail?: PersonaChoiceOption<"detail"> | null | undefined;
|
|
9835
|
-
|
|
9836
|
-
|
|
9870
|
+
} | undefined;
|
|
9871
|
+
business?: {
|
|
9872
|
+
openingHours?: {
|
|
9873
|
+
monday?: {
|
|
9874
|
+
open: string;
|
|
9875
|
+
close: string;
|
|
9876
|
+
} | undefined;
|
|
9877
|
+
tuesday?: {
|
|
9878
|
+
open: string;
|
|
9879
|
+
close: string;
|
|
9880
|
+
} | undefined;
|
|
9881
|
+
wednesday?: {
|
|
9882
|
+
open: string;
|
|
9883
|
+
close: string;
|
|
9884
|
+
} | undefined;
|
|
9885
|
+
thursday?: {
|
|
9886
|
+
open: string;
|
|
9887
|
+
close: string;
|
|
9888
|
+
} | undefined;
|
|
9889
|
+
friday?: {
|
|
9890
|
+
open: string;
|
|
9891
|
+
close: string;
|
|
9892
|
+
} | undefined;
|
|
9893
|
+
saturday?: {
|
|
9894
|
+
open: string;
|
|
9895
|
+
close: string;
|
|
9896
|
+
} | undefined;
|
|
9897
|
+
sunday?: {
|
|
9898
|
+
open: string;
|
|
9899
|
+
close: string;
|
|
9900
|
+
} | undefined;
|
|
9901
|
+
} | null | undefined;
|
|
9902
|
+
address?: string | null | undefined;
|
|
9903
|
+
paymentMethods?: ("cash" | "card" | "installments" | "bank_transfer" | "online")[] | null | undefined;
|
|
9837
9904
|
} | undefined;
|
|
9838
9905
|
};
|
|
9839
9906
|
};
|
|
@@ -9841,19 +9908,82 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9841
9908
|
success: true;
|
|
9842
9909
|
settings: {
|
|
9843
9910
|
enabled: boolean;
|
|
9844
|
-
systemPrompt: string | null;
|
|
9845
|
-
preferences: {
|
|
9846
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
9847
|
-
};
|
|
9848
9911
|
persona: {
|
|
9849
9912
|
language: PersonaChoiceOption<"language">;
|
|
9850
9913
|
tone: PersonaChoiceOption<"tone">;
|
|
9851
9914
|
detail: PersonaChoiceOption<"detail">;
|
|
9852
|
-
businessDescription: string | null;
|
|
9853
|
-
customInstructions: string | null;
|
|
9854
9915
|
};
|
|
9916
|
+
business: {
|
|
9917
|
+
openingHours: {
|
|
9918
|
+
monday?: {
|
|
9919
|
+
open: string;
|
|
9920
|
+
close: string;
|
|
9921
|
+
} | undefined;
|
|
9922
|
+
tuesday?: {
|
|
9923
|
+
open: string;
|
|
9924
|
+
close: string;
|
|
9925
|
+
} | undefined;
|
|
9926
|
+
wednesday?: {
|
|
9927
|
+
open: string;
|
|
9928
|
+
close: string;
|
|
9929
|
+
} | undefined;
|
|
9930
|
+
thursday?: {
|
|
9931
|
+
open: string;
|
|
9932
|
+
close: string;
|
|
9933
|
+
} | undefined;
|
|
9934
|
+
friday?: {
|
|
9935
|
+
open: string;
|
|
9936
|
+
close: string;
|
|
9937
|
+
} | undefined;
|
|
9938
|
+
saturday?: {
|
|
9939
|
+
open: string;
|
|
9940
|
+
close: string;
|
|
9941
|
+
} | undefined;
|
|
9942
|
+
sunday?: {
|
|
9943
|
+
open: string;
|
|
9944
|
+
close: string;
|
|
9945
|
+
} | undefined;
|
|
9946
|
+
} | null;
|
|
9947
|
+
address: string | null;
|
|
9948
|
+
paymentMethods: PaymentMethod[] | null;
|
|
9949
|
+
};
|
|
9950
|
+
};
|
|
9951
|
+
};
|
|
9952
|
+
outputFormat: "json";
|
|
9953
|
+
status: 200;
|
|
9954
|
+
};
|
|
9955
|
+
};
|
|
9956
|
+
} & {
|
|
9957
|
+
"/rooms/:workspace": {
|
|
9958
|
+
$get: {
|
|
9959
|
+
input: {
|
|
9960
|
+
param: {
|
|
9961
|
+
workspace: string;
|
|
9855
9962
|
};
|
|
9856
9963
|
};
|
|
9964
|
+
output: {
|
|
9965
|
+
success: true;
|
|
9966
|
+
disabledRooms: string[];
|
|
9967
|
+
};
|
|
9968
|
+
outputFormat: "json";
|
|
9969
|
+
status: 200;
|
|
9970
|
+
};
|
|
9971
|
+
};
|
|
9972
|
+
} & {
|
|
9973
|
+
"/rooms": {
|
|
9974
|
+
$post: {
|
|
9975
|
+
input: {
|
|
9976
|
+
json: {
|
|
9977
|
+
workspace: string;
|
|
9978
|
+
roomId: string;
|
|
9979
|
+
enabled: boolean;
|
|
9980
|
+
};
|
|
9981
|
+
};
|
|
9982
|
+
output: {
|
|
9983
|
+
success: true;
|
|
9984
|
+
roomId: string;
|
|
9985
|
+
enabled: boolean;
|
|
9986
|
+
};
|
|
9857
9987
|
outputFormat: "json";
|
|
9858
9988
|
status: 200;
|
|
9859
9989
|
};
|