hububb-saas-shared 1.2.2 → 1.2.3

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 (46) hide show
  1. package/dist/schemas/ai-agent/agent-action-log.d.ts +44 -0
  2. package/dist/schemas/ai-agent/agent-action-log.js +20 -0
  3. package/dist/schemas/ai-agent/agent-thread-session.d.ts +56 -0
  4. package/dist/schemas/ai-agent/agent-thread-session.js +24 -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/human-review-task.d.ts +59 -0
  10. package/dist/schemas/ai-agent/human-review-task.js +25 -0
  11. package/dist/schemas/ai-agent/index.d.ts +6 -0
  12. package/dist/schemas/ai-agent/index.js +22 -0
  13. package/dist/schemas/ai-agent/property-ai-agent-subscription.d.ts +40 -0
  14. package/dist/schemas/ai-agent/property-ai-agent-subscription.js +18 -0
  15. package/dist/schemas/channex/booking.d.ts +2 -2
  16. package/dist/schemas/channex/thread.d.ts +2 -2
  17. package/dist/schemas/enums/index.d.ts +45 -0
  18. package/dist/schemas/enums/index.js +56 -0
  19. package/dist/schemas/index.d.ts +1 -0
  20. package/dist/schemas/index.js +1 -0
  21. package/dist/schemas/service-property/index.d.ts +19 -0
  22. package/dist/schemas/service-property/index.js +11 -0
  23. package/dist/schemas/task-checklist-item/index.d.ts +2 -2
  24. package/dist/schemas/thread/index.d.ts +6 -6
  25. package/dist/types/ai-agent/agent-action-log.d.ts +10 -0
  26. package/dist/types/ai-agent/agent-action-log.js +2 -0
  27. package/dist/types/ai-agent/agent-thread-session.d.ts +12 -0
  28. package/dist/types/ai-agent/agent-thread-session.js +2 -0
  29. package/dist/types/ai-agent/ai-agent.d.ts +6 -0
  30. package/dist/types/ai-agent/ai-agent.js +2 -0
  31. package/dist/types/ai-agent/guest-coordinator-config.d.ts +8 -0
  32. package/dist/types/ai-agent/guest-coordinator-config.js +2 -0
  33. package/dist/types/ai-agent/human-review-task.d.ts +10 -0
  34. package/dist/types/ai-agent/human-review-task.js +2 -0
  35. package/dist/types/ai-agent/index.d.ts +6 -0
  36. package/dist/types/ai-agent/index.js +22 -0
  37. package/dist/types/ai-agent/property-ai-agent-subscription.d.ts +16 -0
  38. package/dist/types/ai-agent/property-ai-agent-subscription.js +2 -0
  39. package/dist/types/enums/index.d.ts +36 -0
  40. package/dist/types/enums/index.js +46 -1
  41. package/dist/types/index.d.ts +1 -0
  42. package/dist/types/index.js +1 -0
  43. package/dist/types/property/index.d.ts +8 -0
  44. package/dist/types/service-property/index.d.ts +8 -0
  45. package/dist/types/service-property/index.js +2 -0
  46. package/package.json +1 -1
@@ -0,0 +1,44 @@
1
+ import { AgentActionType } from "../../types/enums";
2
+ export declare const agentActionLogSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodString;
4
+ agentSlug: import("zod").ZodString;
5
+ subscriptionId: import("zod").ZodOptional<import("zod").ZodNumber>;
6
+ sessionId: import("zod").ZodOptional<import("zod").ZodString>;
7
+ threadId: import("zod").ZodString;
8
+ propertyId: import("zod").ZodOptional<import("zod").ZodNumber>;
9
+ actionType: import("zod").ZodNativeEnum<typeof AgentActionType>;
10
+ toolsUsed: import("zod").ZodArray<import("zod").ZodString, "many">;
11
+ guestMessagePreview: import("zod").ZodOptional<import("zod").ZodString>;
12
+ replyPreview: import("zod").ZodOptional<import("zod").ZodString>;
13
+ requiresHumanReview: import("zod").ZodOptional<import("zod").ZodBoolean>;
14
+ escalationReason: import("zod").ZodOptional<import("zod").ZodString>;
15
+ createdAt: import("zod").ZodDate;
16
+ }, "strip", import("zod").ZodTypeAny, {
17
+ id: string;
18
+ createdAt: Date;
19
+ threadId: string;
20
+ agentSlug: string;
21
+ toolsUsed: string[];
22
+ actionType: AgentActionType;
23
+ propertyId?: number | undefined;
24
+ subscriptionId?: number | undefined;
25
+ requiresHumanReview?: boolean | undefined;
26
+ escalationReason?: string | undefined;
27
+ sessionId?: string | undefined;
28
+ guestMessagePreview?: string | undefined;
29
+ replyPreview?: string | undefined;
30
+ }, {
31
+ id: string;
32
+ createdAt: Date;
33
+ threadId: string;
34
+ agentSlug: string;
35
+ toolsUsed: string[];
36
+ actionType: AgentActionType;
37
+ propertyId?: number | undefined;
38
+ subscriptionId?: number | undefined;
39
+ requiresHumanReview?: boolean | undefined;
40
+ escalationReason?: string | undefined;
41
+ sessionId?: string | undefined;
42
+ guestMessagePreview?: string | undefined;
43
+ replyPreview?: string | undefined;
44
+ }>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.agentActionLogSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.agentActionLogSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ agentSlug: (0, zod_1.string)(),
9
+ subscriptionId: (0, zod_1.number)().int().optional(),
10
+ sessionId: (0, zod_1.string)().optional(),
11
+ threadId: (0, zod_1.string)(),
12
+ propertyId: (0, zod_1.number)().int().optional(),
13
+ actionType: (0, zod_1.nativeEnum)(enums_1.AgentActionType),
14
+ toolsUsed: (0, zod_1.array)((0, zod_1.string)()),
15
+ guestMessagePreview: (0, zod_1.string)().optional(),
16
+ replyPreview: (0, zod_1.string)().optional(),
17
+ requiresHumanReview: (0, zod_1.boolean)().optional(),
18
+ escalationReason: (0, zod_1.string)().optional(),
19
+ createdAt: (0, zod_1.date)(),
20
+ });
@@ -0,0 +1,56 @@
1
+ import { AgentSessionStatus } from "../../types/enums";
2
+ export declare const agentThreadSessionSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodString;
4
+ threadId: import("zod").ZodString;
5
+ propertyId: import("zod").ZodNumber;
6
+ subscriptionId: import("zod").ZodOptional<import("zod").ZodNumber>;
7
+ agentSlug: import("zod").ZodString;
8
+ status: import("zod").ZodNativeEnum<typeof AgentSessionStatus>;
9
+ totalMessages: import("zod").ZodNumber;
10
+ toolsUsed: import("zod").ZodArray<import("zod").ZodString, "many">;
11
+ lastReplyAt: import("zod").ZodOptional<import("zod").ZodDate>;
12
+ requiresHumanReview: import("zod").ZodBoolean;
13
+ escalationReason: import("zod").ZodOptional<import("zod").ZodString>;
14
+ escalatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
15
+ resolvedBy: import("zod").ZodOptional<import("zod").ZodString>;
16
+ resolvedAt: import("zod").ZodOptional<import("zod").ZodDate>;
17
+ resolutionNote: import("zod").ZodOptional<import("zod").ZodString>;
18
+ createdAt: import("zod").ZodDate;
19
+ updatedAt: import("zod").ZodDate;
20
+ }, "strip", import("zod").ZodTypeAny, {
21
+ id: string;
22
+ status: AgentSessionStatus;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ propertyId: number;
26
+ threadId: string;
27
+ agentSlug: string;
28
+ totalMessages: number;
29
+ toolsUsed: string[];
30
+ requiresHumanReview: boolean;
31
+ subscriptionId?: number | undefined;
32
+ lastReplyAt?: Date | undefined;
33
+ escalationReason?: string | undefined;
34
+ escalatedAt?: Date | undefined;
35
+ resolvedBy?: string | undefined;
36
+ resolvedAt?: Date | undefined;
37
+ resolutionNote?: string | undefined;
38
+ }, {
39
+ id: string;
40
+ status: AgentSessionStatus;
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ propertyId: number;
44
+ threadId: string;
45
+ agentSlug: string;
46
+ totalMessages: number;
47
+ toolsUsed: string[];
48
+ requiresHumanReview: boolean;
49
+ subscriptionId?: number | undefined;
50
+ lastReplyAt?: Date | undefined;
51
+ escalationReason?: string | undefined;
52
+ escalatedAt?: Date | undefined;
53
+ resolvedBy?: string | undefined;
54
+ resolvedAt?: Date | undefined;
55
+ resolutionNote?: string | undefined;
56
+ }>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.agentThreadSessionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.agentThreadSessionSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ threadId: (0, zod_1.string)(),
9
+ propertyId: (0, zod_1.number)().int(),
10
+ subscriptionId: (0, zod_1.number)().int().optional(),
11
+ agentSlug: (0, zod_1.string)(),
12
+ status: (0, zod_1.nativeEnum)(enums_1.AgentSessionStatus),
13
+ totalMessages: (0, zod_1.number)().int(),
14
+ toolsUsed: (0, zod_1.array)((0, zod_1.string)()),
15
+ lastReplyAt: (0, zod_1.date)().optional(),
16
+ requiresHumanReview: (0, zod_1.boolean)(),
17
+ escalationReason: (0, zod_1.string)().optional(),
18
+ escalatedAt: (0, zod_1.date)().optional(),
19
+ resolvedBy: (0, zod_1.string)().optional(),
20
+ resolvedAt: (0, zod_1.date)().optional(),
21
+ resolutionNote: (0, zod_1.string)().optional(),
22
+ createdAt: (0, zod_1.date)(),
23
+ updatedAt: (0, zod_1.date)(),
24
+ });
@@ -0,0 +1,44 @@
1
+ import { AiAgentCategory } from "../../types/enums";
2
+ export declare const aiAgentSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ slug: import("zod").ZodString;
5
+ name: import("zod").ZodString;
6
+ tagline: import("zod").ZodOptional<import("zod").ZodString>;
7
+ description: import("zod").ZodOptional<import("zod").ZodString>;
8
+ category: import("zod").ZodNativeEnum<typeof AiAgentCategory>;
9
+ iconUrl: import("zod").ZodOptional<import("zod").ZodString>;
10
+ docsUrl: import("zod").ZodOptional<import("zod").ZodString>;
11
+ isPublished: import("zod").ZodBoolean;
12
+ isBeta: import("zod").ZodBoolean;
13
+ sortOrder: import("zod").ZodNumber;
14
+ createdAt: import("zod").ZodDate;
15
+ updatedAt: import("zod").ZodDate;
16
+ }, "strip", import("zod").ZodTypeAny, {
17
+ name: string;
18
+ id: number;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ category: AiAgentCategory;
22
+ sortOrder: number;
23
+ slug: string;
24
+ isPublished: boolean;
25
+ isBeta: boolean;
26
+ description?: string | undefined;
27
+ tagline?: string | undefined;
28
+ iconUrl?: string | undefined;
29
+ docsUrl?: string | undefined;
30
+ }, {
31
+ name: string;
32
+ id: number;
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ category: AiAgentCategory;
36
+ sortOrder: number;
37
+ slug: string;
38
+ isPublished: boolean;
39
+ isBeta: boolean;
40
+ description?: string | undefined;
41
+ tagline?: string | undefined;
42
+ iconUrl?: string | undefined;
43
+ docsUrl?: string | undefined;
44
+ }>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aiAgentSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.aiAgentSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ slug: (0, zod_1.string)(),
9
+ name: (0, zod_1.string)(),
10
+ tagline: (0, zod_1.string)().optional(),
11
+ description: (0, zod_1.string)().optional(),
12
+ category: (0, zod_1.nativeEnum)(enums_1.AiAgentCategory),
13
+ iconUrl: (0, zod_1.string)().optional(),
14
+ docsUrl: (0, zod_1.string)().optional(),
15
+ isPublished: (0, zod_1.boolean)(),
16
+ isBeta: (0, zod_1.boolean)(),
17
+ sortOrder: (0, zod_1.number)().int(),
18
+ createdAt: (0, zod_1.date)(),
19
+ updatedAt: (0, zod_1.date)(),
20
+ });
@@ -0,0 +1,95 @@
1
+ import { GuestCoordinatorResponseStyle } from "../../types/enums";
2
+ export declare const guestCoordinatorConfigSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ subscriptionId: import("zod").ZodNumber;
5
+ propertyId: import("zod").ZodNumber;
6
+ agentName: import("zod").ZodOptional<import("zod").ZodString>;
7
+ responseStyle: import("zod").ZodNativeEnum<typeof GuestCoordinatorResponseStyle>;
8
+ customInstructions: import("zod").ZodOptional<import("zod").ZodString>;
9
+ canAnswerPricingQuestions: import("zod").ZodOptional<import("zod").ZodBoolean>;
10
+ canAnswerLocationQuestions: import("zod").ZodOptional<import("zod").ZodBoolean>;
11
+ canAnswerAmenityQuestions: import("zod").ZodOptional<import("zod").ZodBoolean>;
12
+ canShareWifiDetails: import("zod").ZodOptional<import("zod").ZodBoolean>;
13
+ canShareCheckinInstructions: import("zod").ZodOptional<import("zod").ZodBoolean>;
14
+ canSuggestNearbyPlaces: import("zod").ZodOptional<import("zod").ZodBoolean>;
15
+ canHandleInquiries: import("zod").ZodOptional<import("zod").ZodBoolean>;
16
+ canHandleConfirmedBookings: import("zod").ZodOptional<import("zod").ZodBoolean>;
17
+ canSaveInternalNotes: import("zod").ZodOptional<import("zod").ZodBoolean>;
18
+ blockPricingNegotiation: import("zod").ZodOptional<import("zod").ZodBoolean>;
19
+ blockRefundDiscussions: import("zod").ZodOptional<import("zod").ZodBoolean>;
20
+ blockComplaintHandling: import("zod").ZodOptional<import("zod").ZodBoolean>;
21
+ escalateToHostOnReview: import("zod").ZodOptional<import("zod").ZodBoolean>;
22
+ escalateToOperationsOnReview: import("zod").ZodOptional<import("zod").ZodBoolean>;
23
+ sendEmailOnEscalation: import("zod").ZodOptional<import("zod").ZodBoolean>;
24
+ sendEmailOnAgentReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
25
+ workingHoursStart: import("zod").ZodOptional<import("zod").ZodString>;
26
+ workingHoursEnd: import("zod").ZodOptional<import("zod").ZodString>;
27
+ timezone: import("zod").ZodOptional<import("zod").ZodString>;
28
+ outsideHoursMessage: import("zod").ZodOptional<import("zod").ZodString>;
29
+ cityCenterLabel: import("zod").ZodOptional<import("zod").ZodString>;
30
+ cityCenterAddress: import("zod").ZodOptional<import("zod").ZodString>;
31
+ createdAt: import("zod").ZodDate;
32
+ updatedAt: import("zod").ZodDate;
33
+ }, "strip", import("zod").ZodTypeAny, {
34
+ id: number;
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ propertyId: number;
38
+ subscriptionId: number;
39
+ responseStyle: GuestCoordinatorResponseStyle;
40
+ timezone?: string | undefined;
41
+ agentName?: string | undefined;
42
+ customInstructions?: string | undefined;
43
+ canAnswerPricingQuestions?: boolean | undefined;
44
+ canAnswerLocationQuestions?: boolean | undefined;
45
+ canAnswerAmenityQuestions?: boolean | undefined;
46
+ canShareWifiDetails?: boolean | undefined;
47
+ canShareCheckinInstructions?: boolean | undefined;
48
+ canSuggestNearbyPlaces?: boolean | undefined;
49
+ canHandleInquiries?: boolean | undefined;
50
+ canHandleConfirmedBookings?: boolean | undefined;
51
+ canSaveInternalNotes?: boolean | undefined;
52
+ blockPricingNegotiation?: boolean | undefined;
53
+ blockRefundDiscussions?: boolean | undefined;
54
+ blockComplaintHandling?: boolean | undefined;
55
+ escalateToHostOnReview?: boolean | undefined;
56
+ escalateToOperationsOnReview?: boolean | undefined;
57
+ sendEmailOnEscalation?: boolean | undefined;
58
+ sendEmailOnAgentReply?: boolean | undefined;
59
+ workingHoursStart?: string | undefined;
60
+ workingHoursEnd?: string | undefined;
61
+ outsideHoursMessage?: string | undefined;
62
+ cityCenterLabel?: string | undefined;
63
+ cityCenterAddress?: string | undefined;
64
+ }, {
65
+ id: number;
66
+ createdAt: Date;
67
+ updatedAt: Date;
68
+ propertyId: number;
69
+ subscriptionId: number;
70
+ responseStyle: GuestCoordinatorResponseStyle;
71
+ timezone?: string | undefined;
72
+ agentName?: string | undefined;
73
+ customInstructions?: string | undefined;
74
+ canAnswerPricingQuestions?: boolean | undefined;
75
+ canAnswerLocationQuestions?: boolean | undefined;
76
+ canAnswerAmenityQuestions?: boolean | undefined;
77
+ canShareWifiDetails?: boolean | undefined;
78
+ canShareCheckinInstructions?: boolean | undefined;
79
+ canSuggestNearbyPlaces?: boolean | undefined;
80
+ canHandleInquiries?: boolean | undefined;
81
+ canHandleConfirmedBookings?: boolean | undefined;
82
+ canSaveInternalNotes?: boolean | undefined;
83
+ blockPricingNegotiation?: boolean | undefined;
84
+ blockRefundDiscussions?: boolean | undefined;
85
+ blockComplaintHandling?: boolean | undefined;
86
+ escalateToHostOnReview?: boolean | undefined;
87
+ escalateToOperationsOnReview?: boolean | undefined;
88
+ sendEmailOnEscalation?: boolean | undefined;
89
+ sendEmailOnAgentReply?: boolean | undefined;
90
+ workingHoursStart?: string | undefined;
91
+ workingHoursEnd?: string | undefined;
92
+ outsideHoursMessage?: string | undefined;
93
+ cityCenterLabel?: string | undefined;
94
+ cityCenterAddress?: string | undefined;
95
+ }>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.guestCoordinatorConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.guestCoordinatorConfigSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ subscriptionId: (0, zod_1.number)().int(),
9
+ propertyId: (0, zod_1.number)().int(),
10
+ // Identity / persona
11
+ agentName: (0, zod_1.string)().optional(),
12
+ responseStyle: (0, zod_1.nativeEnum)(enums_1.GuestCoordinatorResponseStyle),
13
+ customInstructions: (0, zod_1.string)().optional(),
14
+ // Capability toggles
15
+ canAnswerPricingQuestions: (0, zod_1.boolean)().optional(),
16
+ canAnswerLocationQuestions: (0, zod_1.boolean)().optional(),
17
+ canAnswerAmenityQuestions: (0, zod_1.boolean)().optional(),
18
+ canShareWifiDetails: (0, zod_1.boolean)().optional(),
19
+ canShareCheckinInstructions: (0, zod_1.boolean)().optional(),
20
+ canSuggestNearbyPlaces: (0, zod_1.boolean)().optional(),
21
+ canHandleInquiries: (0, zod_1.boolean)().optional(),
22
+ canHandleConfirmedBookings: (0, zod_1.boolean)().optional(),
23
+ canSaveInternalNotes: (0, zod_1.boolean)().optional(),
24
+ // Topics that always escalate
25
+ blockPricingNegotiation: (0, zod_1.boolean)().optional(),
26
+ blockRefundDiscussions: (0, zod_1.boolean)().optional(),
27
+ blockComplaintHandling: (0, zod_1.boolean)().optional(),
28
+ // Escalation routing
29
+ escalateToHostOnReview: (0, zod_1.boolean)().optional(),
30
+ escalateToOperationsOnReview: (0, zod_1.boolean)().optional(),
31
+ sendEmailOnEscalation: (0, zod_1.boolean)().optional(),
32
+ sendEmailOnAgentReply: (0, zod_1.boolean)().optional(),
33
+ // Working hours (null = 24/7)
34
+ workingHoursStart: (0, zod_1.string)().optional(),
35
+ workingHoursEnd: (0, zod_1.string)().optional(),
36
+ timezone: (0, zod_1.string)().optional(),
37
+ outsideHoursMessage: (0, zod_1.string)().optional(),
38
+ // Location context
39
+ cityCenterLabel: (0, zod_1.string)().optional(),
40
+ cityCenterAddress: (0, zod_1.string)().optional(),
41
+ createdAt: (0, zod_1.date)(),
42
+ updatedAt: (0, zod_1.date)(),
43
+ });
@@ -0,0 +1,59 @@
1
+ import { HumanReviewPriority, HumanReviewStatus } from "../../types/enums";
2
+ export declare const humanReviewTaskSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodString;
4
+ threadId: import("zod").ZodString;
5
+ propertyId: import("zod").ZodNumber;
6
+ subscriptionId: import("zod").ZodOptional<import("zod").ZodNumber>;
7
+ sessionId: import("zod").ZodOptional<import("zod").ZodString>;
8
+ agentSlug: import("zod").ZodString;
9
+ reason: import("zod").ZodString;
10
+ priority: import("zod").ZodNativeEnum<typeof HumanReviewPriority>;
11
+ assignedToUserId: import("zod").ZodOptional<import("zod").ZodString>;
12
+ assignedToRole: import("zod").ZodOptional<import("zod").ZodString>;
13
+ status: import("zod").ZodNativeEnum<typeof HumanReviewStatus>;
14
+ seenAt: import("zod").ZodOptional<import("zod").ZodDate>;
15
+ resolvedBy: import("zod").ZodOptional<import("zod").ZodString>;
16
+ resolvedAt: import("zod").ZodOptional<import("zod").ZodDate>;
17
+ resolutionNote: import("zod").ZodOptional<import("zod").ZodString>;
18
+ emailSentAt: import("zod").ZodOptional<import("zod").ZodDate>;
19
+ createdAt: import("zod").ZodDate;
20
+ updatedAt: import("zod").ZodDate;
21
+ }, "strip", import("zod").ZodTypeAny, {
22
+ reason: string;
23
+ id: string;
24
+ priority: HumanReviewPriority;
25
+ status: HumanReviewStatus;
26
+ createdAt: Date;
27
+ updatedAt: Date;
28
+ propertyId: number;
29
+ threadId: string;
30
+ agentSlug: string;
31
+ subscriptionId?: number | undefined;
32
+ resolvedBy?: string | undefined;
33
+ resolvedAt?: Date | undefined;
34
+ resolutionNote?: string | undefined;
35
+ sessionId?: string | undefined;
36
+ assignedToUserId?: string | undefined;
37
+ assignedToRole?: string | undefined;
38
+ seenAt?: Date | undefined;
39
+ emailSentAt?: Date | undefined;
40
+ }, {
41
+ reason: string;
42
+ id: string;
43
+ priority: HumanReviewPriority;
44
+ status: HumanReviewStatus;
45
+ createdAt: Date;
46
+ updatedAt: Date;
47
+ propertyId: number;
48
+ threadId: string;
49
+ agentSlug: string;
50
+ subscriptionId?: number | undefined;
51
+ resolvedBy?: string | undefined;
52
+ resolvedAt?: Date | undefined;
53
+ resolutionNote?: string | undefined;
54
+ sessionId?: string | undefined;
55
+ assignedToUserId?: string | undefined;
56
+ assignedToRole?: string | undefined;
57
+ seenAt?: Date | undefined;
58
+ emailSentAt?: Date | undefined;
59
+ }>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.humanReviewTaskSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.humanReviewTaskSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ threadId: (0, zod_1.string)(),
9
+ propertyId: (0, zod_1.number)().int(),
10
+ subscriptionId: (0, zod_1.number)().int().optional(),
11
+ sessionId: (0, zod_1.string)().optional(),
12
+ agentSlug: (0, zod_1.string)(),
13
+ reason: (0, zod_1.string)(),
14
+ priority: (0, zod_1.nativeEnum)(enums_1.HumanReviewPriority),
15
+ assignedToUserId: (0, zod_1.string)().optional(),
16
+ assignedToRole: (0, zod_1.string)().optional(),
17
+ status: (0, zod_1.nativeEnum)(enums_1.HumanReviewStatus),
18
+ seenAt: (0, zod_1.date)().optional(),
19
+ resolvedBy: (0, zod_1.string)().optional(),
20
+ resolvedAt: (0, zod_1.date)().optional(),
21
+ resolutionNote: (0, zod_1.string)().optional(),
22
+ emailSentAt: (0, zod_1.date)().optional(),
23
+ createdAt: (0, zod_1.date)(),
24
+ updatedAt: (0, zod_1.date)(),
25
+ });
@@ -0,0 +1,6 @@
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";
@@ -0,0 +1,22 @@
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);
@@ -0,0 +1,40 @@
1
+ export declare const propertyAiAgentSubscriptionSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ propertyId: import("zod").ZodNumber;
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
+ propertyId: number;
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
+ propertyId: number;
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.propertyAiAgentSubscriptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.propertyAiAgentSubscriptionSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ propertyId: (0, zod_1.number)().int(),
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,10 @@
1
+ import { infer } from "zod";
2
+ import { agentActionLogSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { AgentThreadSession } from "./agent-thread-session";
5
+ import { Property } from "../property";
6
+ export interface AgentActionLog extends infer<typeof agentActionLogSchema> {
7
+ subscription?: PropertyAiAgentSubscription;
8
+ session?: AgentThreadSession;
9
+ property?: Property;
10
+ }
@@ -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 { agentThreadSessionSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { AgentActionLog } from "./agent-action-log";
5
+ import { HumanReviewTask } from "./human-review-task";
6
+ import { Property } from "../property";
7
+ export interface AgentThreadSession extends infer<typeof agentThreadSessionSchema> {
8
+ subscription?: PropertyAiAgentSubscription;
9
+ actionLogs?: AgentActionLog[];
10
+ humanReviewTasks?: HumanReviewTask[];
11
+ property?: Property;
12
+ }
@@ -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 { aiAgentSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ export interface AiAgent extends infer<typeof aiAgentSchema> {
5
+ subscriptions?: PropertyAiAgentSubscription[];
6
+ }
@@ -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,10 @@
1
+ import { infer } from "zod";
2
+ import { humanReviewTaskSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ import { AgentThreadSession } from "./agent-thread-session";
5
+ import { Property } from "../property";
6
+ export interface HumanReviewTask extends infer<typeof humanReviewTaskSchema> {
7
+ subscription?: PropertyAiAgentSubscription;
8
+ session?: AgentThreadSession;
9
+ property?: Property;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
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";
@@ -0,0 +1,22 @@
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);
@@ -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 });
@@ -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 });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",