hububb-saas-shared 1.2.2 → 1.2.4

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 (55) hide show
  1. package/dist/schemas/ai-agent/agent-action-log.d.ts +47 -0
  2. package/dist/schemas/ai-agent/agent-action-log.js +21 -0
  3. package/dist/schemas/ai-agent/agent-thread-session.d.ts +59 -0
  4. package/dist/schemas/ai-agent/agent-thread-session.js +25 -0
  5. package/dist/schemas/ai-agent/ai-agent.d.ts +44 -0
  6. package/dist/schemas/ai-agent/ai-agent.js +20 -0
  7. package/dist/schemas/ai-agent/guest-coordinator-config.d.ts +95 -0
  8. package/dist/schemas/ai-agent/guest-coordinator-config.js +43 -0
  9. package/dist/schemas/ai-agent/host-coordinator-config.d.ts +68 -0
  10. package/dist/schemas/ai-agent/host-coordinator-config.js +33 -0
  11. package/dist/schemas/ai-agent/human-review-task.d.ts +62 -0
  12. package/dist/schemas/ai-agent/human-review-task.js +26 -0
  13. package/dist/schemas/ai-agent/index.d.ts +8 -0
  14. package/dist/schemas/ai-agent/index.js +24 -0
  15. package/dist/schemas/ai-agent/property-ai-agent-subscription.d.ts +40 -0
  16. package/dist/schemas/ai-agent/property-ai-agent-subscription.js +18 -0
  17. package/dist/schemas/ai-agent/user-ai-agent-subscription.d.ts +40 -0
  18. package/dist/schemas/ai-agent/user-ai-agent-subscription.js +18 -0
  19. package/dist/schemas/channex/booking.d.ts +2 -2
  20. package/dist/schemas/channex/thread.d.ts +2 -2
  21. package/dist/schemas/enums/index.d.ts +45 -0
  22. package/dist/schemas/enums/index.js +56 -0
  23. package/dist/schemas/index.d.ts +1 -0
  24. package/dist/schemas/index.js +1 -0
  25. package/dist/schemas/service-property/index.d.ts +19 -0
  26. package/dist/schemas/service-property/index.js +11 -0
  27. package/dist/schemas/task-checklist-item/index.d.ts +2 -2
  28. package/dist/schemas/thread/index.d.ts +6 -6
  29. package/dist/types/ai-agent/agent-action-log.d.ts +12 -0
  30. package/dist/types/ai-agent/agent-action-log.js +2 -0
  31. package/dist/types/ai-agent/agent-thread-session.d.ts +14 -0
  32. package/dist/types/ai-agent/agent-thread-session.js +2 -0
  33. package/dist/types/ai-agent/ai-agent.d.ts +8 -0
  34. package/dist/types/ai-agent/ai-agent.js +2 -0
  35. package/dist/types/ai-agent/guest-coordinator-config.d.ts +8 -0
  36. package/dist/types/ai-agent/guest-coordinator-config.js +2 -0
  37. package/dist/types/ai-agent/host-coordinator-config.d.ts +6 -0
  38. package/dist/types/ai-agent/host-coordinator-config.js +2 -0
  39. package/dist/types/ai-agent/human-review-task.d.ts +12 -0
  40. package/dist/types/ai-agent/human-review-task.js +2 -0
  41. package/dist/types/ai-agent/index.d.ts +8 -0
  42. package/dist/types/ai-agent/index.js +24 -0
  43. package/dist/types/ai-agent/property-ai-agent-subscription.d.ts +16 -0
  44. package/dist/types/ai-agent/property-ai-agent-subscription.js +2 -0
  45. package/dist/types/ai-agent/user-ai-agent-subscription.d.ts +16 -0
  46. package/dist/types/ai-agent/user-ai-agent-subscription.js +2 -0
  47. package/dist/types/enums/index.d.ts +36 -0
  48. package/dist/types/enums/index.js +46 -1
  49. package/dist/types/index.d.ts +1 -0
  50. package/dist/types/index.js +1 -0
  51. package/dist/types/property/index.d.ts +8 -0
  52. package/dist/types/service-property/index.d.ts +8 -0
  53. package/dist/types/service-property/index.js +2 -0
  54. package/dist/types/user/index.d.ts +2 -0
  55. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ export declare const userAiAgentSubscriptionSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ userId: import("zod").ZodString;
4
+ agentId: import("zod").ZodNumber;
5
+ enabled: import("zod").ZodBoolean;
6
+ enabledAt: import("zod").ZodOptional<import("zod").ZodDate>;
7
+ enabledByUserId: import("zod").ZodOptional<import("zod").ZodString>;
8
+ enabledByRole: import("zod").ZodOptional<import("zod").ZodString>;
9
+ disabledAt: import("zod").ZodOptional<import("zod").ZodDate>;
10
+ disabledByUserId: import("zod").ZodOptional<import("zod").ZodString>;
11
+ disabledByRole: import("zod").ZodOptional<import("zod").ZodString>;
12
+ createdAt: import("zod").ZodDate;
13
+ updatedAt: import("zod").ZodDate;
14
+ }, "strip", import("zod").ZodTypeAny, {
15
+ id: number;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ userId: string;
19
+ agentId: number;
20
+ enabled: boolean;
21
+ enabledAt?: Date | undefined;
22
+ enabledByUserId?: string | undefined;
23
+ enabledByRole?: string | undefined;
24
+ disabledAt?: Date | undefined;
25
+ disabledByUserId?: string | undefined;
26
+ disabledByRole?: string | undefined;
27
+ }, {
28
+ id: number;
29
+ createdAt: Date;
30
+ updatedAt: Date;
31
+ userId: string;
32
+ agentId: number;
33
+ enabled: boolean;
34
+ enabledAt?: Date | undefined;
35
+ enabledByUserId?: string | undefined;
36
+ enabledByRole?: string | undefined;
37
+ disabledAt?: Date | undefined;
38
+ disabledByUserId?: string | undefined;
39
+ disabledByRole?: string | undefined;
40
+ }>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userAiAgentSubscriptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.userAiAgentSubscriptionSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ userId: (0, zod_1.string)(),
8
+ agentId: (0, zod_1.number)().int(),
9
+ enabled: (0, zod_1.boolean)(),
10
+ enabledAt: (0, zod_1.date)().optional(),
11
+ enabledByUserId: (0, zod_1.string)().optional(),
12
+ enabledByRole: (0, zod_1.string)().optional(),
13
+ disabledAt: (0, zod_1.date)().optional(),
14
+ disabledByUserId: (0, zod_1.string)().optional(),
15
+ disabledByRole: (0, zod_1.string)().optional(),
16
+ createdAt: (0, zod_1.date)(),
17
+ updatedAt: (0, zod_1.date)(),
18
+ });
@@ -1086,9 +1086,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
1086
1086
  }>;
1087
1087
  property_id: import("zod").ZodString;
1088
1088
  }, "strip", import("zod").ZodTypeAny, {
1089
- timestamp: string;
1090
1089
  event: string;
1091
1090
  property_id: string;
1091
+ timestamp: string;
1092
1092
  payload: {
1093
1093
  property_id: string;
1094
1094
  revision_id: string;
@@ -1096,9 +1096,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
1096
1096
  };
1097
1097
  user_id?: string | null | undefined;
1098
1098
  }, {
1099
- timestamp: string;
1100
1099
  event: string;
1101
1100
  property_id: string;
1101
+ timestamp: string;
1102
1102
  payload: {
1103
1103
  property_id: string;
1104
1104
  revision_id: string;
@@ -277,9 +277,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
277
277
  }>;
278
278
  property_id: import("zod").ZodString;
279
279
  }, "strip", import("zod").ZodTypeAny, {
280
- timestamp: string;
281
280
  event: string;
282
281
  property_id: string;
282
+ timestamp: string;
283
283
  payload: {
284
284
  message: string;
285
285
  id: string;
@@ -294,9 +294,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
294
294
  };
295
295
  user_id?: string | null | undefined;
296
296
  }, {
297
- timestamp: string;
298
297
  event: string;
299
298
  property_id: string;
299
+ timestamp: string;
300
300
  payload: {
301
301
  message: string;
302
302
  id: string;
@@ -0,0 +1,45 @@
1
+ export declare enum ServiceType {
2
+ INTEGRATION = "INTEGRATION",
3
+ ON_DEMAND = "ON_DEMAND",
4
+ RECURRING = "RECURRING"
5
+ }
6
+ export declare enum TaskStatus {
7
+ PENDING = "PENDING",
8
+ CONFIRMED = "CONFIRMED",
9
+ COMPLETED = "COMPLETED",
10
+ CANCELLED = "CANCELLED"
11
+ }
12
+ export declare enum TaskPriority {
13
+ LOW = "LOW",
14
+ MEDIUM = "MEDIUM",
15
+ HIGH = "HIGH"
16
+ }
17
+ export declare enum InvoiceType {
18
+ SUBSCRIPTION = "SUBSCRIPTION",
19
+ PURCHASE = "PURCHASE"
20
+ }
21
+ export declare enum InvoiceStatus {
22
+ PENDING = "PENDING",
23
+ PAID = "PAID",
24
+ CANCELLED = "CANCELLED",
25
+ FAILED = "FAILED"
26
+ }
27
+ export declare enum PriceType {
28
+ PRORATED = "PRORATED",
29
+ FULL = "FULL"
30
+ }
31
+ export declare enum PurchaseStatus {
32
+ ACTIVE = "ACTIVE",
33
+ CANCELLED = "CANCELLED",
34
+ FAILED = "FAILED"
35
+ }
36
+ export declare enum SubscriptionStatus {
37
+ INCOMPLETE = "INCOMPLETE",
38
+ INCOMPLETE_EXPIRED = "INCOMPLETE_EXPIRED",
39
+ TRIALING = "TRIALING",
40
+ ACTIVE = "ACTIVE",
41
+ PAST_DUE = "PAST_DUE",
42
+ CANCELED = "CANCELED",
43
+ UNPAID = "UNPAID",
44
+ PAUSED = "PAUSED"
45
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
4
+ var ServiceType;
5
+ (function (ServiceType) {
6
+ ServiceType["INTEGRATION"] = "INTEGRATION";
7
+ ServiceType["ON_DEMAND"] = "ON_DEMAND";
8
+ ServiceType["RECURRING"] = "RECURRING";
9
+ })(ServiceType || (exports.ServiceType = ServiceType = {}));
10
+ var TaskStatus;
11
+ (function (TaskStatus) {
12
+ TaskStatus["PENDING"] = "PENDING";
13
+ TaskStatus["CONFIRMED"] = "CONFIRMED";
14
+ TaskStatus["COMPLETED"] = "COMPLETED";
15
+ TaskStatus["CANCELLED"] = "CANCELLED";
16
+ })(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
17
+ var TaskPriority;
18
+ (function (TaskPriority) {
19
+ TaskPriority["LOW"] = "LOW";
20
+ TaskPriority["MEDIUM"] = "MEDIUM";
21
+ TaskPriority["HIGH"] = "HIGH";
22
+ })(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
23
+ var InvoiceType;
24
+ (function (InvoiceType) {
25
+ InvoiceType["SUBSCRIPTION"] = "SUBSCRIPTION";
26
+ InvoiceType["PURCHASE"] = "PURCHASE";
27
+ })(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
28
+ var InvoiceStatus;
29
+ (function (InvoiceStatus) {
30
+ InvoiceStatus["PENDING"] = "PENDING";
31
+ InvoiceStatus["PAID"] = "PAID";
32
+ InvoiceStatus["CANCELLED"] = "CANCELLED";
33
+ InvoiceStatus["FAILED"] = "FAILED";
34
+ })(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
35
+ var PriceType;
36
+ (function (PriceType) {
37
+ PriceType["PRORATED"] = "PRORATED";
38
+ PriceType["FULL"] = "FULL";
39
+ })(PriceType || (exports.PriceType = PriceType = {}));
40
+ var PurchaseStatus;
41
+ (function (PurchaseStatus) {
42
+ PurchaseStatus["ACTIVE"] = "ACTIVE";
43
+ PurchaseStatus["CANCELLED"] = "CANCELLED";
44
+ PurchaseStatus["FAILED"] = "FAILED";
45
+ })(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
46
+ var SubscriptionStatus;
47
+ (function (SubscriptionStatus) {
48
+ SubscriptionStatus["INCOMPLETE"] = "INCOMPLETE";
49
+ SubscriptionStatus["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
50
+ SubscriptionStatus["TRIALING"] = "TRIALING";
51
+ SubscriptionStatus["ACTIVE"] = "ACTIVE";
52
+ SubscriptionStatus["PAST_DUE"] = "PAST_DUE";
53
+ SubscriptionStatus["CANCELED"] = "CANCELED";
54
+ SubscriptionStatus["UNPAID"] = "UNPAID";
55
+ SubscriptionStatus["PAUSED"] = "PAUSED";
56
+ })(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
@@ -79,3 +79,4 @@ export * from "./task-assignment";
79
79
  export * from "./cleaning-checklist";
80
80
  export * from './reporting-handbook';
81
81
  export * from './supplies-and-notes-handbook';
82
+ export * from "./ai-agent";
@@ -95,3 +95,4 @@ __exportStar(require("./task-assignment"), exports);
95
95
  __exportStar(require("./cleaning-checklist"), exports);
96
96
  __exportStar(require("./reporting-handbook"), exports);
97
97
  __exportStar(require("./supplies-and-notes-handbook"), exports);
98
+ __exportStar(require("./ai-agent"), exports);
@@ -0,0 +1,19 @@
1
+ export declare const servicePropertySchema: import("zod").ZodObject<{
2
+ propertyId: import("zod").ZodNumber;
3
+ serviceId: import("zod").ZodNumber;
4
+ status: import("zod").ZodString;
5
+ createdAt: import("zod").ZodDate;
6
+ updatedAt: import("zod").ZodDate;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ status: string;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ serviceId: number;
12
+ propertyId: number;
13
+ }, {
14
+ status: string;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ serviceId: number;
18
+ propertyId: number;
19
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.servicePropertySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.servicePropertySchema = (0, zod_1.object)({
6
+ propertyId: (0, zod_1.number)().int(),
7
+ serviceId: (0, zod_1.number)().int(),
8
+ status: (0, zod_1.string)(),
9
+ createdAt: (0, zod_1.date)(),
10
+ updatedAt: (0, zod_1.date)(),
11
+ });
@@ -11,15 +11,15 @@ export declare const taskChecklistItemSchema: import("zod").ZodObject<{
11
11
  createdAt: Date;
12
12
  updatedAt: Date;
13
13
  taskChecklistSpaceId: number;
14
- completed?: boolean | undefined;
15
14
  content?: string | undefined;
15
+ completed?: boolean | undefined;
16
16
  completedAt?: Date | undefined;
17
17
  }, {
18
18
  id: number;
19
19
  createdAt: Date;
20
20
  updatedAt: Date;
21
21
  taskChecklistSpaceId: number;
22
- completed?: boolean | undefined;
23
22
  content?: string | undefined;
23
+ completed?: boolean | undefined;
24
24
  completedAt?: Date | undefined;
25
25
  }>;
@@ -931,7 +931,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
931
931
  } | undefined;
932
932
  }>>;
933
933
  participantIds: z.ZodArray<z.ZodString, "many">;
934
- participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
934
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
935
935
  id: z.ZodString;
936
936
  name: z.ZodString;
937
937
  email: z.ZodString;
@@ -962,7 +962,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
962
962
  hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
963
963
  hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
964
964
  isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
965
- } & {
965
+ }, {
966
966
  userRole: z.ZodOptional<z.ZodObject<{
967
967
  id: z.ZodNumber;
968
968
  name: z.ZodString;
@@ -979,7 +979,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
979
979
  createdAt: Date;
980
980
  updatedAt: Date;
981
981
  }>>;
982
- }, "strip", z.ZodTypeAny, {
982
+ }>, "strip", z.ZodTypeAny, {
983
983
  name: string;
984
984
  id: string;
985
985
  email: string;
@@ -1065,7 +1065,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1065
1065
  needsAttentionMap: z.ZodRecord<z.ZodString, z.ZodBoolean>;
1066
1066
  propertyId: z.ZodOptional<z.ZodNumber>;
1067
1067
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1068
- reservation: z.ZodOptional<z.ZodObject<Pick<{
1068
+ reservation: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<Pick<{
1069
1069
  id: z.ZodNumber;
1070
1070
  status: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
1071
1071
  currency: z.ZodString;
@@ -1094,7 +1094,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1094
1094
  payoutId: z.ZodOptional<z.ZodNumber>;
1095
1095
  payoutAmount: z.ZodOptional<z.ZodNumber>;
1096
1096
  requiresPayout: z.ZodBoolean;
1097
- }, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"> & {
1097
+ }, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
1098
1098
  propertyNickname: z.ZodOptional<z.ZodString>;
1099
1099
  property: z.ZodOptional<z.ZodObject<{
1100
1100
  id: z.ZodNumber;
@@ -1187,7 +1187,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1187
1187
  customBundleId?: number | null | undefined;
1188
1188
  onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
1189
1189
  }>>;
1190
- }, "strip", z.ZodTypeAny, {
1190
+ }>, "strip", z.ZodTypeAny, {
1191
1191
  id: number;
1192
1192
  status: "PENDING" | "CONFIRMED" | "CANCELLED";
1193
1193
  propertyId: number;
@@ -0,0 +1,12 @@
1
+ import { infer } from "zod";
2
+ import { agentActionLogSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { UserAiAgentSubscription } from "./user-ai-agent-subscription";
5
+ import { AgentThreadSession } from "./agent-thread-session";
6
+ import { Property } from "../property";
7
+ export interface AgentActionLog extends infer<typeof agentActionLogSchema> {
8
+ subscription?: PropertyAiAgentSubscription;
9
+ userSubscription?: UserAiAgentSubscription;
10
+ session?: AgentThreadSession;
11
+ property?: Property;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { infer } from "zod";
2
+ import { agentThreadSessionSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { UserAiAgentSubscription } from "./user-ai-agent-subscription";
5
+ import { AgentActionLog } from "./agent-action-log";
6
+ import { HumanReviewTask } from "./human-review-task";
7
+ import { Property } from "../property";
8
+ export interface AgentThreadSession extends infer<typeof agentThreadSessionSchema> {
9
+ subscription?: PropertyAiAgentSubscription;
10
+ userSubscription?: UserAiAgentSubscription;
11
+ actionLogs?: AgentActionLog[];
12
+ humanReviewTasks?: HumanReviewTask[];
13
+ property?: Property;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { aiAgentSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { UserAiAgentSubscription } from "./user-ai-agent-subscription";
5
+ export interface AiAgent extends infer<typeof aiAgentSchema> {
6
+ subscriptions?: PropertyAiAgentSubscription[];
7
+ userSubscriptions?: UserAiAgentSubscription[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { guestCoordinatorConfigSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { Property } from "../property";
5
+ export interface GuestCoordinatorConfig extends infer<typeof guestCoordinatorConfigSchema> {
6
+ subscription?: PropertyAiAgentSubscription;
7
+ property?: Property;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { hostCoordinatorConfigSchema } from "../../schemas/ai-agent";
3
+ import { UserAiAgentSubscription } from "./user-ai-agent-subscription";
4
+ export interface HostCoordinatorConfig extends infer<typeof hostCoordinatorConfigSchema> {
5
+ userSubscription?: UserAiAgentSubscription;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { infer } from "zod";
2
+ import { humanReviewTaskSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { UserAiAgentSubscription } from "./user-ai-agent-subscription";
5
+ import { AgentThreadSession } from "./agent-thread-session";
6
+ import { Property } from "../property";
7
+ export interface HumanReviewTask extends infer<typeof humanReviewTaskSchema> {
8
+ subscription?: PropertyAiAgentSubscription;
9
+ userSubscription?: UserAiAgentSubscription;
10
+ session?: AgentThreadSession;
11
+ property?: Property;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export * from "./ai-agent";
2
+ export * from "./property-ai-agent-subscription";
3
+ export * from "./guest-coordinator-config";
4
+ export * from "./agent-thread-session";
5
+ export * from "./agent-action-log";
6
+ export * from "./human-review-task";
7
+ export * from "./user-ai-agent-subscription";
8
+ export * from "./host-coordinator-config";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ai-agent"), exports);
18
+ __exportStar(require("./property-ai-agent-subscription"), exports);
19
+ __exportStar(require("./guest-coordinator-config"), exports);
20
+ __exportStar(require("./agent-thread-session"), exports);
21
+ __exportStar(require("./agent-action-log"), exports);
22
+ __exportStar(require("./human-review-task"), exports);
23
+ __exportStar(require("./user-ai-agent-subscription"), exports);
24
+ __exportStar(require("./host-coordinator-config"), exports);
@@ -0,0 +1,16 @@
1
+ import { infer } from "zod";
2
+ import { propertyAiAgentSubscriptionSchema } from "../../schemas/ai-agent";
3
+ import { Property } from "../property";
4
+ import { AiAgent } from "./ai-agent";
5
+ import { GuestCoordinatorConfig } from "./guest-coordinator-config";
6
+ import { AgentThreadSession } from "./agent-thread-session";
7
+ import { AgentActionLog } from "./agent-action-log";
8
+ import { HumanReviewTask } from "./human-review-task";
9
+ export interface PropertyAiAgentSubscription extends infer<typeof propertyAiAgentSubscriptionSchema> {
10
+ property?: Property;
11
+ agent?: AiAgent;
12
+ guestCoordinatorConfig?: GuestCoordinatorConfig;
13
+ threadSessions?: AgentThreadSession[];
14
+ actionLogs?: AgentActionLog[];
15
+ humanReviewTasks?: HumanReviewTask[];
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { infer } from "zod";
2
+ import { userAiAgentSubscriptionSchema } from "../../schemas/ai-agent";
3
+ import { User } from "../user";
4
+ import { AiAgent } from "./ai-agent";
5
+ import { HostCoordinatorConfig } from "./host-coordinator-config";
6
+ import { AgentThreadSession } from "./agent-thread-session";
7
+ import { AgentActionLog } from "./agent-action-log";
8
+ import { HumanReviewTask } from "./human-review-task";
9
+ export interface UserAiAgentSubscription extends infer<typeof userAiAgentSubscriptionSchema> {
10
+ user?: User;
11
+ agent?: AiAgent;
12
+ hostCoordinatorConfig?: HostCoordinatorConfig;
13
+ threadSessions?: AgentThreadSession[];
14
+ actionLogs?: AgentActionLog[];
15
+ humanReviewTasks?: HumanReviewTask[];
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -69,3 +69,39 @@ export declare enum PropertyType {
69
69
  VILLA = "VILLA",
70
70
  APARTMENT_BLOCK = "APARTMENT_BLOCK"
71
71
  }
72
+ export declare enum AiAgentCategory {
73
+ GUEST_EXPERIENCE = "GUEST_EXPERIENCE",
74
+ OPERATIONS = "OPERATIONS",
75
+ REVENUE = "REVENUE",
76
+ COMPLIANCE = "COMPLIANCE"
77
+ }
78
+ export declare enum GuestCoordinatorResponseStyle {
79
+ FORMAL = "FORMAL",
80
+ FRIENDLY = "FRIENDLY",
81
+ CONCISE = "CONCISE"
82
+ }
83
+ export declare enum AgentSessionStatus {
84
+ ACTIVE = "ACTIVE",
85
+ ESCALATED = "ESCALATED",
86
+ RESOLVED = "RESOLVED",
87
+ CLOSED = "CLOSED"
88
+ }
89
+ export declare enum AgentActionType {
90
+ REPLIED = "REPLIED",
91
+ ESCALATED = "ESCALATED",
92
+ NOTE_SAVED = "NOTE_SAVED",
93
+ HOST_NOTIFIED = "HOST_NOTIFIED",
94
+ SKIPPED = "SKIPPED"
95
+ }
96
+ export declare enum HumanReviewPriority {
97
+ LOW = "LOW",
98
+ NORMAL = "NORMAL",
99
+ HIGH = "HIGH",
100
+ URGENT = "URGENT"
101
+ }
102
+ export declare enum HumanReviewStatus {
103
+ PENDING = "PENDING",
104
+ IN_REVIEW = "IN_REVIEW",
105
+ RESOLVED = "RESOLVED",
106
+ DISMISSED = "DISMISSED"
107
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
3
+ exports.HumanReviewStatus = exports.HumanReviewPriority = exports.AgentActionType = exports.AgentSessionStatus = exports.GuestCoordinatorResponseStyle = exports.AiAgentCategory = exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
4
4
  var ServiceType;
5
5
  (function (ServiceType) {
6
6
  ServiceType["INTEGRATION"] = "INTEGRATION";
@@ -84,3 +84,48 @@ var PropertyType;
84
84
  PropertyType["VILLA"] = "VILLA";
85
85
  PropertyType["APARTMENT_BLOCK"] = "APARTMENT_BLOCK";
86
86
  })(PropertyType || (exports.PropertyType = PropertyType = {}));
87
+ // ---------------------------
88
+ // AI Agent related enums
89
+ // ---------------------------
90
+ var AiAgentCategory;
91
+ (function (AiAgentCategory) {
92
+ AiAgentCategory["GUEST_EXPERIENCE"] = "GUEST_EXPERIENCE";
93
+ AiAgentCategory["OPERATIONS"] = "OPERATIONS";
94
+ AiAgentCategory["REVENUE"] = "REVENUE";
95
+ AiAgentCategory["COMPLIANCE"] = "COMPLIANCE";
96
+ })(AiAgentCategory || (exports.AiAgentCategory = AiAgentCategory = {}));
97
+ var GuestCoordinatorResponseStyle;
98
+ (function (GuestCoordinatorResponseStyle) {
99
+ GuestCoordinatorResponseStyle["FORMAL"] = "FORMAL";
100
+ GuestCoordinatorResponseStyle["FRIENDLY"] = "FRIENDLY";
101
+ GuestCoordinatorResponseStyle["CONCISE"] = "CONCISE";
102
+ })(GuestCoordinatorResponseStyle || (exports.GuestCoordinatorResponseStyle = GuestCoordinatorResponseStyle = {}));
103
+ var AgentSessionStatus;
104
+ (function (AgentSessionStatus) {
105
+ AgentSessionStatus["ACTIVE"] = "ACTIVE";
106
+ AgentSessionStatus["ESCALATED"] = "ESCALATED";
107
+ AgentSessionStatus["RESOLVED"] = "RESOLVED";
108
+ AgentSessionStatus["CLOSED"] = "CLOSED";
109
+ })(AgentSessionStatus || (exports.AgentSessionStatus = AgentSessionStatus = {}));
110
+ var AgentActionType;
111
+ (function (AgentActionType) {
112
+ AgentActionType["REPLIED"] = "REPLIED";
113
+ AgentActionType["ESCALATED"] = "ESCALATED";
114
+ AgentActionType["NOTE_SAVED"] = "NOTE_SAVED";
115
+ AgentActionType["HOST_NOTIFIED"] = "HOST_NOTIFIED";
116
+ AgentActionType["SKIPPED"] = "SKIPPED";
117
+ })(AgentActionType || (exports.AgentActionType = AgentActionType = {}));
118
+ var HumanReviewPriority;
119
+ (function (HumanReviewPriority) {
120
+ HumanReviewPriority["LOW"] = "LOW";
121
+ HumanReviewPriority["NORMAL"] = "NORMAL";
122
+ HumanReviewPriority["HIGH"] = "HIGH";
123
+ HumanReviewPriority["URGENT"] = "URGENT";
124
+ })(HumanReviewPriority || (exports.HumanReviewPriority = HumanReviewPriority = {}));
125
+ var HumanReviewStatus;
126
+ (function (HumanReviewStatus) {
127
+ HumanReviewStatus["PENDING"] = "PENDING";
128
+ HumanReviewStatus["IN_REVIEW"] = "IN_REVIEW";
129
+ HumanReviewStatus["RESOLVED"] = "RESOLVED";
130
+ HumanReviewStatus["DISMISSED"] = "DISMISSED";
131
+ })(HumanReviewStatus || (exports.HumanReviewStatus = HumanReviewStatus = {}));
@@ -80,3 +80,4 @@ export * from "./task-assignment";
80
80
  export * from "./cleaning-checklist";
81
81
  export * from './reporting-handbook';
82
82
  export * from './supplies-and-notes-handbook';
83
+ export * from "./ai-agent";
@@ -96,3 +96,4 @@ __exportStar(require("./task-assignment"), exports);
96
96
  __exportStar(require("./cleaning-checklist"), exports);
97
97
  __exportStar(require("./reporting-handbook"), exports);
98
98
  __exportStar(require("./supplies-and-notes-handbook"), exports);
99
+ __exportStar(require("./ai-agent"), exports);
@@ -24,6 +24,10 @@ import { Restriction } from "../restriction";
24
24
  import { PropertyCart } from "../property-cart";
25
25
  import { PropertySafetyDetails } from "../property-safety-details";
26
26
  import { CustomBundle } from "../custom-bundle";
27
+ import { PropertyAiAgentSubscription } from "../ai-agent/property-ai-agent-subscription";
28
+ import { AgentThreadSession } from "../ai-agent/agent-thread-session";
29
+ import { AgentActionLog } from "../ai-agent/agent-action-log";
30
+ import { HumanReviewTask } from "../ai-agent/human-review-task";
27
31
  export interface Property extends infer<typeof propertySchema> {
28
32
  user?: User;
29
33
  rooms?: Room[];
@@ -54,6 +58,10 @@ export interface Property extends infer<typeof propertySchema> {
54
58
  cartItems?: PropertyCart[];
55
59
  safetyDetails?: PropertySafetyDetails;
56
60
  customBundle?: CustomBundle;
61
+ aiAgentSubscriptions?: PropertyAiAgentSubscription[];
62
+ agentThreadSessions?: AgentThreadSession[];
63
+ agentActionLogs?: AgentActionLog[];
64
+ humanReviewTasks?: HumanReviewTask[];
57
65
  }
58
66
  export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
59
67
  }
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { servicePropertySchema } from "../../schemas/service-property";
3
+ import { Property } from "../property";
4
+ import { Service } from "../service";
5
+ export interface ServiceProperty extends infer<typeof servicePropertySchema> {
6
+ property?: Property;
7
+ service?: Service;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });