@vrplatform/api 1.3.1-6479 → 1.3.1-6484

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.
@@ -6,4 +6,5 @@ export type * from './generated/v1';
6
6
  export * from './routing';
7
7
  export * from './sec';
8
8
  export * from './types';
9
+ export * from './vrt-mcp';
9
10
  export type VRPlatformApi = ApiClient;
@@ -20,4 +20,5 @@ __exportStar(require("./error"), exports);
20
20
  __exportStar(require("./routing"), exports);
21
21
  __exportStar(require("./sec"), exports);
22
22
  __exportStar(require("./types"), exports);
23
+ __exportStar(require("./vrt-mcp"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,2CAAyB;AACzB,oDAAkC;AAClC,0CAAwB;AAExB,4CAA0B;AAC1B,wCAAsB;AACtB,0CAAwB","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './embed-lifecycle';\nexport * from './error';\nexport type * from './generated/v1';\nexport * from './routing';\nexport * from './sec';\nexport * from './types';\n\nexport type VRPlatformApi = ApiClient;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,2CAAyB;AACzB,oDAAkC;AAClC,0CAAwB;AAExB,4CAA0B;AAC1B,wCAAsB;AACtB,0CAAwB;AACxB,4CAA0B","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './embed-lifecycle';\nexport * from './error';\nexport type * from './generated/v1';\nexport * from './routing';\nexport * from './sec';\nexport * from './types';\nexport * from './vrt-mcp';\n\nexport type VRPlatformApi = ApiClient;\n"]}
@@ -0,0 +1,213 @@
1
+ import { z } from 'zod';
2
+ export declare const vrtPaginatedLookupPayloadSchema: z.ZodObject<{
3
+ data: z.ZodArray<z.ZodUnknown>;
4
+ pagination: z.ZodObject<{
5
+ limit: z.ZodNumber;
6
+ nextPage: z.ZodOptional<z.ZodNumber>;
7
+ page: z.ZodNumber;
8
+ total: z.ZodNumber;
9
+ totalPage: z.ZodNumber;
10
+ }, z.core.$strip>;
11
+ }, z.core.$strip>;
12
+ export declare const vrtPaginatedLookupOutputSchema: z.ZodObject<{
13
+ data: z.ZodArray<z.ZodUnknown>;
14
+ pagination: z.ZodObject<{
15
+ limit: z.ZodNumber;
16
+ nextPage: z.ZodOptional<z.ZodNumber>;
17
+ page: z.ZodNumber;
18
+ total: z.ZodNumber;
19
+ totalPage: z.ZodNumber;
20
+ }, z.core.$strip>;
21
+ schemaVersion: z.ZodLiteral<1>;
22
+ }, z.core.$strip>;
23
+ export declare const vrtListingsLookupSchema: z.ZodObject<{
24
+ activeOwnership: z.ZodOptional<z.ZodBoolean>;
25
+ includeChildren: z.ZodOptional<z.ZodBoolean>;
26
+ issue: z.ZodOptional<z.ZodEnum<{
27
+ all: "all";
28
+ any: "any";
29
+ missingOwnershipOrDeactivation: "missingOwnershipOrDeactivation";
30
+ missingFeesAndCommission: "missingFeesAndCommission";
31
+ missingOpeningBalance: "missingOpeningBalance";
32
+ }>>;
33
+ limit: z.ZodDefault<z.ZodNumber>;
34
+ page: z.ZodDefault<z.ZodNumber>;
35
+ parent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"null">]>>;
36
+ search: z.ZodOptional<z.ZodString>;
37
+ status: z.ZodOptional<z.ZodEnum<{
38
+ active: "active";
39
+ inactive: "inactive";
40
+ }>>;
41
+ teamId: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>;
43
+ export declare const vrtReservationsLookupSchema: z.ZodObject<{
44
+ bookingChannel: z.ZodOptional<z.ZodString>;
45
+ date: z.ZodOptional<z.ZodString>;
46
+ dateField: z.ZodOptional<z.ZodEnum<{
47
+ bookedAt: "bookedAt";
48
+ checkIn: "checkIn";
49
+ checkOut: "checkOut";
50
+ payment: "payment";
51
+ intersection: "intersection";
52
+ }>>;
53
+ generalLedgerStatus: z.ZodOptional<z.ZodEnum<{
54
+ active: "active";
55
+ inactive: "inactive";
56
+ }>>;
57
+ ids: z.ZodOptional<z.ZodString>;
58
+ includeLines: z.ZodOptional<z.ZodBoolean>;
59
+ limit: z.ZodDefault<z.ZodNumber>;
60
+ listingId: z.ZodOptional<z.ZodString>;
61
+ page: z.ZodDefault<z.ZodNumber>;
62
+ paidStatus: z.ZodOptional<z.ZodEnum<{
63
+ unpaid: "unpaid";
64
+ underpaid: "underpaid";
65
+ overpaid: "overpaid";
66
+ paid: "paid";
67
+ "!unpaid": "!unpaid";
68
+ "!underpaid": "!underpaid";
69
+ "!overpaid": "!overpaid";
70
+ "!paid": "!paid";
71
+ }>>;
72
+ search: z.ZodOptional<z.ZodString>;
73
+ shortRefs: z.ZodOptional<z.ZodString>;
74
+ status: z.ZodOptional<z.ZodEnum<{
75
+ inactive: "inactive";
76
+ canceled: "canceled";
77
+ booked: "booked";
78
+ }>>;
79
+ teamId: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>;
81
+ export declare const vrtTransactionsLookupSchema: z.ZodObject<{
82
+ accountId: z.ZodOptional<z.ZodString>;
83
+ amount: z.ZodOptional<z.ZodString>;
84
+ contactId: z.ZodOptional<z.ZodString>;
85
+ dateRange: z.ZodOptional<z.ZodString>;
86
+ ids: z.ZodOptional<z.ZodString>;
87
+ includeLines: z.ZodOptional<z.ZodBoolean>;
88
+ limit: z.ZodDefault<z.ZodNumber>;
89
+ listingIds: z.ZodOptional<z.ZodString>;
90
+ page: z.ZodDefault<z.ZodNumber>;
91
+ paidAtRange: z.ZodOptional<z.ZodString>;
92
+ paidStatus: z.ZodOptional<z.ZodEnum<{
93
+ unpaid: "unpaid";
94
+ underpaid: "underpaid";
95
+ overpaid: "overpaid";
96
+ paid: "paid";
97
+ }>>;
98
+ reconciled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"candidate">]>>;
99
+ search: z.ZodOptional<z.ZodString>;
100
+ shortRefs: z.ZodOptional<z.ZodString>;
101
+ status: z.ZodOptional<z.ZodEnum<{
102
+ active: "active";
103
+ inactive: "inactive";
104
+ }>>;
105
+ teamId: z.ZodOptional<z.ZodString>;
106
+ type: z.ZodOptional<z.ZodEnum<{
107
+ deposit: "deposit";
108
+ expense: "expense";
109
+ transfer: "transfer";
110
+ payout: "payout";
111
+ }>>;
112
+ uniqueRefs: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ export declare const vrtAccountsLookupSchema: z.ZodObject<{
115
+ bankingCategory: z.ZodOptional<z.ZodEnum<{
116
+ trust: "trust";
117
+ operating: "operating";
118
+ external: "external";
119
+ }>>;
120
+ classification: z.ZodOptional<z.ZodEnum<{
121
+ asset: "asset";
122
+ liability: "liability";
123
+ revenue: "revenue";
124
+ expense: "expense";
125
+ }>>;
126
+ limit: z.ZodDefault<z.ZodNumber>;
127
+ page: z.ZodDefault<z.ZodNumber>;
128
+ reconciled: z.ZodOptional<z.ZodBoolean>;
129
+ search: z.ZodOptional<z.ZodString>;
130
+ status: z.ZodOptional<z.ZodEnum<{
131
+ active: "active";
132
+ inactive: "inactive";
133
+ }>>;
134
+ teamId: z.ZodOptional<z.ZodString>;
135
+ type: z.ZodOptional<z.ZodEnum<{
136
+ ledger: "ledger";
137
+ bank: "bank";
138
+ recurringFee: "recurringFee";
139
+ nonPosting: "nonPosting";
140
+ }>>;
141
+ }, z.core.$strip>;
142
+ export declare const vrtStatementsLookupSchema: z.ZodObject<{
143
+ dateRange: z.ZodOptional<z.ZodString>;
144
+ isDateRangeEndInclusive: z.ZodOptional<z.ZodBoolean>;
145
+ limit: z.ZodDefault<z.ZodNumber>;
146
+ listingIds: z.ZodOptional<z.ZodString>;
147
+ month: z.ZodOptional<z.ZodString>;
148
+ ownerIds: z.ZodOptional<z.ZodString>;
149
+ page: z.ZodDefault<z.ZodNumber>;
150
+ periodIds: z.ZodOptional<z.ZodString>;
151
+ recurringFeeIds: z.ZodOptional<z.ZodString>;
152
+ search: z.ZodOptional<z.ZodString>;
153
+ statementIds: z.ZodOptional<z.ZodString>;
154
+ status: z.ZodOptional<z.ZodEnum<{
155
+ all: "all";
156
+ draft: "draft";
157
+ inReview: "inReview";
158
+ published: "published";
159
+ }>>;
160
+ teamId: z.ZodOptional<z.ZodString>;
161
+ year: z.ZodOptional<z.ZodNumber>;
162
+ }, z.core.$strip>;
163
+ export declare const vrtJournalEntriesLookupSchema: z.ZodObject<{
164
+ accountAssignmentTypes: z.ZodOptional<z.ZodString>;
165
+ accountIds: z.ZodOptional<z.ZodString>;
166
+ accountType: z.ZodOptional<z.ZodEnum<{
167
+ ledger: "ledger";
168
+ bank: "bank";
169
+ recurringFee: "recurringFee";
170
+ nonPosting: "nonPosting";
171
+ }>>;
172
+ amount: z.ZodOptional<z.ZodString>;
173
+ classifications: z.ZodOptional<z.ZodString>;
174
+ date: z.ZodOptional<z.ZodString>;
175
+ endAt: z.ZodOptional<z.ZodString>;
176
+ entityTypes: z.ZodOptional<z.ZodString>;
177
+ excludeTriggerTypes: z.ZodOptional<z.ZodString>;
178
+ excludeTypes: z.ZodOptional<z.ZodString>;
179
+ ids: z.ZodOptional<z.ZodString>;
180
+ includeDetails: z.ZodOptional<z.ZodBoolean>;
181
+ ledger: z.ZodOptional<z.ZodEnum<{
182
+ trust: "trust";
183
+ operating: "operating";
184
+ historical: "historical";
185
+ }>>;
186
+ limit: z.ZodDefault<z.ZodNumber>;
187
+ listingIds: z.ZodOptional<z.ZodString>;
188
+ ownerStatementIds: z.ZodOptional<z.ZodString>;
189
+ page: z.ZodDefault<z.ZodNumber>;
190
+ party: z.ZodOptional<z.ZodEnum<{
191
+ owners: "owners";
192
+ manager: "manager";
193
+ }>>;
194
+ published: z.ZodOptional<z.ZodBoolean>;
195
+ reservationIds: z.ZodOptional<z.ZodString>;
196
+ search: z.ZodOptional<z.ZodString>;
197
+ startAt: z.ZodOptional<z.ZodString>;
198
+ status: z.ZodOptional<z.ZodEnum<{
199
+ active: "active";
200
+ inactive: "inactive";
201
+ }>>;
202
+ teamId: z.ZodOptional<z.ZodString>;
203
+ transactionIds: z.ZodOptional<z.ZodString>;
204
+ triggerTypes: z.ZodOptional<z.ZodString>;
205
+ types: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>;
207
+ export type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;
208
+ export type VrtReservationsLookupInput = z.infer<typeof vrtReservationsLookupSchema>;
209
+ export type VrtTransactionsLookupInput = z.infer<typeof vrtTransactionsLookupSchema>;
210
+ export type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;
211
+ export type VrtStatementsLookupInput = z.infer<typeof vrtStatementsLookupSchema>;
212
+ export type VrtJournalEntriesLookupInput = z.infer<typeof vrtJournalEntriesLookupSchema>;
213
+ export type VrtPaginatedLookupOutput = z.infer<typeof vrtPaginatedLookupOutputSchema>;
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vrtJournalEntriesLookupSchema = exports.vrtStatementsLookupSchema = exports.vrtAccountsLookupSchema = exports.vrtTransactionsLookupSchema = exports.vrtReservationsLookupSchema = exports.vrtListingsLookupSchema = exports.vrtPaginatedLookupOutputSchema = exports.vrtPaginatedLookupPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const vrtLookupLimitSchema = zod_1.z.number().int().min(1).max(25).default(10);
6
+ const vrtLookupPageSchema = zod_1.z.number().int().min(1).default(1);
7
+ const vrtDateRangeSchema = zod_1.z.string().trim().min(1).optional();
8
+ const vrtCsvSchema = zod_1.z.string().trim().min(1).optional();
9
+ const vrtTeamIdSchema = zod_1.z.string().uuid().optional();
10
+ exports.vrtPaginatedLookupPayloadSchema = zod_1.z.object({
11
+ data: zod_1.z.array(zod_1.z.unknown()),
12
+ pagination: zod_1.z.object({
13
+ limit: zod_1.z.number().int(),
14
+ nextPage: zod_1.z.number().int().optional(),
15
+ page: zod_1.z.number().int(),
16
+ total: zod_1.z.number().int(),
17
+ totalPage: zod_1.z.number().int(),
18
+ }),
19
+ });
20
+ exports.vrtPaginatedLookupOutputSchema = exports.vrtPaginatedLookupPayloadSchema.extend({
21
+ schemaVersion: zod_1.z.literal(1),
22
+ });
23
+ exports.vrtListingsLookupSchema = zod_1.z.object({
24
+ activeOwnership: zod_1.z.boolean().optional(),
25
+ includeChildren: zod_1.z.boolean().optional(),
26
+ issue: zod_1.z
27
+ .enum([
28
+ 'all',
29
+ 'any',
30
+ 'missingOwnershipOrDeactivation',
31
+ 'missingFeesAndCommission',
32
+ 'missingOpeningBalance',
33
+ ])
34
+ .optional(),
35
+ limit: vrtLookupLimitSchema,
36
+ page: vrtLookupPageSchema,
37
+ parent: zod_1.z.union([zod_1.z.string().uuid(), zod_1.z.literal('null')]).optional(),
38
+ search: zod_1.z.string().trim().min(1).optional(),
39
+ status: zod_1.z.enum(['active', 'inactive']).optional(),
40
+ teamId: vrtTeamIdSchema,
41
+ });
42
+ exports.vrtReservationsLookupSchema = zod_1.z.object({
43
+ bookingChannel: zod_1.z.string().trim().min(1).optional(),
44
+ date: vrtDateRangeSchema,
45
+ dateField: zod_1.z
46
+ .enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])
47
+ .optional(),
48
+ generalLedgerStatus: zod_1.z.enum(['active', 'inactive']).optional(),
49
+ ids: vrtCsvSchema,
50
+ includeLines: zod_1.z.boolean().optional(),
51
+ limit: vrtLookupLimitSchema,
52
+ listingId: zod_1.z.string().trim().min(1).optional(),
53
+ page: vrtLookupPageSchema,
54
+ paidStatus: zod_1.z
55
+ .enum([
56
+ 'unpaid',
57
+ 'underpaid',
58
+ 'overpaid',
59
+ 'paid',
60
+ '!unpaid',
61
+ '!underpaid',
62
+ '!overpaid',
63
+ '!paid',
64
+ ])
65
+ .optional(),
66
+ search: zod_1.z.string().trim().min(1).optional(),
67
+ shortRefs: vrtCsvSchema,
68
+ status: zod_1.z.enum(['booked', 'canceled', 'inactive']).optional(),
69
+ teamId: vrtTeamIdSchema,
70
+ });
71
+ exports.vrtTransactionsLookupSchema = zod_1.z.object({
72
+ accountId: zod_1.z.string().trim().min(1).optional(),
73
+ amount: zod_1.z.string().trim().min(1).optional(),
74
+ contactId: zod_1.z.string().uuid().optional(),
75
+ dateRange: vrtDateRangeSchema,
76
+ ids: vrtCsvSchema,
77
+ includeLines: zod_1.z.boolean().optional(),
78
+ limit: vrtLookupLimitSchema,
79
+ listingIds: vrtCsvSchema,
80
+ page: vrtLookupPageSchema,
81
+ paidAtRange: vrtDateRangeSchema,
82
+ paidStatus: zod_1.z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),
83
+ reconciled: zod_1.z.union([zod_1.z.boolean(), zod_1.z.literal('candidate')]).optional(),
84
+ search: zod_1.z.string().trim().min(1).optional(),
85
+ shortRefs: vrtCsvSchema,
86
+ status: zod_1.z.enum(['active', 'inactive']).optional(),
87
+ teamId: vrtTeamIdSchema,
88
+ type: zod_1.z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),
89
+ uniqueRefs: vrtCsvSchema,
90
+ });
91
+ exports.vrtAccountsLookupSchema = zod_1.z.object({
92
+ bankingCategory: zod_1.z.enum(['trust', 'operating', 'external']).optional(),
93
+ classification: zod_1.z
94
+ .enum(['asset', 'liability', 'revenue', 'expense'])
95
+ .optional(),
96
+ limit: vrtLookupLimitSchema,
97
+ page: vrtLookupPageSchema,
98
+ reconciled: zod_1.z.boolean().optional(),
99
+ search: zod_1.z.string().trim().min(1).optional(),
100
+ status: zod_1.z.enum(['active', 'inactive']).optional(),
101
+ teamId: vrtTeamIdSchema,
102
+ type: zod_1.z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),
103
+ });
104
+ exports.vrtStatementsLookupSchema = zod_1.z.object({
105
+ dateRange: vrtDateRangeSchema,
106
+ isDateRangeEndInclusive: zod_1.z.boolean().optional(),
107
+ limit: vrtLookupLimitSchema,
108
+ listingIds: vrtCsvSchema,
109
+ month: zod_1.z
110
+ .string()
111
+ .regex(/^\d{4}-\d{2}$/)
112
+ .optional(),
113
+ ownerIds: vrtCsvSchema,
114
+ page: vrtLookupPageSchema,
115
+ periodIds: vrtCsvSchema,
116
+ recurringFeeIds: vrtCsvSchema,
117
+ search: zod_1.z.string().trim().min(1).optional(),
118
+ statementIds: vrtCsvSchema,
119
+ status: zod_1.z.enum(['draft', 'inReview', 'published', 'all']).optional(),
120
+ teamId: vrtTeamIdSchema,
121
+ year: zod_1.z.number().int().min(1900).max(2100).optional(),
122
+ });
123
+ exports.vrtJournalEntriesLookupSchema = zod_1.z.object({
124
+ accountAssignmentTypes: vrtCsvSchema,
125
+ accountIds: vrtCsvSchema,
126
+ accountType: zod_1.z
127
+ .enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])
128
+ .optional(),
129
+ amount: zod_1.z.string().trim().min(1).optional(),
130
+ classifications: vrtCsvSchema,
131
+ date: vrtDateRangeSchema,
132
+ endAt: zod_1.z.string().trim().min(1).optional(),
133
+ entityTypes: vrtCsvSchema,
134
+ excludeTriggerTypes: vrtCsvSchema,
135
+ excludeTypes: vrtCsvSchema,
136
+ ids: vrtCsvSchema,
137
+ includeDetails: zod_1.z.boolean().optional(),
138
+ ledger: zod_1.z.enum(['historical', 'trust', 'operating']).optional(),
139
+ limit: vrtLookupLimitSchema,
140
+ listingIds: vrtCsvSchema,
141
+ ownerStatementIds: vrtCsvSchema,
142
+ page: vrtLookupPageSchema,
143
+ party: zod_1.z.enum(['owners', 'manager']).optional(),
144
+ published: zod_1.z.boolean().optional(),
145
+ reservationIds: vrtCsvSchema,
146
+ search: zod_1.z.string().trim().min(1).optional(),
147
+ startAt: zod_1.z.string().trim().min(1).optional(),
148
+ status: zod_1.z.enum(['active', 'inactive']).optional(),
149
+ teamId: vrtTeamIdSchema,
150
+ transactionIds: vrtCsvSchema,
151
+ triggerTypes: vrtCsvSchema,
152
+ types: vrtCsvSchema,
153
+ });
154
+ //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AI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,eAAe;IACvB,cAAc,EAAE,YAAY;IAC5B,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,YAAY;CACpB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nconst vrtLookupLimitSchema = z.number().int().min(1).max(25).default(10);\nconst vrtLookupPageSchema = z.number().int().min(1).default(1);\nconst vrtDateRangeSchema = z.string().trim().min(1).optional();\nconst vrtCsvSchema = z.string().trim().min(1).optional();\nconst vrtTeamIdSchema = z.string().uuid().optional();\n\nexport const vrtPaginatedLookupPayloadSchema = z.object({\n data: z.array(z.unknown()),\n pagination: z.object({\n limit: z.number().int(),\n nextPage: z.number().int().optional(),\n page: z.number().int(),\n total: z.number().int(),\n totalPage: z.number().int(),\n }),\n});\n\nexport const vrtPaginatedLookupOutputSchema =\n vrtPaginatedLookupPayloadSchema.extend({\n schemaVersion: z.literal(1),\n });\n\nexport const vrtListingsLookupSchema = z.object({\n activeOwnership: z.boolean().optional(),\n includeChildren: z.boolean().optional(),\n issue: z\n .enum([\n 'all',\n 'any',\n 'missingOwnershipOrDeactivation',\n 'missingFeesAndCommission',\n 'missingOpeningBalance',\n ])\n .optional(),\n limit: vrtLookupLimitSchema,\n page: vrtLookupPageSchema,\n parent: z.union([z.string().uuid(), z.literal('null')]).optional(),\n search: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n});\n\nexport const vrtReservationsLookupSchema = z.object({\n bookingChannel: z.string().trim().min(1).optional(),\n date: vrtDateRangeSchema,\n dateField: z\n .enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])\n .optional(),\n generalLedgerStatus: z.enum(['active', 'inactive']).optional(),\n ids: vrtCsvSchema,\n includeLines: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingId: z.string().trim().min(1).optional(),\n page: vrtLookupPageSchema,\n paidStatus: z\n .enum([\n 'unpaid',\n 'underpaid',\n 'overpaid',\n 'paid',\n '!unpaid',\n '!underpaid',\n '!overpaid',\n '!paid',\n ])\n .optional(),\n search: z.string().trim().min(1).optional(),\n shortRefs: vrtCsvSchema,\n status: z.enum(['booked', 'canceled', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n});\n\nexport const vrtTransactionsLookupSchema = z.object({\n accountId: z.string().trim().min(1).optional(),\n amount: z.string().trim().min(1).optional(),\n contactId: z.string().uuid().optional(),\n dateRange: vrtDateRangeSchema,\n ids: vrtCsvSchema,\n includeLines: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n paidAtRange: vrtDateRangeSchema,\n paidStatus: z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),\n reconciled: z.union([z.boolean(), z.literal('candidate')]).optional(),\n search: z.string().trim().min(1).optional(),\n shortRefs: vrtCsvSchema,\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n type: z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),\n uniqueRefs: vrtCsvSchema,\n});\n\nexport const vrtAccountsLookupSchema = z.object({\n bankingCategory: z.enum(['trust', 'operating', 'external']).optional(),\n classification: z\n .enum(['asset', 'liability', 'revenue', 'expense'])\n .optional(),\n limit: vrtLookupLimitSchema,\n page: vrtLookupPageSchema,\n reconciled: z.boolean().optional(),\n search: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n type: z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),\n});\n\nexport const vrtStatementsLookupSchema = z.object({\n dateRange: vrtDateRangeSchema,\n isDateRangeEndInclusive: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n month: z\n .string()\n .regex(/^\\d{4}-\\d{2}$/)\n .optional(),\n ownerIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n periodIds: vrtCsvSchema,\n recurringFeeIds: vrtCsvSchema,\n search: z.string().trim().min(1).optional(),\n statementIds: vrtCsvSchema,\n status: z.enum(['draft', 'inReview', 'published', 'all']).optional(),\n teamId: vrtTeamIdSchema,\n year: z.number().int().min(1900).max(2100).optional(),\n});\n\nexport const vrtJournalEntriesLookupSchema = z.object({\n accountAssignmentTypes: vrtCsvSchema,\n accountIds: vrtCsvSchema,\n accountType: z\n .enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])\n .optional(),\n amount: z.string().trim().min(1).optional(),\n classifications: vrtCsvSchema,\n date: vrtDateRangeSchema,\n endAt: z.string().trim().min(1).optional(),\n entityTypes: vrtCsvSchema,\n excludeTriggerTypes: vrtCsvSchema,\n excludeTypes: vrtCsvSchema,\n ids: vrtCsvSchema,\n includeDetails: z.boolean().optional(),\n ledger: z.enum(['historical', 'trust', 'operating']).optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n ownerStatementIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n party: z.enum(['owners', 'manager']).optional(),\n published: z.boolean().optional(),\n reservationIds: vrtCsvSchema,\n search: z.string().trim().min(1).optional(),\n startAt: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n transactionIds: vrtCsvSchema,\n triggerTypes: vrtCsvSchema,\n types: vrtCsvSchema,\n});\n\nexport type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;\nexport type VrtReservationsLookupInput = z.infer<\n typeof vrtReservationsLookupSchema\n>;\nexport type VrtTransactionsLookupInput = z.infer<\n typeof vrtTransactionsLookupSchema\n>;\nexport type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;\nexport type VrtStatementsLookupInput = z.infer<\n typeof vrtStatementsLookupSchema\n>;\nexport type VrtJournalEntriesLookupInput = z.infer<\n typeof vrtJournalEntriesLookupSchema\n>;\nexport type VrtPaginatedLookupOutput = z.infer<\n typeof vrtPaginatedLookupOutputSchema\n>;\n"]}
@@ -6,4 +6,5 @@ export type * from './generated/v1';
6
6
  export * from './routing';
7
7
  export * from './sec';
8
8
  export * from './types';
9
+ export * from './vrt-mcp';
9
10
  export type VRPlatformApi = ApiClient;
@@ -4,4 +4,5 @@ export * from './error';
4
4
  export * from './routing';
5
5
  export * from './sec';
6
6
  export * from './types';
7
+ export * from './vrt-mcp';
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './embed-lifecycle';\nexport * from './error';\nexport type * from './generated/v1';\nexport * from './routing';\nexport * from './sec';\nexport * from './types';\n\nexport type VRPlatformApi = ApiClient;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './embed-lifecycle';\nexport * from './error';\nexport type * from './generated/v1';\nexport * from './routing';\nexport * from './sec';\nexport * from './types';\nexport * from './vrt-mcp';\n\nexport type VRPlatformApi = ApiClient;\n"]}
@@ -0,0 +1,213 @@
1
+ import { z } from 'zod';
2
+ export declare const vrtPaginatedLookupPayloadSchema: z.ZodObject<{
3
+ data: z.ZodArray<z.ZodUnknown>;
4
+ pagination: z.ZodObject<{
5
+ limit: z.ZodNumber;
6
+ nextPage: z.ZodOptional<z.ZodNumber>;
7
+ page: z.ZodNumber;
8
+ total: z.ZodNumber;
9
+ totalPage: z.ZodNumber;
10
+ }, z.core.$strip>;
11
+ }, z.core.$strip>;
12
+ export declare const vrtPaginatedLookupOutputSchema: z.ZodObject<{
13
+ data: z.ZodArray<z.ZodUnknown>;
14
+ pagination: z.ZodObject<{
15
+ limit: z.ZodNumber;
16
+ nextPage: z.ZodOptional<z.ZodNumber>;
17
+ page: z.ZodNumber;
18
+ total: z.ZodNumber;
19
+ totalPage: z.ZodNumber;
20
+ }, z.core.$strip>;
21
+ schemaVersion: z.ZodLiteral<1>;
22
+ }, z.core.$strip>;
23
+ export declare const vrtListingsLookupSchema: z.ZodObject<{
24
+ activeOwnership: z.ZodOptional<z.ZodBoolean>;
25
+ includeChildren: z.ZodOptional<z.ZodBoolean>;
26
+ issue: z.ZodOptional<z.ZodEnum<{
27
+ all: "all";
28
+ any: "any";
29
+ missingOwnershipOrDeactivation: "missingOwnershipOrDeactivation";
30
+ missingFeesAndCommission: "missingFeesAndCommission";
31
+ missingOpeningBalance: "missingOpeningBalance";
32
+ }>>;
33
+ limit: z.ZodDefault<z.ZodNumber>;
34
+ page: z.ZodDefault<z.ZodNumber>;
35
+ parent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"null">]>>;
36
+ search: z.ZodOptional<z.ZodString>;
37
+ status: z.ZodOptional<z.ZodEnum<{
38
+ active: "active";
39
+ inactive: "inactive";
40
+ }>>;
41
+ teamId: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>;
43
+ export declare const vrtReservationsLookupSchema: z.ZodObject<{
44
+ bookingChannel: z.ZodOptional<z.ZodString>;
45
+ date: z.ZodOptional<z.ZodString>;
46
+ dateField: z.ZodOptional<z.ZodEnum<{
47
+ bookedAt: "bookedAt";
48
+ checkIn: "checkIn";
49
+ checkOut: "checkOut";
50
+ payment: "payment";
51
+ intersection: "intersection";
52
+ }>>;
53
+ generalLedgerStatus: z.ZodOptional<z.ZodEnum<{
54
+ active: "active";
55
+ inactive: "inactive";
56
+ }>>;
57
+ ids: z.ZodOptional<z.ZodString>;
58
+ includeLines: z.ZodOptional<z.ZodBoolean>;
59
+ limit: z.ZodDefault<z.ZodNumber>;
60
+ listingId: z.ZodOptional<z.ZodString>;
61
+ page: z.ZodDefault<z.ZodNumber>;
62
+ paidStatus: z.ZodOptional<z.ZodEnum<{
63
+ unpaid: "unpaid";
64
+ underpaid: "underpaid";
65
+ overpaid: "overpaid";
66
+ paid: "paid";
67
+ "!unpaid": "!unpaid";
68
+ "!underpaid": "!underpaid";
69
+ "!overpaid": "!overpaid";
70
+ "!paid": "!paid";
71
+ }>>;
72
+ search: z.ZodOptional<z.ZodString>;
73
+ shortRefs: z.ZodOptional<z.ZodString>;
74
+ status: z.ZodOptional<z.ZodEnum<{
75
+ inactive: "inactive";
76
+ canceled: "canceled";
77
+ booked: "booked";
78
+ }>>;
79
+ teamId: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>;
81
+ export declare const vrtTransactionsLookupSchema: z.ZodObject<{
82
+ accountId: z.ZodOptional<z.ZodString>;
83
+ amount: z.ZodOptional<z.ZodString>;
84
+ contactId: z.ZodOptional<z.ZodString>;
85
+ dateRange: z.ZodOptional<z.ZodString>;
86
+ ids: z.ZodOptional<z.ZodString>;
87
+ includeLines: z.ZodOptional<z.ZodBoolean>;
88
+ limit: z.ZodDefault<z.ZodNumber>;
89
+ listingIds: z.ZodOptional<z.ZodString>;
90
+ page: z.ZodDefault<z.ZodNumber>;
91
+ paidAtRange: z.ZodOptional<z.ZodString>;
92
+ paidStatus: z.ZodOptional<z.ZodEnum<{
93
+ unpaid: "unpaid";
94
+ underpaid: "underpaid";
95
+ overpaid: "overpaid";
96
+ paid: "paid";
97
+ }>>;
98
+ reconciled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"candidate">]>>;
99
+ search: z.ZodOptional<z.ZodString>;
100
+ shortRefs: z.ZodOptional<z.ZodString>;
101
+ status: z.ZodOptional<z.ZodEnum<{
102
+ active: "active";
103
+ inactive: "inactive";
104
+ }>>;
105
+ teamId: z.ZodOptional<z.ZodString>;
106
+ type: z.ZodOptional<z.ZodEnum<{
107
+ deposit: "deposit";
108
+ expense: "expense";
109
+ transfer: "transfer";
110
+ payout: "payout";
111
+ }>>;
112
+ uniqueRefs: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ export declare const vrtAccountsLookupSchema: z.ZodObject<{
115
+ bankingCategory: z.ZodOptional<z.ZodEnum<{
116
+ trust: "trust";
117
+ operating: "operating";
118
+ external: "external";
119
+ }>>;
120
+ classification: z.ZodOptional<z.ZodEnum<{
121
+ asset: "asset";
122
+ liability: "liability";
123
+ revenue: "revenue";
124
+ expense: "expense";
125
+ }>>;
126
+ limit: z.ZodDefault<z.ZodNumber>;
127
+ page: z.ZodDefault<z.ZodNumber>;
128
+ reconciled: z.ZodOptional<z.ZodBoolean>;
129
+ search: z.ZodOptional<z.ZodString>;
130
+ status: z.ZodOptional<z.ZodEnum<{
131
+ active: "active";
132
+ inactive: "inactive";
133
+ }>>;
134
+ teamId: z.ZodOptional<z.ZodString>;
135
+ type: z.ZodOptional<z.ZodEnum<{
136
+ ledger: "ledger";
137
+ bank: "bank";
138
+ recurringFee: "recurringFee";
139
+ nonPosting: "nonPosting";
140
+ }>>;
141
+ }, z.core.$strip>;
142
+ export declare const vrtStatementsLookupSchema: z.ZodObject<{
143
+ dateRange: z.ZodOptional<z.ZodString>;
144
+ isDateRangeEndInclusive: z.ZodOptional<z.ZodBoolean>;
145
+ limit: z.ZodDefault<z.ZodNumber>;
146
+ listingIds: z.ZodOptional<z.ZodString>;
147
+ month: z.ZodOptional<z.ZodString>;
148
+ ownerIds: z.ZodOptional<z.ZodString>;
149
+ page: z.ZodDefault<z.ZodNumber>;
150
+ periodIds: z.ZodOptional<z.ZodString>;
151
+ recurringFeeIds: z.ZodOptional<z.ZodString>;
152
+ search: z.ZodOptional<z.ZodString>;
153
+ statementIds: z.ZodOptional<z.ZodString>;
154
+ status: z.ZodOptional<z.ZodEnum<{
155
+ all: "all";
156
+ draft: "draft";
157
+ inReview: "inReview";
158
+ published: "published";
159
+ }>>;
160
+ teamId: z.ZodOptional<z.ZodString>;
161
+ year: z.ZodOptional<z.ZodNumber>;
162
+ }, z.core.$strip>;
163
+ export declare const vrtJournalEntriesLookupSchema: z.ZodObject<{
164
+ accountAssignmentTypes: z.ZodOptional<z.ZodString>;
165
+ accountIds: z.ZodOptional<z.ZodString>;
166
+ accountType: z.ZodOptional<z.ZodEnum<{
167
+ ledger: "ledger";
168
+ bank: "bank";
169
+ recurringFee: "recurringFee";
170
+ nonPosting: "nonPosting";
171
+ }>>;
172
+ amount: z.ZodOptional<z.ZodString>;
173
+ classifications: z.ZodOptional<z.ZodString>;
174
+ date: z.ZodOptional<z.ZodString>;
175
+ endAt: z.ZodOptional<z.ZodString>;
176
+ entityTypes: z.ZodOptional<z.ZodString>;
177
+ excludeTriggerTypes: z.ZodOptional<z.ZodString>;
178
+ excludeTypes: z.ZodOptional<z.ZodString>;
179
+ ids: z.ZodOptional<z.ZodString>;
180
+ includeDetails: z.ZodOptional<z.ZodBoolean>;
181
+ ledger: z.ZodOptional<z.ZodEnum<{
182
+ trust: "trust";
183
+ operating: "operating";
184
+ historical: "historical";
185
+ }>>;
186
+ limit: z.ZodDefault<z.ZodNumber>;
187
+ listingIds: z.ZodOptional<z.ZodString>;
188
+ ownerStatementIds: z.ZodOptional<z.ZodString>;
189
+ page: z.ZodDefault<z.ZodNumber>;
190
+ party: z.ZodOptional<z.ZodEnum<{
191
+ owners: "owners";
192
+ manager: "manager";
193
+ }>>;
194
+ published: z.ZodOptional<z.ZodBoolean>;
195
+ reservationIds: z.ZodOptional<z.ZodString>;
196
+ search: z.ZodOptional<z.ZodString>;
197
+ startAt: z.ZodOptional<z.ZodString>;
198
+ status: z.ZodOptional<z.ZodEnum<{
199
+ active: "active";
200
+ inactive: "inactive";
201
+ }>>;
202
+ teamId: z.ZodOptional<z.ZodString>;
203
+ transactionIds: z.ZodOptional<z.ZodString>;
204
+ triggerTypes: z.ZodOptional<z.ZodString>;
205
+ types: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>;
207
+ export type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;
208
+ export type VrtReservationsLookupInput = z.infer<typeof vrtReservationsLookupSchema>;
209
+ export type VrtTransactionsLookupInput = z.infer<typeof vrtTransactionsLookupSchema>;
210
+ export type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;
211
+ export type VrtStatementsLookupInput = z.infer<typeof vrtStatementsLookupSchema>;
212
+ export type VrtJournalEntriesLookupInput = z.infer<typeof vrtJournalEntriesLookupSchema>;
213
+ export type VrtPaginatedLookupOutput = z.infer<typeof vrtPaginatedLookupOutputSchema>;
@@ -0,0 +1,151 @@
1
+ import { z } from 'zod';
2
+ const vrtLookupLimitSchema = z.number().int().min(1).max(25).default(10);
3
+ const vrtLookupPageSchema = z.number().int().min(1).default(1);
4
+ const vrtDateRangeSchema = z.string().trim().min(1).optional();
5
+ const vrtCsvSchema = z.string().trim().min(1).optional();
6
+ const vrtTeamIdSchema = z.string().uuid().optional();
7
+ export const vrtPaginatedLookupPayloadSchema = z.object({
8
+ data: z.array(z.unknown()),
9
+ pagination: z.object({
10
+ limit: z.number().int(),
11
+ nextPage: z.number().int().optional(),
12
+ page: z.number().int(),
13
+ total: z.number().int(),
14
+ totalPage: z.number().int(),
15
+ }),
16
+ });
17
+ export const vrtPaginatedLookupOutputSchema = vrtPaginatedLookupPayloadSchema.extend({
18
+ schemaVersion: z.literal(1),
19
+ });
20
+ export const vrtListingsLookupSchema = z.object({
21
+ activeOwnership: z.boolean().optional(),
22
+ includeChildren: z.boolean().optional(),
23
+ issue: z
24
+ .enum([
25
+ 'all',
26
+ 'any',
27
+ 'missingOwnershipOrDeactivation',
28
+ 'missingFeesAndCommission',
29
+ 'missingOpeningBalance',
30
+ ])
31
+ .optional(),
32
+ limit: vrtLookupLimitSchema,
33
+ page: vrtLookupPageSchema,
34
+ parent: z.union([z.string().uuid(), z.literal('null')]).optional(),
35
+ search: z.string().trim().min(1).optional(),
36
+ status: z.enum(['active', 'inactive']).optional(),
37
+ teamId: vrtTeamIdSchema,
38
+ });
39
+ export const vrtReservationsLookupSchema = z.object({
40
+ bookingChannel: z.string().trim().min(1).optional(),
41
+ date: vrtDateRangeSchema,
42
+ dateField: z
43
+ .enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])
44
+ .optional(),
45
+ generalLedgerStatus: z.enum(['active', 'inactive']).optional(),
46
+ ids: vrtCsvSchema,
47
+ includeLines: z.boolean().optional(),
48
+ limit: vrtLookupLimitSchema,
49
+ listingId: z.string().trim().min(1).optional(),
50
+ page: vrtLookupPageSchema,
51
+ paidStatus: z
52
+ .enum([
53
+ 'unpaid',
54
+ 'underpaid',
55
+ 'overpaid',
56
+ 'paid',
57
+ '!unpaid',
58
+ '!underpaid',
59
+ '!overpaid',
60
+ '!paid',
61
+ ])
62
+ .optional(),
63
+ search: z.string().trim().min(1).optional(),
64
+ shortRefs: vrtCsvSchema,
65
+ status: z.enum(['booked', 'canceled', 'inactive']).optional(),
66
+ teamId: vrtTeamIdSchema,
67
+ });
68
+ export const vrtTransactionsLookupSchema = z.object({
69
+ accountId: z.string().trim().min(1).optional(),
70
+ amount: z.string().trim().min(1).optional(),
71
+ contactId: z.string().uuid().optional(),
72
+ dateRange: vrtDateRangeSchema,
73
+ ids: vrtCsvSchema,
74
+ includeLines: z.boolean().optional(),
75
+ limit: vrtLookupLimitSchema,
76
+ listingIds: vrtCsvSchema,
77
+ page: vrtLookupPageSchema,
78
+ paidAtRange: vrtDateRangeSchema,
79
+ paidStatus: z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),
80
+ reconciled: z.union([z.boolean(), z.literal('candidate')]).optional(),
81
+ search: z.string().trim().min(1).optional(),
82
+ shortRefs: vrtCsvSchema,
83
+ status: z.enum(['active', 'inactive']).optional(),
84
+ teamId: vrtTeamIdSchema,
85
+ type: z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),
86
+ uniqueRefs: vrtCsvSchema,
87
+ });
88
+ export const vrtAccountsLookupSchema = z.object({
89
+ bankingCategory: z.enum(['trust', 'operating', 'external']).optional(),
90
+ classification: z
91
+ .enum(['asset', 'liability', 'revenue', 'expense'])
92
+ .optional(),
93
+ limit: vrtLookupLimitSchema,
94
+ page: vrtLookupPageSchema,
95
+ reconciled: z.boolean().optional(),
96
+ search: z.string().trim().min(1).optional(),
97
+ status: z.enum(['active', 'inactive']).optional(),
98
+ teamId: vrtTeamIdSchema,
99
+ type: z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),
100
+ });
101
+ export const vrtStatementsLookupSchema = z.object({
102
+ dateRange: vrtDateRangeSchema,
103
+ isDateRangeEndInclusive: z.boolean().optional(),
104
+ limit: vrtLookupLimitSchema,
105
+ listingIds: vrtCsvSchema,
106
+ month: z
107
+ .string()
108
+ .regex(/^\d{4}-\d{2}$/)
109
+ .optional(),
110
+ ownerIds: vrtCsvSchema,
111
+ page: vrtLookupPageSchema,
112
+ periodIds: vrtCsvSchema,
113
+ recurringFeeIds: vrtCsvSchema,
114
+ search: z.string().trim().min(1).optional(),
115
+ statementIds: vrtCsvSchema,
116
+ status: z.enum(['draft', 'inReview', 'published', 'all']).optional(),
117
+ teamId: vrtTeamIdSchema,
118
+ year: z.number().int().min(1900).max(2100).optional(),
119
+ });
120
+ export const vrtJournalEntriesLookupSchema = z.object({
121
+ accountAssignmentTypes: vrtCsvSchema,
122
+ accountIds: vrtCsvSchema,
123
+ accountType: z
124
+ .enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])
125
+ .optional(),
126
+ amount: z.string().trim().min(1).optional(),
127
+ classifications: vrtCsvSchema,
128
+ date: vrtDateRangeSchema,
129
+ endAt: z.string().trim().min(1).optional(),
130
+ entityTypes: vrtCsvSchema,
131
+ excludeTriggerTypes: vrtCsvSchema,
132
+ excludeTypes: vrtCsvSchema,
133
+ ids: vrtCsvSchema,
134
+ includeDetails: z.boolean().optional(),
135
+ ledger: z.enum(['historical', 'trust', 'operating']).optional(),
136
+ limit: vrtLookupLimitSchema,
137
+ listingIds: vrtCsvSchema,
138
+ ownerStatementIds: vrtCsvSchema,
139
+ page: vrtLookupPageSchema,
140
+ party: z.enum(['owners', 'manager']).optional(),
141
+ published: z.boolean().optional(),
142
+ reservationIds: vrtCsvSchema,
143
+ search: z.string().trim().min(1).optional(),
144
+ startAt: z.string().trim().min(1).optional(),
145
+ status: z.enum(['active', 'inactive']).optional(),
146
+ teamId: vrtTeamIdSchema,
147
+ transactionIds: vrtCsvSchema,
148
+ triggerTypes: vrtCsvSchema,
149
+ types: vrtCsvSchema,
150
+ });
151
+ //# sourceMappingURL=vrt-mcp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vrt-mcp.js","sourceRoot":"src/","sources":["vrt-mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AACzE,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC/D,MAAM,YAA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AAC,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,YAAY;IACzB,mBAAmB,EAAE,YAAY;IACjC,YAAY,EAAE,YAAY;IAC1B,GAAG,EAAE,YAAY;IACjB,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC/D,KAAK,EAAE,oBAAoB;IAC3B,UAAU,EAAE,YAAY;IACxB,iBAAiB,EAAE,YAAY;IAC/B,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC/C,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,YAAY;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,eAAe;IACvB,cAAc,EAAE,YAAY;IAC5B,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,YAAY;CACpB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nconst vrtLookupLimitSchema = z.number().int().min(1).max(25).default(10);\nconst vrtLookupPageSchema = z.number().int().min(1).default(1);\nconst vrtDateRangeSchema = z.string().trim().min(1).optional();\nconst vrtCsvSchema = z.string().trim().min(1).optional();\nconst vrtTeamIdSchema = z.string().uuid().optional();\n\nexport const vrtPaginatedLookupPayloadSchema = z.object({\n data: z.array(z.unknown()),\n pagination: z.object({\n limit: z.number().int(),\n nextPage: z.number().int().optional(),\n page: z.number().int(),\n total: z.number().int(),\n totalPage: z.number().int(),\n }),\n});\n\nexport const vrtPaginatedLookupOutputSchema =\n vrtPaginatedLookupPayloadSchema.extend({\n schemaVersion: z.literal(1),\n });\n\nexport const vrtListingsLookupSchema = z.object({\n activeOwnership: z.boolean().optional(),\n includeChildren: z.boolean().optional(),\n issue: z\n .enum([\n 'all',\n 'any',\n 'missingOwnershipOrDeactivation',\n 'missingFeesAndCommission',\n 'missingOpeningBalance',\n ])\n .optional(),\n limit: vrtLookupLimitSchema,\n page: vrtLookupPageSchema,\n parent: z.union([z.string().uuid(), z.literal('null')]).optional(),\n search: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n});\n\nexport const vrtReservationsLookupSchema = z.object({\n bookingChannel: z.string().trim().min(1).optional(),\n date: vrtDateRangeSchema,\n dateField: z\n .enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])\n .optional(),\n generalLedgerStatus: z.enum(['active', 'inactive']).optional(),\n ids: vrtCsvSchema,\n includeLines: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingId: z.string().trim().min(1).optional(),\n page: vrtLookupPageSchema,\n paidStatus: z\n .enum([\n 'unpaid',\n 'underpaid',\n 'overpaid',\n 'paid',\n '!unpaid',\n '!underpaid',\n '!overpaid',\n '!paid',\n ])\n .optional(),\n search: z.string().trim().min(1).optional(),\n shortRefs: vrtCsvSchema,\n status: z.enum(['booked', 'canceled', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n});\n\nexport const vrtTransactionsLookupSchema = z.object({\n accountId: z.string().trim().min(1).optional(),\n amount: z.string().trim().min(1).optional(),\n contactId: z.string().uuid().optional(),\n dateRange: vrtDateRangeSchema,\n ids: vrtCsvSchema,\n includeLines: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n paidAtRange: vrtDateRangeSchema,\n paidStatus: z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),\n reconciled: z.union([z.boolean(), z.literal('candidate')]).optional(),\n search: z.string().trim().min(1).optional(),\n shortRefs: vrtCsvSchema,\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n type: z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),\n uniqueRefs: vrtCsvSchema,\n});\n\nexport const vrtAccountsLookupSchema = z.object({\n bankingCategory: z.enum(['trust', 'operating', 'external']).optional(),\n classification: z\n .enum(['asset', 'liability', 'revenue', 'expense'])\n .optional(),\n limit: vrtLookupLimitSchema,\n page: vrtLookupPageSchema,\n reconciled: z.boolean().optional(),\n search: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n type: z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),\n});\n\nexport const vrtStatementsLookupSchema = z.object({\n dateRange: vrtDateRangeSchema,\n isDateRangeEndInclusive: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n month: z\n .string()\n .regex(/^\\d{4}-\\d{2}$/)\n .optional(),\n ownerIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n periodIds: vrtCsvSchema,\n recurringFeeIds: vrtCsvSchema,\n search: z.string().trim().min(1).optional(),\n statementIds: vrtCsvSchema,\n status: z.enum(['draft', 'inReview', 'published', 'all']).optional(),\n teamId: vrtTeamIdSchema,\n year: z.number().int().min(1900).max(2100).optional(),\n});\n\nexport const vrtJournalEntriesLookupSchema = z.object({\n accountAssignmentTypes: vrtCsvSchema,\n accountIds: vrtCsvSchema,\n accountType: z\n .enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])\n .optional(),\n amount: z.string().trim().min(1).optional(),\n classifications: vrtCsvSchema,\n date: vrtDateRangeSchema,\n endAt: z.string().trim().min(1).optional(),\n entityTypes: vrtCsvSchema,\n excludeTriggerTypes: vrtCsvSchema,\n excludeTypes: vrtCsvSchema,\n ids: vrtCsvSchema,\n includeDetails: z.boolean().optional(),\n ledger: z.enum(['historical', 'trust', 'operating']).optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n ownerStatementIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n party: z.enum(['owners', 'manager']).optional(),\n published: z.boolean().optional(),\n reservationIds: vrtCsvSchema,\n search: z.string().trim().min(1).optional(),\n startAt: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n transactionIds: vrtCsvSchema,\n triggerTypes: vrtCsvSchema,\n types: vrtCsvSchema,\n});\n\nexport type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;\nexport type VrtReservationsLookupInput = z.infer<\n typeof vrtReservationsLookupSchema\n>;\nexport type VrtTransactionsLookupInput = z.infer<\n typeof vrtTransactionsLookupSchema\n>;\nexport type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;\nexport type VrtStatementsLookupInput = z.infer<\n typeof vrtStatementsLookupSchema\n>;\nexport type VrtJournalEntriesLookupInput = z.infer<\n typeof vrtJournalEntriesLookupSchema\n>;\nexport type VrtPaginatedLookupOutput = z.infer<\n typeof vrtPaginatedLookupOutputSchema\n>;\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.1-6479",
6
+ "version": "1.3.1-6484",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
package/src/index.ts CHANGED
@@ -7,5 +7,6 @@ export type * from './generated/v1';
7
7
  export * from './routing';
8
8
  export * from './sec';
9
9
  export * from './types';
10
+ export * from './vrt-mcp';
10
11
 
11
12
  export type VRPlatformApi = ApiClient;
package/src/vrt-mcp.ts ADDED
@@ -0,0 +1,178 @@
1
+ import { z } from 'zod';
2
+
3
+ const vrtLookupLimitSchema = z.number().int().min(1).max(25).default(10);
4
+ const vrtLookupPageSchema = z.number().int().min(1).default(1);
5
+ const vrtDateRangeSchema = z.string().trim().min(1).optional();
6
+ const vrtCsvSchema = z.string().trim().min(1).optional();
7
+ const vrtTeamIdSchema = z.string().uuid().optional();
8
+
9
+ export const vrtPaginatedLookupPayloadSchema = z.object({
10
+ data: z.array(z.unknown()),
11
+ pagination: z.object({
12
+ limit: z.number().int(),
13
+ nextPage: z.number().int().optional(),
14
+ page: z.number().int(),
15
+ total: z.number().int(),
16
+ totalPage: z.number().int(),
17
+ }),
18
+ });
19
+
20
+ export const vrtPaginatedLookupOutputSchema =
21
+ vrtPaginatedLookupPayloadSchema.extend({
22
+ schemaVersion: z.literal(1),
23
+ });
24
+
25
+ export const vrtListingsLookupSchema = z.object({
26
+ activeOwnership: z.boolean().optional(),
27
+ includeChildren: z.boolean().optional(),
28
+ issue: z
29
+ .enum([
30
+ 'all',
31
+ 'any',
32
+ 'missingOwnershipOrDeactivation',
33
+ 'missingFeesAndCommission',
34
+ 'missingOpeningBalance',
35
+ ])
36
+ .optional(),
37
+ limit: vrtLookupLimitSchema,
38
+ page: vrtLookupPageSchema,
39
+ parent: z.union([z.string().uuid(), z.literal('null')]).optional(),
40
+ search: z.string().trim().min(1).optional(),
41
+ status: z.enum(['active', 'inactive']).optional(),
42
+ teamId: vrtTeamIdSchema,
43
+ });
44
+
45
+ export const vrtReservationsLookupSchema = z.object({
46
+ bookingChannel: z.string().trim().min(1).optional(),
47
+ date: vrtDateRangeSchema,
48
+ dateField: z
49
+ .enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])
50
+ .optional(),
51
+ generalLedgerStatus: z.enum(['active', 'inactive']).optional(),
52
+ ids: vrtCsvSchema,
53
+ includeLines: z.boolean().optional(),
54
+ limit: vrtLookupLimitSchema,
55
+ listingId: z.string().trim().min(1).optional(),
56
+ page: vrtLookupPageSchema,
57
+ paidStatus: z
58
+ .enum([
59
+ 'unpaid',
60
+ 'underpaid',
61
+ 'overpaid',
62
+ 'paid',
63
+ '!unpaid',
64
+ '!underpaid',
65
+ '!overpaid',
66
+ '!paid',
67
+ ])
68
+ .optional(),
69
+ search: z.string().trim().min(1).optional(),
70
+ shortRefs: vrtCsvSchema,
71
+ status: z.enum(['booked', 'canceled', 'inactive']).optional(),
72
+ teamId: vrtTeamIdSchema,
73
+ });
74
+
75
+ export const vrtTransactionsLookupSchema = z.object({
76
+ accountId: z.string().trim().min(1).optional(),
77
+ amount: z.string().trim().min(1).optional(),
78
+ contactId: z.string().uuid().optional(),
79
+ dateRange: vrtDateRangeSchema,
80
+ ids: vrtCsvSchema,
81
+ includeLines: z.boolean().optional(),
82
+ limit: vrtLookupLimitSchema,
83
+ listingIds: vrtCsvSchema,
84
+ page: vrtLookupPageSchema,
85
+ paidAtRange: vrtDateRangeSchema,
86
+ paidStatus: z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),
87
+ reconciled: z.union([z.boolean(), z.literal('candidate')]).optional(),
88
+ search: z.string().trim().min(1).optional(),
89
+ shortRefs: vrtCsvSchema,
90
+ status: z.enum(['active', 'inactive']).optional(),
91
+ teamId: vrtTeamIdSchema,
92
+ type: z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),
93
+ uniqueRefs: vrtCsvSchema,
94
+ });
95
+
96
+ export const vrtAccountsLookupSchema = z.object({
97
+ bankingCategory: z.enum(['trust', 'operating', 'external']).optional(),
98
+ classification: z
99
+ .enum(['asset', 'liability', 'revenue', 'expense'])
100
+ .optional(),
101
+ limit: vrtLookupLimitSchema,
102
+ page: vrtLookupPageSchema,
103
+ reconciled: z.boolean().optional(),
104
+ search: z.string().trim().min(1).optional(),
105
+ status: z.enum(['active', 'inactive']).optional(),
106
+ teamId: vrtTeamIdSchema,
107
+ type: z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),
108
+ });
109
+
110
+ export const vrtStatementsLookupSchema = z.object({
111
+ dateRange: vrtDateRangeSchema,
112
+ isDateRangeEndInclusive: z.boolean().optional(),
113
+ limit: vrtLookupLimitSchema,
114
+ listingIds: vrtCsvSchema,
115
+ month: z
116
+ .string()
117
+ .regex(/^\d{4}-\d{2}$/)
118
+ .optional(),
119
+ ownerIds: vrtCsvSchema,
120
+ page: vrtLookupPageSchema,
121
+ periodIds: vrtCsvSchema,
122
+ recurringFeeIds: vrtCsvSchema,
123
+ search: z.string().trim().min(1).optional(),
124
+ statementIds: vrtCsvSchema,
125
+ status: z.enum(['draft', 'inReview', 'published', 'all']).optional(),
126
+ teamId: vrtTeamIdSchema,
127
+ year: z.number().int().min(1900).max(2100).optional(),
128
+ });
129
+
130
+ export const vrtJournalEntriesLookupSchema = z.object({
131
+ accountAssignmentTypes: vrtCsvSchema,
132
+ accountIds: vrtCsvSchema,
133
+ accountType: z
134
+ .enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])
135
+ .optional(),
136
+ amount: z.string().trim().min(1).optional(),
137
+ classifications: vrtCsvSchema,
138
+ date: vrtDateRangeSchema,
139
+ endAt: z.string().trim().min(1).optional(),
140
+ entityTypes: vrtCsvSchema,
141
+ excludeTriggerTypes: vrtCsvSchema,
142
+ excludeTypes: vrtCsvSchema,
143
+ ids: vrtCsvSchema,
144
+ includeDetails: z.boolean().optional(),
145
+ ledger: z.enum(['historical', 'trust', 'operating']).optional(),
146
+ limit: vrtLookupLimitSchema,
147
+ listingIds: vrtCsvSchema,
148
+ ownerStatementIds: vrtCsvSchema,
149
+ page: vrtLookupPageSchema,
150
+ party: z.enum(['owners', 'manager']).optional(),
151
+ published: z.boolean().optional(),
152
+ reservationIds: vrtCsvSchema,
153
+ search: z.string().trim().min(1).optional(),
154
+ startAt: z.string().trim().min(1).optional(),
155
+ status: z.enum(['active', 'inactive']).optional(),
156
+ teamId: vrtTeamIdSchema,
157
+ transactionIds: vrtCsvSchema,
158
+ triggerTypes: vrtCsvSchema,
159
+ types: vrtCsvSchema,
160
+ });
161
+
162
+ export type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;
163
+ export type VrtReservationsLookupInput = z.infer<
164
+ typeof vrtReservationsLookupSchema
165
+ >;
166
+ export type VrtTransactionsLookupInput = z.infer<
167
+ typeof vrtTransactionsLookupSchema
168
+ >;
169
+ export type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;
170
+ export type VrtStatementsLookupInput = z.infer<
171
+ typeof vrtStatementsLookupSchema
172
+ >;
173
+ export type VrtJournalEntriesLookupInput = z.infer<
174
+ typeof vrtJournalEntriesLookupSchema
175
+ >;
176
+ export type VrtPaginatedLookupOutput = z.infer<
177
+ typeof vrtPaginatedLookupOutputSchema
178
+ >;