@mestra-dev/contract 0.0.254 → 0.0.256

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 +149 -16
  2. 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"
@@ -822,7 +830,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
822
830
  error: string;
823
831
  };
824
832
  outputFormat: "json";
825
- status: 400 | 500 | 404 | 403;
833
+ status: 500 | 400 | 404 | 403;
826
834
  } | {
827
835
  input: {
828
836
  json: {
@@ -9791,16 +9799,45 @@ 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
- businessDescription: string | null;
9803
- customInstructions: string | null;
9806
+ };
9807
+ business: {
9808
+ about: string | null;
9809
+ openingHours: {
9810
+ monday?: {
9811
+ open: string;
9812
+ close: string;
9813
+ } | undefined;
9814
+ tuesday?: {
9815
+ open: string;
9816
+ close: string;
9817
+ } | undefined;
9818
+ wednesday?: {
9819
+ open: string;
9820
+ close: string;
9821
+ } | undefined;
9822
+ thursday?: {
9823
+ open: string;
9824
+ close: string;
9825
+ } | undefined;
9826
+ friday?: {
9827
+ open: string;
9828
+ close: string;
9829
+ } | undefined;
9830
+ saturday?: {
9831
+ open: string;
9832
+ close: string;
9833
+ } | undefined;
9834
+ sunday?: {
9835
+ open: string;
9836
+ close: string;
9837
+ } | undefined;
9838
+ } | null;
9839
+ address: string | null;
9840
+ paymentMethods: PaymentMethod[] | null;
9804
9841
  };
9805
9842
  };
9806
9843
  availability: {
@@ -9827,13 +9864,45 @@ declare const routes: import("hono/hono-base").HonoBase<{
9827
9864
  json: {
9828
9865
  workspace: string;
9829
9866
  enabled?: boolean | undefined;
9830
- systemPrompt?: string | null | undefined;
9831
9867
  persona?: {
9832
9868
  language?: PersonaChoiceOption<"language"> | null | undefined;
9833
9869
  tone?: PersonaChoiceOption<"tone"> | null | undefined;
9834
9870
  detail?: PersonaChoiceOption<"detail"> | null | undefined;
9835
- businessDescription?: string | null | undefined;
9836
- customInstructions?: string | null | undefined;
9871
+ } | undefined;
9872
+ business?: {
9873
+ about?: string | null | undefined;
9874
+ openingHours?: {
9875
+ monday?: {
9876
+ open: string;
9877
+ close: string;
9878
+ } | undefined;
9879
+ tuesday?: {
9880
+ open: string;
9881
+ close: string;
9882
+ } | undefined;
9883
+ wednesday?: {
9884
+ open: string;
9885
+ close: string;
9886
+ } | undefined;
9887
+ thursday?: {
9888
+ open: string;
9889
+ close: string;
9890
+ } | undefined;
9891
+ friday?: {
9892
+ open: string;
9893
+ close: string;
9894
+ } | undefined;
9895
+ saturday?: {
9896
+ open: string;
9897
+ close: string;
9898
+ } | undefined;
9899
+ sunday?: {
9900
+ open: string;
9901
+ close: string;
9902
+ } | undefined;
9903
+ } | null | undefined;
9904
+ address?: string | null | undefined;
9905
+ paymentMethods?: ("cash" | "card" | "installments" | "bank_transfer" | "online")[] | null | undefined;
9837
9906
  } | undefined;
9838
9907
  };
9839
9908
  };
@@ -9841,19 +9910,83 @@ declare const routes: import("hono/hono-base").HonoBase<{
9841
9910
  success: true;
9842
9911
  settings: {
9843
9912
  enabled: boolean;
9844
- systemPrompt: string | null;
9845
- preferences: {
9846
- [x: string]: import("hono/utils/types").JSONValue;
9847
- };
9848
9913
  persona: {
9849
9914
  language: PersonaChoiceOption<"language">;
9850
9915
  tone: PersonaChoiceOption<"tone">;
9851
9916
  detail: PersonaChoiceOption<"detail">;
9852
- businessDescription: string | null;
9853
- customInstructions: string | null;
9854
9917
  };
9918
+ business: {
9919
+ about: string | null;
9920
+ openingHours: {
9921
+ monday?: {
9922
+ open: string;
9923
+ close: string;
9924
+ } | undefined;
9925
+ tuesday?: {
9926
+ open: string;
9927
+ close: string;
9928
+ } | undefined;
9929
+ wednesday?: {
9930
+ open: string;
9931
+ close: string;
9932
+ } | undefined;
9933
+ thursday?: {
9934
+ open: string;
9935
+ close: string;
9936
+ } | undefined;
9937
+ friday?: {
9938
+ open: string;
9939
+ close: string;
9940
+ } | undefined;
9941
+ saturday?: {
9942
+ open: string;
9943
+ close: string;
9944
+ } | undefined;
9945
+ sunday?: {
9946
+ open: string;
9947
+ close: string;
9948
+ } | undefined;
9949
+ } | null;
9950
+ address: string | null;
9951
+ paymentMethods: PaymentMethod[] | null;
9952
+ };
9953
+ };
9954
+ };
9955
+ outputFormat: "json";
9956
+ status: 200;
9957
+ };
9958
+ };
9959
+ } & {
9960
+ "/rooms/:workspace": {
9961
+ $get: {
9962
+ input: {
9963
+ param: {
9964
+ workspace: string;
9855
9965
  };
9856
9966
  };
9967
+ output: {
9968
+ success: true;
9969
+ disabledRooms: string[];
9970
+ };
9971
+ outputFormat: "json";
9972
+ status: 200;
9973
+ };
9974
+ };
9975
+ } & {
9976
+ "/rooms": {
9977
+ $post: {
9978
+ input: {
9979
+ json: {
9980
+ workspace: string;
9981
+ roomId: string;
9982
+ enabled: boolean;
9983
+ };
9984
+ };
9985
+ output: {
9986
+ success: true;
9987
+ roomId: string;
9988
+ enabled: boolean;
9989
+ };
9857
9990
  outputFormat: "json";
9858
9991
  status: 200;
9859
9992
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.254",
3
+ "version": "0.0.256",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,