@mjquinlan2000/practicepanther-mcp 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.js CHANGED
@@ -817,6 +817,83 @@ client.setConfig({
817
817
  // src/server.ts
818
818
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
819
819
 
820
+ // ../shared/dist/helpers.js
821
+ import { z } from "zod";
822
+ function listOf(schema) {
823
+ return z.looseObject({ items: z.array(schema) });
824
+ }
825
+ function cleanQuery(q) {
826
+ return Object.fromEntries(Object.entries(q).filter(([, v]) => v !== void 0));
827
+ }
828
+ function err(e) {
829
+ const msg = e instanceof Error ? e.message : String(e);
830
+ return {
831
+ content: [{ type: "text", text: `Error: ${msg}` }],
832
+ isError: true
833
+ };
834
+ }
835
+
836
+ // ../shared/dist/tool-handler.js
837
+ function getEffectiveQueryParams(tool) {
838
+ if (tool.commonListQueryParams && tool.name.startsWith("list_")) {
839
+ return { ...tool.commonListQueryParams, ...tool.queryParams };
840
+ }
841
+ return tool.queryParams;
842
+ }
843
+ function createToolHandler(tool) {
844
+ const effectiveQueryParams = getEffectiveQueryParams(tool);
845
+ return async (params) => {
846
+ try {
847
+ const options = {};
848
+ if (tool.pathParams) {
849
+ const path = {};
850
+ for (const [mcpName, spec] of Object.entries(tool.pathParams)) {
851
+ const sdkName = typeof spec === "string" ? mcpName : spec.sdkName;
852
+ path[sdkName] = params[mcpName];
853
+ }
854
+ options.path = path;
855
+ }
856
+ const query = {
857
+ ...tool.defaultQuery ?? {}
858
+ };
859
+ if (effectiveQueryParams) {
860
+ for (const paramName of Object.keys(effectiveQueryParams)) {
861
+ if (params[paramName] !== void 0) {
862
+ query[paramName] = params[paramName];
863
+ }
864
+ }
865
+ }
866
+ const hasQueryEntries = Object.keys(query).length > 0;
867
+ if (hasQueryEntries) {
868
+ options.query = cleanQuery(query);
869
+ }
870
+ const res = await tool.sdkFn(Object.keys(options).length > 0 ? options : void 0);
871
+ if (tool.rawContent) {
872
+ return {
873
+ content: [
874
+ {
875
+ type: "text",
876
+ text: JSON.stringify(res.data, null, 2)
877
+ }
878
+ ]
879
+ };
880
+ }
881
+ const structured = tool.isList ? { items: res.data } : res.data;
882
+ return {
883
+ content: [
884
+ {
885
+ type: "text",
886
+ text: JSON.stringify(structured, null, 2)
887
+ }
888
+ ],
889
+ structuredContent: tool.schema ? structured : void 0
890
+ };
891
+ } catch (e) {
892
+ return err(e);
893
+ }
894
+ };
895
+ }
896
+
820
897
  // src/create-server.ts
821
898
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
822
899
  import { z as z3 } from "zod";
@@ -1064,16 +1141,16 @@ var usersGetUsers = (options) => (options?.client ?? client).get({
1064
1141
  });
1065
1142
 
1066
1143
  // src/client/zod.gen.ts
1067
- import * as z from "zod";
1068
- var zUserReference = z.looseObject({
1069
- id: z.string().nullable(),
1070
- display_name: z.string().nullish(),
1071
- email_address: z.string().nullish()
1072
- });
1073
- var zCustomFieldRef = z.looseObject({
1074
- id: z.string().nullable(),
1075
- label: z.string().nullish(),
1076
- value_type: z.union([z.enum([
1144
+ import * as z2 from "zod";
1145
+ var zUserReference = z2.looseObject({
1146
+ id: z2.string().nullable(),
1147
+ display_name: z2.string().nullish(),
1148
+ email_address: z2.string().nullish()
1149
+ });
1150
+ var zCustomFieldRef = z2.looseObject({
1151
+ id: z2.string().nullable(),
1152
+ label: z2.string().nullish(),
1153
+ value_type: z2.union([z2.enum([
1077
1154
  "TextBox",
1078
1155
  "Date",
1079
1156
  "DateTime",
@@ -1083,116 +1160,116 @@ var zCustomFieldRef = z.looseObject({
1083
1160
  "DropDownList",
1084
1161
  "Checkbox",
1085
1162
  "Contact"
1086
- ]), z.string()]).optional()
1163
+ ]), z2.string()]).optional()
1087
1164
  });
1088
- var zAccountReference = z.looseObject({
1089
- id: z.string().nullable(),
1090
- display_name: z.string().nullish()
1165
+ var zAccountReference = z2.looseObject({
1166
+ id: z2.string().nullable(),
1167
+ display_name: z2.string().nullish()
1091
1168
  });
1092
- var zContactReference = z.looseObject({
1169
+ var zContactReference = z2.looseObject({
1093
1170
  account_ref: zAccountReference.nullish(),
1094
- id: z.string().nullable(),
1095
- display_name: z.string().nullish()
1171
+ id: z2.string().nullable(),
1172
+ display_name: z2.string().nullish()
1096
1173
  });
1097
- var zCustomFieldValue = z.looseObject({
1174
+ var zCustomFieldValue = z2.looseObject({
1098
1175
  custom_field_ref: zCustomFieldRef.nullable(),
1099
- value_boolean: z.boolean().nullish(),
1176
+ value_boolean: z2.boolean().nullish(),
1100
1177
  contact_ref: zContactReference.nullish(),
1101
- value_date_time: z.string().nullish(),
1102
- value_number: z.number().nullish(),
1103
- value_string: z.string().nullish()
1178
+ value_date_time: z2.string().nullish(),
1179
+ value_number: z2.number().nullish(),
1180
+ value_string: z2.string().nullish()
1104
1181
  });
1105
- var zContact = z.looseObject({
1106
- id: z.string().nullish(),
1182
+ var zContact = z2.looseObject({
1183
+ id: z2.string().nullish(),
1107
1184
  account_ref: zAccountReference.nullish(),
1108
- is_primary_contact: z.boolean().readonly().nullish(),
1109
- display_name: z.string().readonly().nullish(),
1110
- first_name: z.string().nullish(),
1111
- middle_name: z.string().nullish(),
1112
- last_name: z.string().nullish(),
1113
- phone_mobile: z.string().nullish(),
1114
- phone_home: z.string().nullish(),
1115
- phone_fax: z.string().nullish(),
1116
- phone_work: z.string().nullish(),
1117
- email: z.string().nullish(),
1118
- notes: z.string().nullish(),
1119
- custom_field_values: z.array(zCustomFieldValue).nullish(),
1120
- status: z.union([z.enum(["Active", "Archived"]), z.string()]).optional()
1121
- });
1122
- var zAccount = z.looseObject({
1123
- id: z.string().nullish(),
1124
- display_name: z.string().readonly().nullish(),
1125
- number: z.number().nullish(),
1126
- company_name: z.string().nullish(),
1127
- address_street_1: z.string().nullish(),
1128
- address_street_2: z.string().nullish(),
1129
- address_city: z.string().nullish(),
1130
- address_state: z.string().nullish(),
1131
- address_country: z.string().nullish(),
1132
- address_zip_code: z.string().nullish(),
1133
- tags: z.array(z.string()).nullish(),
1134
- company_custom_field_values: z.array(zCustomFieldValue).nullish(),
1135
- assigned_to_users: z.array(zUserReference).nullish(),
1136
- created_at: z.string().readonly().nullish(),
1137
- updated_at: z.string().readonly().nullish(),
1138
- notes: z.string().nullish(),
1185
+ is_primary_contact: z2.boolean().readonly().nullish(),
1186
+ display_name: z2.string().readonly().nullish(),
1187
+ first_name: z2.string().nullish(),
1188
+ middle_name: z2.string().nullish(),
1189
+ last_name: z2.string().nullish(),
1190
+ phone_mobile: z2.string().nullish(),
1191
+ phone_home: z2.string().nullish(),
1192
+ phone_fax: z2.string().nullish(),
1193
+ phone_work: z2.string().nullish(),
1194
+ email: z2.string().nullish(),
1195
+ notes: z2.string().nullish(),
1196
+ custom_field_values: z2.array(zCustomFieldValue).nullish(),
1197
+ status: z2.union([z2.enum(["Active", "Archived"]), z2.string()]).optional()
1198
+ });
1199
+ var zAccount = z2.looseObject({
1200
+ id: z2.string().nullish(),
1201
+ display_name: z2.string().readonly().nullish(),
1202
+ number: z2.number().nullish(),
1203
+ company_name: z2.string().nullish(),
1204
+ address_street_1: z2.string().nullish(),
1205
+ address_street_2: z2.string().nullish(),
1206
+ address_city: z2.string().nullish(),
1207
+ address_state: z2.string().nullish(),
1208
+ address_country: z2.string().nullish(),
1209
+ address_zip_code: z2.string().nullish(),
1210
+ tags: z2.array(z2.string()).nullish(),
1211
+ company_custom_field_values: z2.array(zCustomFieldValue).nullish(),
1212
+ assigned_to_users: z2.array(zUserReference).nullish(),
1213
+ created_at: z2.string().readonly().nullish(),
1214
+ updated_at: z2.string().readonly().nullish(),
1215
+ notes: z2.string().nullish(),
1139
1216
  primary_contact: zContact.nullish(),
1140
- other_contacts: z.array(zContact).nullish()
1217
+ other_contacts: z2.array(zContact).nullish()
1141
1218
  });
1142
- var zBankAccount = z.looseObject({
1143
- id: z.string().nullable(),
1144
- type: z.union([z.enum([
1219
+ var zBankAccount = z2.looseObject({
1220
+ id: z2.string().nullable(),
1221
+ type: z2.union([z2.enum([
1145
1222
  "Operating",
1146
1223
  "Trust",
1147
1224
  "CreditCard"
1148
- ]), z.string()]).optional(),
1149
- name: z.string().nullish()
1225
+ ]), z2.string()]).optional(),
1226
+ name: z2.string().nullish()
1150
1227
  });
1151
- var zMatter = z.looseObject({
1152
- id: z.string().nullish(),
1228
+ var zMatter = z2.looseObject({
1229
+ id: z2.string().nullish(),
1153
1230
  account_ref: zAccountReference.nullish(),
1154
- number: z.number().nullish(),
1155
- display_name: z.string().readonly().nullish(),
1156
- name: z.string().nullable(),
1157
- notes: z.string().nullish(),
1158
- rate: z.string().nullish(),
1159
- open_date: z.string().nullish(),
1160
- close_date: z.string().nullish(),
1161
- statute_of_limitation_date: z.string().nullish(),
1162
- tags: z.array(z.string()).nullish(),
1163
- status: z.union([z.enum([
1231
+ number: z2.number().nullish(),
1232
+ display_name: z2.string().readonly().nullish(),
1233
+ name: z2.string().nullable(),
1234
+ notes: z2.string().nullish(),
1235
+ rate: z2.string().nullish(),
1236
+ open_date: z2.string().nullish(),
1237
+ close_date: z2.string().nullish(),
1238
+ statute_of_limitation_date: z2.string().nullish(),
1239
+ tags: z2.array(z2.string()).nullish(),
1240
+ status: z2.union([z2.enum([
1164
1241
  "Closed",
1165
1242
  "Pending",
1166
1243
  "Open",
1167
1244
  "Archived"
1168
- ]), z.string()]),
1169
- assigned_to_users: z.array(zUserReference).nullish(),
1170
- custom_field_values: z.array(zCustomFieldValue).nullish(),
1171
- created_at: z.string().readonly().nullish(),
1172
- updated_at: z.string().readonly().nullish()
1173
- });
1174
- var zMatterReference = z.looseObject({
1175
- id: z.string().nullable(),
1176
- display_name: z.string().nullish()
1177
- });
1178
- var zCallLog = z.looseObject({
1179
- id: z.string().nullish(),
1245
+ ]), z2.string()]),
1246
+ assigned_to_users: z2.array(zUserReference).nullish(),
1247
+ custom_field_values: z2.array(zCustomFieldValue).nullish(),
1248
+ created_at: z2.string().readonly().nullish(),
1249
+ updated_at: z2.string().readonly().nullish()
1250
+ });
1251
+ var zMatterReference = z2.looseObject({
1252
+ id: z2.string().nullable(),
1253
+ display_name: z2.string().nullish()
1254
+ });
1255
+ var zCallLog = z2.looseObject({
1256
+ id: z2.string().nullish(),
1180
1257
  account_ref: zAccountReference.nullish(),
1181
1258
  matter_ref: zMatterReference.nullish(),
1182
- subject: z.string().nullable(),
1183
- duration: z.number().nullish(),
1184
- notes: z.string().nullish(),
1185
- date: z.string().nullish(),
1186
- call_direction: z.union([z.enum(["Inbound", "Outbound"]), z.string()]).optional(),
1187
- assigned_to_users: z.array(zUserReference).nullish(),
1188
- tags: z.array(z.string()).nullish(),
1189
- created_at: z.string().readonly().nullish(),
1190
- updated_at: z.string().readonly().nullish()
1191
- });
1192
- var zCustomField = z.looseObject({
1193
- id: z.string().nullish(),
1194
- label: z.string().nullable(),
1195
- value_type: z.union([z.enum([
1259
+ subject: z2.string().nullable(),
1260
+ duration: z2.number().nullish(),
1261
+ notes: z2.string().nullish(),
1262
+ date: z2.string().nullish(),
1263
+ call_direction: z2.union([z2.enum(["Inbound", "Outbound"]), z2.string()]).optional(),
1264
+ assigned_to_users: z2.array(zUserReference).nullish(),
1265
+ tags: z2.array(z2.string()).nullish(),
1266
+ created_at: z2.string().readonly().nullish(),
1267
+ updated_at: z2.string().readonly().nullish()
1268
+ });
1269
+ var zCustomField = z2.looseObject({
1270
+ id: z2.string().nullish(),
1271
+ label: z2.string().nullable(),
1272
+ value_type: z2.union([z2.enum([
1196
1273
  "TextBox",
1197
1274
  "Date",
1198
1275
  "DateTime",
@@ -1202,541 +1279,541 @@ var zCustomField = z.looseObject({
1202
1279
  "DropDownList",
1203
1280
  "Checkbox",
1204
1281
  "Contact"
1205
- ]), z.string()]),
1206
- dropdown_list_values: z.string().nullish(),
1207
- help_text: z.string().nullish(),
1208
- tooltip: z.string().nullish()
1209
- });
1210
- var zEmailAddress = z.looseObject({
1211
- address: z.string().nullable(),
1212
- display_name: z.string().nullish()
1213
- });
1214
- var zFileReference = z.looseObject({
1215
- id: z.string().nullish(),
1216
- file_name: z.string().nullish()
1217
- });
1218
- var zEmail = z.looseObject({
1219
- id: z.string().nullish(),
1220
- subject: z.string().nullable(),
1221
- cc: z.array(zEmailAddress).nullish(),
1222
- to: z.array(zEmailAddress).nullish(),
1282
+ ]), z2.string()]),
1283
+ dropdown_list_values: z2.string().nullish(),
1284
+ help_text: z2.string().nullish(),
1285
+ tooltip: z2.string().nullish()
1286
+ });
1287
+ var zEmailAddress = z2.looseObject({
1288
+ address: z2.string().nullable(),
1289
+ display_name: z2.string().nullish()
1290
+ });
1291
+ var zFileReference = z2.looseObject({
1292
+ id: z2.string().nullish(),
1293
+ file_name: z2.string().nullish()
1294
+ });
1295
+ var zEmail = z2.looseObject({
1296
+ id: z2.string().nullish(),
1297
+ subject: z2.string().nullable(),
1298
+ cc: z2.array(zEmailAddress).nullish(),
1299
+ to: z2.array(zEmailAddress).nullish(),
1223
1300
  from: zEmailAddress.nullish(),
1224
- body_text: z.string().nullable(),
1225
- body_html: z.string().nullish(),
1226
- external_message_id: z.string().nullish(),
1227
- external_thread_id: z.string().nullish(),
1301
+ body_text: z2.string().nullable(),
1302
+ body_html: z2.string().nullish(),
1303
+ external_message_id: z2.string().nullish(),
1304
+ external_thread_id: z2.string().nullish(),
1228
1305
  account_ref: zAccountReference.nullish(),
1229
1306
  matter_ref: zMatterReference.nullish(),
1230
- date: z.string().nullish(),
1231
- tags: z.array(z.string()).nullish(),
1232
- attachments: z.array(zFileReference).readonly().nullish(),
1233
- created_at: z.string().readonly().nullish(),
1234
- updated_at: z.string().readonly().nullish()
1235
- });
1236
- var zEvent = z.looseObject({
1237
- id: z.string().nullish(),
1307
+ date: z2.string().nullish(),
1308
+ tags: z2.array(z2.string()).nullish(),
1309
+ attachments: z2.array(zFileReference).readonly().nullish(),
1310
+ created_at: z2.string().readonly().nullish(),
1311
+ updated_at: z2.string().readonly().nullish()
1312
+ });
1313
+ var zEvent = z2.looseObject({
1314
+ id: z2.string().nullish(),
1238
1315
  account_ref: zAccountReference.nullish(),
1239
1316
  matter_ref: zMatterReference.nullish(),
1240
- subject: z.string().nullable(),
1241
- location: z.string().nullish(),
1242
- notes: z.string().nullish(),
1243
- is_all_day: z.boolean().nullable(),
1244
- start_date_time: z.string().nullable(),
1245
- end_date_time: z.string().nullable(),
1246
- tags: z.array(z.string()).nullish(),
1247
- assigned_to_users: z.array(zUserReference).nullish(),
1248
- assigned_to_contacts: z.array(zContactReference).nullish(),
1249
- created_at: z.string().nullish(),
1250
- updated_at: z.string().nullish()
1251
- });
1252
- var zExpenseCategory = z.looseObject({
1253
- id: z.string().nullish(),
1254
- name: z.string().nullish(),
1255
- created_at: z.string().nullish(),
1256
- updated_at: z.string().readonly().nullish()
1257
- });
1258
- var zExpense = z.looseObject({
1259
- id: z.string().nullish(),
1260
- is_billable: z.boolean().nullish(),
1261
- is_billed: z.boolean().nullish(),
1262
- date: z.string().nullish(),
1263
- qty: z.number().nullable(),
1264
- price: z.number().nullable(),
1265
- amount: z.number().nullish(),
1266
- description: z.string().nullish(),
1267
- private_notes: z.string().nullish(),
1317
+ subject: z2.string().nullable(),
1318
+ location: z2.string().nullish(),
1319
+ notes: z2.string().nullish(),
1320
+ is_all_day: z2.boolean().nullable(),
1321
+ start_date_time: z2.string().nullable(),
1322
+ end_date_time: z2.string().nullable(),
1323
+ tags: z2.array(z2.string()).nullish(),
1324
+ assigned_to_users: z2.array(zUserReference).nullish(),
1325
+ assigned_to_contacts: z2.array(zContactReference).nullish(),
1326
+ created_at: z2.string().nullish(),
1327
+ updated_at: z2.string().nullish()
1328
+ });
1329
+ var zExpenseCategory = z2.looseObject({
1330
+ id: z2.string().nullish(),
1331
+ name: z2.string().nullish(),
1332
+ created_at: z2.string().nullish(),
1333
+ updated_at: z2.string().readonly().nullish()
1334
+ });
1335
+ var zExpense = z2.looseObject({
1336
+ id: z2.string().nullish(),
1337
+ is_billable: z2.boolean().nullish(),
1338
+ is_billed: z2.boolean().nullish(),
1339
+ date: z2.string().nullish(),
1340
+ qty: z2.number().nullable(),
1341
+ price: z2.number().nullable(),
1342
+ amount: z2.number().nullish(),
1343
+ description: z2.string().nullish(),
1344
+ private_notes: z2.string().nullish(),
1268
1345
  account_ref: zAccountReference.nullish(),
1269
1346
  matter_ref: zMatterReference.nullable(),
1270
1347
  billed_by_user_ref: zUserReference.nullish(),
1271
1348
  expense_category_ref: zExpenseCategory.nullish(),
1272
- created_at: z.string().nullish(),
1273
- updated_at: z.string().nullish()
1349
+ created_at: z2.string().nullish(),
1350
+ updated_at: z2.string().nullish()
1274
1351
  });
1275
- var zActivityReference = z.looseObject({
1276
- id: z.string().nullish(),
1277
- subject: z.string().nullish()
1352
+ var zActivityReference = z2.looseObject({
1353
+ id: z2.string().nullish(),
1354
+ subject: z2.string().nullish()
1278
1355
  });
1279
- var zFile = z.looseObject({
1280
- id: z.string().nullish(),
1356
+ var zFile = z2.looseObject({
1357
+ id: z2.string().nullish(),
1281
1358
  account_ref: zAccountReference.nullish(),
1282
1359
  matter_ref: zMatterReference.nullish(),
1283
1360
  activity_ref: zActivityReference.nullish(),
1284
- description: z.string().nullish(),
1285
- file_name: z.string().nullable(),
1286
- size: z.number().readonly().nullish(),
1287
- content_type: z.string().readonly().nullish(),
1288
- created_at: z.string().readonly().nullish(),
1289
- updated_at: z.string().readonly().nullish()
1290
- });
1291
- var zItemReference = z.looseObject({
1292
- id: z.string().nullable(),
1293
- name: z.string().nullish()
1294
- });
1295
- var zFlatFee = z.looseObject({
1296
- id: z.string().nullish(),
1297
- is_billable: z.boolean().nullish(),
1298
- is_billed: z.boolean().nullish(),
1299
- date: z.string().nullable(),
1300
- qty: z.number().nullable(),
1301
- price: z.number().nullish(),
1302
- description: z.string().nullish(),
1303
- private_notes: z.string().nullish(),
1361
+ description: z2.string().nullish(),
1362
+ file_name: z2.string().nullable(),
1363
+ size: z2.number().readonly().nullish(),
1364
+ content_type: z2.string().readonly().nullish(),
1365
+ created_at: z2.string().readonly().nullish(),
1366
+ updated_at: z2.string().readonly().nullish()
1367
+ });
1368
+ var zItemReference = z2.looseObject({
1369
+ id: z2.string().nullable(),
1370
+ name: z2.string().nullish()
1371
+ });
1372
+ var zFlatFee = z2.looseObject({
1373
+ id: z2.string().nullish(),
1374
+ is_billable: z2.boolean().nullish(),
1375
+ is_billed: z2.boolean().nullish(),
1376
+ date: z2.string().nullable(),
1377
+ qty: z2.number().nullable(),
1378
+ price: z2.number().nullish(),
1379
+ description: z2.string().nullish(),
1380
+ private_notes: z2.string().nullish(),
1304
1381
  account_ref: zAccountReference.nullish(),
1305
1382
  matter_ref: zMatterReference.nullable(),
1306
1383
  billed_by_user_ref: zUserReference.nullable(),
1307
1384
  item_ref: zItemReference.nullable(),
1308
- created_at: z.string().readonly().nullish(),
1309
- updated_at: z.string().readonly().nullish()
1310
- });
1311
- var zInvoiceLineItem = z.looseObject({
1312
- quantity: z.number().nullish(),
1313
- rate: z.number().nullish(),
1314
- discount: z.number().nullish(),
1315
- subtotal: z.number().nullish(),
1316
- tax1_name: z.string().nullish(),
1317
- tax1_rate: z.string().nullish(),
1318
- tax1_amount: z.number().nullish(),
1319
- tax2_name: z.string().nullish(),
1320
- tax2_rate: z.string().nullish(),
1321
- tax2_amount: z.number().nullish(),
1322
- total: z.number().nullish(),
1323
- date: z.string().nullish(),
1324
- billed_by: z.string().nullish(),
1325
- item_name: z.string().nullish(),
1326
- item_description: z.string().nullish()
1327
- });
1328
- var zInvoice = z.looseObject({
1385
+ created_at: z2.string().readonly().nullish(),
1386
+ updated_at: z2.string().readonly().nullish()
1387
+ });
1388
+ var zInvoiceLineItem = z2.looseObject({
1389
+ quantity: z2.number().nullish(),
1390
+ rate: z2.number().nullish(),
1391
+ discount: z2.number().nullish(),
1392
+ subtotal: z2.number().nullish(),
1393
+ tax1_name: z2.string().nullish(),
1394
+ tax1_rate: z2.string().nullish(),
1395
+ tax1_amount: z2.number().nullish(),
1396
+ tax2_name: z2.string().nullish(),
1397
+ tax2_rate: z2.string().nullish(),
1398
+ tax2_amount: z2.number().nullish(),
1399
+ total: z2.number().nullish(),
1400
+ date: z2.string().nullish(),
1401
+ billed_by: z2.string().nullish(),
1402
+ item_name: z2.string().nullish(),
1403
+ item_description: z2.string().nullish()
1404
+ });
1405
+ var zInvoice = z2.looseObject({
1329
1406
  account_ref: zAccountReference.nullish(),
1330
1407
  matter_ref: zMatterReference.nullish(),
1331
- id: z.string().nullish(),
1332
- issue_date: z.string().nullish(),
1333
- due_date: z.string().nullish(),
1334
- items_time_entries: z.array(zInvoiceLineItem).nullish(),
1335
- items_expenses: z.array(zInvoiceLineItem).nullish(),
1336
- items_flat_fees: z.array(zInvoiceLineItem).nullish(),
1337
- subtotal: z.number().nullish(),
1338
- tax: z.number().nullish(),
1339
- discount: z.number().nullish(),
1340
- total: z.number().nullish(),
1341
- total_paid: z.number().nullish(),
1342
- total_outstanding: z.number().nullish(),
1343
- invoice_type: z.union([z.enum([
1408
+ id: z2.string().nullish(),
1409
+ issue_date: z2.string().nullish(),
1410
+ due_date: z2.string().nullish(),
1411
+ items_time_entries: z2.array(zInvoiceLineItem).nullish(),
1412
+ items_expenses: z2.array(zInvoiceLineItem).nullish(),
1413
+ items_flat_fees: z2.array(zInvoiceLineItem).nullish(),
1414
+ subtotal: z2.number().nullish(),
1415
+ tax: z2.number().nullish(),
1416
+ discount: z2.number().nullish(),
1417
+ total: z2.number().nullish(),
1418
+ total_paid: z2.number().nullish(),
1419
+ total_outstanding: z2.number().nullish(),
1420
+ invoice_type: z2.union([z2.enum([
1344
1421
  "Sale",
1345
1422
  "Refund",
1346
1423
  "Credit"
1347
- ]), z.string()]).optional(),
1348
- created_at: z.string().readonly().nullish(),
1349
- updated_at: z.string().readonly().nullish()
1350
- });
1351
- var zItem = z.looseObject({
1352
- id: z.string().nullish(),
1353
- name: z.string().nullish(),
1354
- code: z.string().nullish(),
1355
- description: z.string().nullish(),
1356
- rate: z.number().nullable(),
1357
- created_at: z.string().readonly().nullish(),
1358
- updated_at: z.string().readonly().nullish()
1359
- });
1360
- var zMessage = z.looseObject({
1361
- id: z.string().nullish(),
1424
+ ]), z2.string()]).optional(),
1425
+ created_at: z2.string().readonly().nullish(),
1426
+ updated_at: z2.string().readonly().nullish()
1427
+ });
1428
+ var zItem = z2.looseObject({
1429
+ id: z2.string().nullish(),
1430
+ name: z2.string().nullish(),
1431
+ code: z2.string().nullish(),
1432
+ description: z2.string().nullish(),
1433
+ rate: z2.number().nullable(),
1434
+ created_at: z2.string().readonly().nullish(),
1435
+ updated_at: z2.string().readonly().nullish()
1436
+ });
1437
+ var zMessage = z2.looseObject({
1438
+ id: z2.string().nullish(),
1362
1439
  sender: zUserReference.nullish(),
1363
- contact_id: z.string().nullish(),
1440
+ contact_id: z2.string().nullish(),
1364
1441
  contact: zContactReference.nullish(),
1365
- created_at: z.string().readonly().nullish(),
1366
- updated_at: z.string().readonly().nullish(),
1367
- type: z.union([z.enum(["Text", "Secure"]), z.string()]).optional(),
1368
- matter_id: z.string().nullish(),
1369
- account_id: z.string().nullish(),
1370
- subject: z.string().nullish(),
1371
- body: z.string().nullish(),
1372
- sent_date: z.string().nullish(),
1373
- conversation_id: z.string().nullish(),
1374
- external_conversation_id: z.string().nullish(),
1375
- firm_text_phone_number: z.string().nullish(),
1376
- firm_location_name: z.string().nullish(),
1377
- user_name: z.string().nullish(),
1378
- user_email: z.string().nullish(),
1379
- sent_by_contact: z.boolean().nullish()
1380
- });
1381
- var zNote = z.looseObject({
1382
- id: z.string().nullish(),
1442
+ created_at: z2.string().readonly().nullish(),
1443
+ updated_at: z2.string().readonly().nullish(),
1444
+ type: z2.union([z2.enum(["Text", "Secure"]), z2.string()]).optional(),
1445
+ matter_id: z2.string().nullish(),
1446
+ account_id: z2.string().nullish(),
1447
+ subject: z2.string().nullish(),
1448
+ body: z2.string().nullish(),
1449
+ sent_date: z2.string().nullish(),
1450
+ conversation_id: z2.string().nullish(),
1451
+ external_conversation_id: z2.string().nullish(),
1452
+ firm_text_phone_number: z2.string().nullish(),
1453
+ firm_location_name: z2.string().nullish(),
1454
+ user_name: z2.string().nullish(),
1455
+ user_email: z2.string().nullish(),
1456
+ sent_by_contact: z2.boolean().nullish()
1457
+ });
1458
+ var zNote = z2.looseObject({
1459
+ id: z2.string().nullish(),
1383
1460
  account_ref: zAccountReference.nullish(),
1384
1461
  matter_ref: zMatterReference.nullish(),
1385
- subject: z.string().nullable(),
1386
- note: z.string().nullish(),
1387
- assigned_to_users: z.array(zUserReference).nullish(),
1388
- date: z.string().nullish(),
1389
- tags: z.array(z.string()).nullish(),
1390
- created_at: z.string().nullish(),
1391
- updated_at: z.string().nullish()
1392
- });
1393
- var zPaymentDetail = z.looseObject({
1394
- refundedAmount: z.number().nullish(),
1395
- id: z.string().nullish(),
1462
+ subject: z2.string().nullable(),
1463
+ note: z2.string().nullish(),
1464
+ assigned_to_users: z2.array(zUserReference).nullish(),
1465
+ date: z2.string().nullish(),
1466
+ tags: z2.array(z2.string()).nullish(),
1467
+ created_at: z2.string().nullish(),
1468
+ updated_at: z2.string().nullish()
1469
+ });
1470
+ var zPaymentDetail = z2.looseObject({
1471
+ refundedAmount: z2.number().nullish(),
1472
+ id: z2.string().nullish(),
1396
1473
  account_ref: zAccountReference.nullable(),
1397
1474
  matter_ref: zMatterReference.nullish(),
1398
- number: z.number().nullish(),
1399
- date: z.string().nullable(),
1400
- total_amount: z.number().nullable(),
1401
- unapplied_amount: z.number().nullish(),
1402
- notes: z.string().nullish(),
1403
- payee: z.string().nullish(),
1404
- to_print: z.boolean().nullish(),
1405
- check_number: z.number().nullish(),
1475
+ number: z2.number().nullish(),
1476
+ date: z2.string().nullable(),
1477
+ total_amount: z2.number().nullable(),
1478
+ unapplied_amount: z2.number().nullish(),
1479
+ notes: z2.string().nullish(),
1480
+ payee: z2.string().nullish(),
1481
+ to_print: z2.boolean().nullish(),
1482
+ check_number: z2.number().nullish(),
1406
1483
  bank_account: zBankAccount.nullable(),
1407
- created_at: z.string().readonly().nullish(),
1408
- updated_at: z.string().readonly().nullish(),
1409
- status: z.union([z.enum([
1484
+ created_at: z2.string().readonly().nullish(),
1485
+ updated_at: z2.string().readonly().nullish(),
1486
+ status: z2.union([z2.enum([
1410
1487
  "Pending",
1411
1488
  "Failed",
1412
1489
  "Success",
1413
1490
  "Refunded",
1414
1491
  "RefundPending",
1415
1492
  "Canceled"
1416
- ]), z.string()]).optional()
1493
+ ]), z2.string()]).optional()
1417
1494
  });
1418
- var zPayment = z.looseObject({
1419
- id: z.string().nullish(),
1495
+ var zPayment = z2.looseObject({
1496
+ id: z2.string().nullish(),
1420
1497
  account_ref: zAccountReference.nullable(),
1421
1498
  matter_ref: zMatterReference.nullish(),
1422
- number: z.number().nullish(),
1423
- date: z.string().nullable(),
1424
- total_amount: z.number().nullable(),
1425
- unapplied_amount: z.number().nullish(),
1426
- notes: z.string().nullish(),
1427
- payee: z.string().nullish(),
1428
- to_print: z.boolean().nullish(),
1429
- check_number: z.number().nullish(),
1499
+ number: z2.number().nullish(),
1500
+ date: z2.string().nullable(),
1501
+ total_amount: z2.number().nullable(),
1502
+ unapplied_amount: z2.number().nullish(),
1503
+ notes: z2.string().nullish(),
1504
+ payee: z2.string().nullish(),
1505
+ to_print: z2.boolean().nullish(),
1506
+ check_number: z2.number().nullish(),
1430
1507
  bank_account: zBankAccount.nullable(),
1431
- created_at: z.string().readonly().nullish(),
1432
- updated_at: z.string().readonly().nullish(),
1433
- status: z.union([z.enum([
1508
+ created_at: z2.string().readonly().nullish(),
1509
+ updated_at: z2.string().readonly().nullish(),
1510
+ status: z2.union([z2.enum([
1434
1511
  "Pending",
1435
1512
  "Failed",
1436
1513
  "Success",
1437
1514
  "Refunded",
1438
1515
  "RefundPending",
1439
1516
  "Canceled"
1440
- ]), z.string()]).optional()
1517
+ ]), z2.string()]).optional()
1441
1518
  });
1442
- var zRelationship = z.looseObject({
1443
- id: z.string().nullish(),
1519
+ var zRelationship = z2.looseObject({
1520
+ id: z2.string().nullish(),
1444
1521
  contact_ref: zContactReference.nullable(),
1445
1522
  matter_ref: zMatterReference.nullable(),
1446
- name: z.string().nullable(),
1447
- notes: z.string().nullish()
1523
+ name: z2.string().nullable(),
1524
+ notes: z2.string().nullish()
1448
1525
  });
1449
- var zTag = z.looseObject({
1450
- created_at: z.string().nullish(),
1451
- name: z.string().nullish()
1526
+ var zTag = z2.looseObject({
1527
+ created_at: z2.string().nullish(),
1528
+ name: z2.string().nullish()
1452
1529
  });
1453
- var zTask = z.looseObject({
1454
- id: z.string().nullish(),
1530
+ var zTask = z2.looseObject({
1531
+ id: z2.string().nullish(),
1455
1532
  account_ref: zAccountReference.nullish(),
1456
1533
  matter_ref: zMatterReference.nullish(),
1457
- subject: z.string().nullable(),
1458
- notes: z.string().nullish(),
1459
- priority: z.union([z.enum([
1534
+ subject: z2.string().nullable(),
1535
+ notes: z2.string().nullish(),
1536
+ priority: z2.union([z2.enum([
1460
1537
  "Low",
1461
1538
  "Medium",
1462
1539
  "High"
1463
- ]), z.string()]).optional(),
1464
- status: z.union([z.enum([
1540
+ ]), z2.string()]).optional(),
1541
+ status: z2.union([z2.enum([
1465
1542
  "NotCompleted",
1466
1543
  "InProgress",
1467
1544
  "Completed",
1468
1545
  "Conditional"
1469
- ]), z.string()]).optional(),
1470
- due_date: z.string().nullish(),
1471
- assigned_to_users: z.array(zUserReference).nullish(),
1472
- assigned_to_contacts: z.array(zContactReference).nullish(),
1473
- tags: z.array(z.string()).nullish(),
1474
- created_at: z.string().nullish(),
1475
- updated_at: z.string().nullish()
1476
- });
1477
- var zTimeEntry = z.looseObject({
1478
- id: z.string().nullish(),
1479
- is_billable: z.boolean().nullish(),
1480
- is_billed: z.boolean().nullish(),
1481
- date: z.string().nullable(),
1482
- hours: z.number().nullable(),
1483
- rate: z.number().nullish(),
1484
- description: z.string().nullish(),
1485
- private_notes: z.string().nullish(),
1546
+ ]), z2.string()]).optional(),
1547
+ due_date: z2.string().nullish(),
1548
+ assigned_to_users: z2.array(zUserReference).nullish(),
1549
+ assigned_to_contacts: z2.array(zContactReference).nullish(),
1550
+ tags: z2.array(z2.string()).nullish(),
1551
+ created_at: z2.string().nullish(),
1552
+ updated_at: z2.string().nullish()
1553
+ });
1554
+ var zTimeEntry = z2.looseObject({
1555
+ id: z2.string().nullish(),
1556
+ is_billable: z2.boolean().nullish(),
1557
+ is_billed: z2.boolean().nullish(),
1558
+ date: z2.string().nullable(),
1559
+ hours: z2.number().nullable(),
1560
+ rate: z2.number().nullish(),
1561
+ description: z2.string().nullish(),
1562
+ private_notes: z2.string().nullish(),
1486
1563
  account_ref: zAccountReference.nullish(),
1487
1564
  matter_ref: zMatterReference.nullable(),
1488
1565
  billed_by_user_ref: zUserReference.nullable(),
1489
1566
  item_ref: zItemReference.nullish(),
1490
- created_at: z.string().readonly().nullish(),
1491
- updated_at: z.string().readonly().nullish()
1492
- });
1493
- var zUser = z.looseObject({
1494
- id: z.string().nullish(),
1495
- is_active: z.boolean().nullish(),
1496
- display_name: z.string().nullish(),
1497
- first_name: z.string().nullish(),
1498
- last_name: z.string().nullish(),
1499
- middle_name: z.string().nullish(),
1500
- email: z.string().nullish(),
1501
- created_at: z.string().readonly().nullish(),
1502
- updated_at: z.string().readonly().nullish()
1503
- });
1504
- var zContactWritable = z.looseObject({
1505
- id: z.string().nullish(),
1567
+ created_at: z2.string().readonly().nullish(),
1568
+ updated_at: z2.string().readonly().nullish()
1569
+ });
1570
+ var zUser = z2.looseObject({
1571
+ id: z2.string().nullish(),
1572
+ is_active: z2.boolean().nullish(),
1573
+ display_name: z2.string().nullish(),
1574
+ first_name: z2.string().nullish(),
1575
+ last_name: z2.string().nullish(),
1576
+ middle_name: z2.string().nullish(),
1577
+ email: z2.string().nullish(),
1578
+ created_at: z2.string().readonly().nullish(),
1579
+ updated_at: z2.string().readonly().nullish()
1580
+ });
1581
+ var zContactWritable = z2.looseObject({
1582
+ id: z2.string().nullish(),
1506
1583
  account_ref: zAccountReference.nullish(),
1507
- first_name: z.string().nullish(),
1508
- middle_name: z.string().nullish(),
1509
- last_name: z.string().nullish(),
1510
- phone_mobile: z.string().nullish(),
1511
- phone_home: z.string().nullish(),
1512
- phone_fax: z.string().nullish(),
1513
- phone_work: z.string().nullish(),
1514
- email: z.string().nullish(),
1515
- notes: z.string().nullish(),
1516
- custom_field_values: z.array(zCustomFieldValue).nullish()
1517
- });
1518
- var zAccountWritable = z.looseObject({
1519
- id: z.string().nullish(),
1520
- number: z.number().nullish(),
1521
- company_name: z.string().nullish(),
1522
- address_street_1: z.string().nullish(),
1523
- address_street_2: z.string().nullish(),
1524
- address_city: z.string().nullish(),
1525
- address_state: z.string().nullish(),
1526
- address_country: z.string().nullish(),
1527
- address_zip_code: z.string().nullish(),
1528
- tags: z.array(z.string()).nullish(),
1529
- company_custom_field_values: z.array(zCustomFieldValue).nullish(),
1530
- assigned_to_users: z.array(zUserReference).nullish(),
1531
- notes: z.string().nullish(),
1584
+ first_name: z2.string().nullish(),
1585
+ middle_name: z2.string().nullish(),
1586
+ last_name: z2.string().nullish(),
1587
+ phone_mobile: z2.string().nullish(),
1588
+ phone_home: z2.string().nullish(),
1589
+ phone_fax: z2.string().nullish(),
1590
+ phone_work: z2.string().nullish(),
1591
+ email: z2.string().nullish(),
1592
+ notes: z2.string().nullish(),
1593
+ custom_field_values: z2.array(zCustomFieldValue).nullish()
1594
+ });
1595
+ var zAccountWritable = z2.looseObject({
1596
+ id: z2.string().nullish(),
1597
+ number: z2.number().nullish(),
1598
+ company_name: z2.string().nullish(),
1599
+ address_street_1: z2.string().nullish(),
1600
+ address_street_2: z2.string().nullish(),
1601
+ address_city: z2.string().nullish(),
1602
+ address_state: z2.string().nullish(),
1603
+ address_country: z2.string().nullish(),
1604
+ address_zip_code: z2.string().nullish(),
1605
+ tags: z2.array(z2.string()).nullish(),
1606
+ company_custom_field_values: z2.array(zCustomFieldValue).nullish(),
1607
+ assigned_to_users: z2.array(zUserReference).nullish(),
1608
+ notes: z2.string().nullish(),
1532
1609
  primary_contact: zContactWritable.nullish(),
1533
- other_contacts: z.array(zContactWritable).nullish()
1610
+ other_contacts: z2.array(zContactWritable).nullish()
1534
1611
  });
1535
- var zMatterWritable = z.looseObject({
1536
- id: z.string().nullish(),
1612
+ var zMatterWritable = z2.looseObject({
1613
+ id: z2.string().nullish(),
1537
1614
  account_ref: zAccountReference.nullish(),
1538
- number: z.number().nullish(),
1539
- name: z.string().nullable(),
1540
- notes: z.string().nullish(),
1541
- rate: z.string().nullish(),
1542
- open_date: z.string().nullish(),
1543
- close_date: z.string().nullish(),
1544
- statute_of_limitation_date: z.string().nullish(),
1545
- tags: z.array(z.string()).nullish(),
1546
- status: z.union([z.enum([
1615
+ number: z2.number().nullish(),
1616
+ name: z2.string().nullable(),
1617
+ notes: z2.string().nullish(),
1618
+ rate: z2.string().nullish(),
1619
+ open_date: z2.string().nullish(),
1620
+ close_date: z2.string().nullish(),
1621
+ statute_of_limitation_date: z2.string().nullish(),
1622
+ tags: z2.array(z2.string()).nullish(),
1623
+ status: z2.union([z2.enum([
1547
1624
  "Closed",
1548
1625
  "Pending",
1549
1626
  "Open",
1550
1627
  "Archived"
1551
- ]), z.string()]),
1552
- assigned_to_users: z.array(zUserReference).nullish(),
1553
- custom_field_values: z.array(zCustomFieldValue).nullish()
1628
+ ]), z2.string()]),
1629
+ assigned_to_users: z2.array(zUserReference).nullish(),
1630
+ custom_field_values: z2.array(zCustomFieldValue).nullish()
1554
1631
  });
1555
- var zCallLogWritable = z.looseObject({
1556
- id: z.string().nullish(),
1632
+ var zCallLogWritable = z2.looseObject({
1633
+ id: z2.string().nullish(),
1557
1634
  account_ref: zAccountReference.nullish(),
1558
1635
  matter_ref: zMatterReference.nullish(),
1559
- subject: z.string().nullable(),
1560
- duration: z.number().nullish(),
1561
- notes: z.string().nullish(),
1562
- date: z.string().nullish(),
1563
- call_direction: z.union([z.enum(["Inbound", "Outbound"]), z.string()]).optional(),
1564
- assigned_to_users: z.array(zUserReference).nullish(),
1565
- tags: z.array(z.string()).nullish()
1566
- });
1567
- var zEmailWritable = z.looseObject({
1568
- id: z.string().nullish(),
1569
- subject: z.string().nullable(),
1570
- cc: z.array(zEmailAddress).nullish(),
1571
- to: z.array(zEmailAddress).nullish(),
1636
+ subject: z2.string().nullable(),
1637
+ duration: z2.number().nullish(),
1638
+ notes: z2.string().nullish(),
1639
+ date: z2.string().nullish(),
1640
+ call_direction: z2.union([z2.enum(["Inbound", "Outbound"]), z2.string()]).optional(),
1641
+ assigned_to_users: z2.array(zUserReference).nullish(),
1642
+ tags: z2.array(z2.string()).nullish()
1643
+ });
1644
+ var zEmailWritable = z2.looseObject({
1645
+ id: z2.string().nullish(),
1646
+ subject: z2.string().nullable(),
1647
+ cc: z2.array(zEmailAddress).nullish(),
1648
+ to: z2.array(zEmailAddress).nullish(),
1572
1649
  from: zEmailAddress.nullish(),
1573
- body_text: z.string().nullable(),
1574
- body_html: z.string().nullish(),
1575
- external_message_id: z.string().nullish(),
1576
- external_thread_id: z.string().nullish(),
1650
+ body_text: z2.string().nullable(),
1651
+ body_html: z2.string().nullish(),
1652
+ external_message_id: z2.string().nullish(),
1653
+ external_thread_id: z2.string().nullish(),
1577
1654
  account_ref: zAccountReference.nullish(),
1578
1655
  matter_ref: zMatterReference.nullish(),
1579
- date: z.string().nullish(),
1580
- tags: z.array(z.string()).nullish()
1581
- });
1582
- var zExpenseCategoryWritable = z.looseObject({
1583
- id: z.string().nullish(),
1584
- name: z.string().nullish(),
1585
- created_at: z.string().nullish()
1586
- });
1587
- var zExpenseWritable = z.looseObject({
1588
- id: z.string().nullish(),
1589
- is_billable: z.boolean().nullish(),
1590
- is_billed: z.boolean().nullish(),
1591
- date: z.string().nullish(),
1592
- qty: z.number().nullable(),
1593
- price: z.number().nullable(),
1594
- amount: z.number().nullish(),
1595
- description: z.string().nullish(),
1596
- private_notes: z.string().nullish(),
1656
+ date: z2.string().nullish(),
1657
+ tags: z2.array(z2.string()).nullish()
1658
+ });
1659
+ var zExpenseCategoryWritable = z2.looseObject({
1660
+ id: z2.string().nullish(),
1661
+ name: z2.string().nullish(),
1662
+ created_at: z2.string().nullish()
1663
+ });
1664
+ var zExpenseWritable = z2.looseObject({
1665
+ id: z2.string().nullish(),
1666
+ is_billable: z2.boolean().nullish(),
1667
+ is_billed: z2.boolean().nullish(),
1668
+ date: z2.string().nullish(),
1669
+ qty: z2.number().nullable(),
1670
+ price: z2.number().nullable(),
1671
+ amount: z2.number().nullish(),
1672
+ description: z2.string().nullish(),
1673
+ private_notes: z2.string().nullish(),
1597
1674
  account_ref: zAccountReference.nullish(),
1598
1675
  matter_ref: zMatterReference.nullable(),
1599
1676
  billed_by_user_ref: zUserReference.nullish(),
1600
1677
  expense_category_ref: zExpenseCategoryWritable.nullish(),
1601
- created_at: z.string().nullish(),
1602
- updated_at: z.string().nullish()
1678
+ created_at: z2.string().nullish(),
1679
+ updated_at: z2.string().nullish()
1603
1680
  });
1604
- var zFileWritable = z.looseObject({
1605
- id: z.string().nullish(),
1681
+ var zFileWritable = z2.looseObject({
1682
+ id: z2.string().nullish(),
1606
1683
  account_ref: zAccountReference.nullish(),
1607
1684
  matter_ref: zMatterReference.nullish(),
1608
1685
  activity_ref: zActivityReference.nullish(),
1609
- description: z.string().nullish(),
1610
- file_name: z.string().nullable()
1611
- });
1612
- var zFlatFeeWritable = z.looseObject({
1613
- id: z.string().nullish(),
1614
- is_billable: z.boolean().nullish(),
1615
- is_billed: z.boolean().nullish(),
1616
- date: z.string().nullable(),
1617
- qty: z.number().nullable(),
1618
- price: z.number().nullish(),
1619
- description: z.string().nullish(),
1620
- private_notes: z.string().nullish(),
1686
+ description: z2.string().nullish(),
1687
+ file_name: z2.string().nullable()
1688
+ });
1689
+ var zFlatFeeWritable = z2.looseObject({
1690
+ id: z2.string().nullish(),
1691
+ is_billable: z2.boolean().nullish(),
1692
+ is_billed: z2.boolean().nullish(),
1693
+ date: z2.string().nullable(),
1694
+ qty: z2.number().nullable(),
1695
+ price: z2.number().nullish(),
1696
+ description: z2.string().nullish(),
1697
+ private_notes: z2.string().nullish(),
1621
1698
  account_ref: zAccountReference.nullish(),
1622
1699
  matter_ref: zMatterReference.nullable(),
1623
1700
  billed_by_user_ref: zUserReference.nullable(),
1624
1701
  item_ref: zItemReference.nullable()
1625
1702
  });
1626
- var zInvoiceWritable = z.looseObject({
1703
+ var zInvoiceWritable = z2.looseObject({
1627
1704
  account_ref: zAccountReference.nullish(),
1628
1705
  matter_ref: zMatterReference.nullish(),
1629
- id: z.string().nullish(),
1630
- issue_date: z.string().nullish(),
1631
- due_date: z.string().nullish(),
1632
- items_time_entries: z.array(zInvoiceLineItem).nullish(),
1633
- items_expenses: z.array(zInvoiceLineItem).nullish(),
1634
- items_flat_fees: z.array(zInvoiceLineItem).nullish(),
1635
- subtotal: z.number().nullish(),
1636
- tax: z.number().nullish(),
1637
- discount: z.number().nullish(),
1638
- total: z.number().nullish(),
1639
- total_paid: z.number().nullish(),
1640
- total_outstanding: z.number().nullish(),
1641
- invoice_type: z.union([z.enum([
1706
+ id: z2.string().nullish(),
1707
+ issue_date: z2.string().nullish(),
1708
+ due_date: z2.string().nullish(),
1709
+ items_time_entries: z2.array(zInvoiceLineItem).nullish(),
1710
+ items_expenses: z2.array(zInvoiceLineItem).nullish(),
1711
+ items_flat_fees: z2.array(zInvoiceLineItem).nullish(),
1712
+ subtotal: z2.number().nullish(),
1713
+ tax: z2.number().nullish(),
1714
+ discount: z2.number().nullish(),
1715
+ total: z2.number().nullish(),
1716
+ total_paid: z2.number().nullish(),
1717
+ total_outstanding: z2.number().nullish(),
1718
+ invoice_type: z2.union([z2.enum([
1642
1719
  "Sale",
1643
1720
  "Refund",
1644
1721
  "Credit"
1645
- ]), z.string()]).optional()
1722
+ ]), z2.string()]).optional()
1646
1723
  });
1647
- var zItemWritable = z.looseObject({
1648
- id: z.string().nullish(),
1649
- name: z.string().nullish(),
1650
- code: z.string().nullish(),
1651
- description: z.string().nullish(),
1652
- rate: z.number().nullable()
1724
+ var zItemWritable = z2.looseObject({
1725
+ id: z2.string().nullish(),
1726
+ name: z2.string().nullish(),
1727
+ code: z2.string().nullish(),
1728
+ description: z2.string().nullish(),
1729
+ rate: z2.number().nullable()
1653
1730
  });
1654
- var zMessageWritable = z.looseObject({
1655
- id: z.string().nullish(),
1731
+ var zMessageWritable = z2.looseObject({
1732
+ id: z2.string().nullish(),
1656
1733
  sender: zUserReference.nullish(),
1657
- contact_id: z.string().nullish(),
1734
+ contact_id: z2.string().nullish(),
1658
1735
  contact: zContactReference.nullish(),
1659
- type: z.union([z.enum(["Text", "Secure"]), z.string()]).optional(),
1660
- matter_id: z.string().nullish(),
1661
- account_id: z.string().nullish(),
1662
- subject: z.string().nullish(),
1663
- body: z.string().nullish(),
1664
- sent_date: z.string().nullish(),
1665
- conversation_id: z.string().nullish(),
1666
- external_conversation_id: z.string().nullish(),
1667
- firm_text_phone_number: z.string().nullish(),
1668
- firm_location_name: z.string().nullish(),
1669
- user_name: z.string().nullish(),
1670
- user_email: z.string().nullish(),
1671
- sent_by_contact: z.boolean().nullish()
1672
- });
1673
- var zPaymentDetailWritable = z.looseObject({
1674
- refundedAmount: z.number().nullish(),
1675
- id: z.string().nullish(),
1736
+ type: z2.union([z2.enum(["Text", "Secure"]), z2.string()]).optional(),
1737
+ matter_id: z2.string().nullish(),
1738
+ account_id: z2.string().nullish(),
1739
+ subject: z2.string().nullish(),
1740
+ body: z2.string().nullish(),
1741
+ sent_date: z2.string().nullish(),
1742
+ conversation_id: z2.string().nullish(),
1743
+ external_conversation_id: z2.string().nullish(),
1744
+ firm_text_phone_number: z2.string().nullish(),
1745
+ firm_location_name: z2.string().nullish(),
1746
+ user_name: z2.string().nullish(),
1747
+ user_email: z2.string().nullish(),
1748
+ sent_by_contact: z2.boolean().nullish()
1749
+ });
1750
+ var zPaymentDetailWritable = z2.looseObject({
1751
+ refundedAmount: z2.number().nullish(),
1752
+ id: z2.string().nullish(),
1676
1753
  account_ref: zAccountReference.nullable(),
1677
1754
  matter_ref: zMatterReference.nullish(),
1678
- number: z.number().nullish(),
1679
- date: z.string().nullable(),
1680
- total_amount: z.number().nullable(),
1681
- unapplied_amount: z.number().nullish(),
1682
- notes: z.string().nullish(),
1683
- payee: z.string().nullish(),
1684
- to_print: z.boolean().nullish(),
1685
- check_number: z.number().nullish(),
1755
+ number: z2.number().nullish(),
1756
+ date: z2.string().nullable(),
1757
+ total_amount: z2.number().nullable(),
1758
+ unapplied_amount: z2.number().nullish(),
1759
+ notes: z2.string().nullish(),
1760
+ payee: z2.string().nullish(),
1761
+ to_print: z2.boolean().nullish(),
1762
+ check_number: z2.number().nullish(),
1686
1763
  bank_account: zBankAccount.nullable(),
1687
- status: z.union([z.enum([
1764
+ status: z2.union([z2.enum([
1688
1765
  "Pending",
1689
1766
  "Failed",
1690
1767
  "Success",
1691
1768
  "Refunded",
1692
1769
  "RefundPending",
1693
1770
  "Canceled"
1694
- ]), z.string()]).optional()
1771
+ ]), z2.string()]).optional()
1695
1772
  });
1696
- var zPaymentWritable = z.looseObject({
1697
- id: z.string().nullish(),
1773
+ var zPaymentWritable = z2.looseObject({
1774
+ id: z2.string().nullish(),
1698
1775
  account_ref: zAccountReference.nullable(),
1699
1776
  matter_ref: zMatterReference.nullish(),
1700
- number: z.number().nullish(),
1701
- date: z.string().nullable(),
1702
- total_amount: z.number().nullable(),
1703
- unapplied_amount: z.number().nullish(),
1704
- notes: z.string().nullish(),
1705
- payee: z.string().nullish(),
1706
- to_print: z.boolean().nullish(),
1707
- check_number: z.number().nullish(),
1777
+ number: z2.number().nullish(),
1778
+ date: z2.string().nullable(),
1779
+ total_amount: z2.number().nullable(),
1780
+ unapplied_amount: z2.number().nullish(),
1781
+ notes: z2.string().nullish(),
1782
+ payee: z2.string().nullish(),
1783
+ to_print: z2.boolean().nullish(),
1784
+ check_number: z2.number().nullish(),
1708
1785
  bank_account: zBankAccount.nullable(),
1709
- status: z.union([z.enum([
1786
+ status: z2.union([z2.enum([
1710
1787
  "Pending",
1711
1788
  "Failed",
1712
1789
  "Success",
1713
1790
  "Refunded",
1714
1791
  "RefundPending",
1715
1792
  "Canceled"
1716
- ]), z.string()]).optional()
1717
- });
1718
- var zTimeEntryWritable = z.looseObject({
1719
- id: z.string().nullish(),
1720
- is_billable: z.boolean().nullish(),
1721
- is_billed: z.boolean().nullish(),
1722
- date: z.string().nullable(),
1723
- hours: z.number().nullable(),
1724
- rate: z.number().nullish(),
1725
- description: z.string().nullish(),
1726
- private_notes: z.string().nullish(),
1793
+ ]), z2.string()]).optional()
1794
+ });
1795
+ var zTimeEntryWritable = z2.looseObject({
1796
+ id: z2.string().nullish(),
1797
+ is_billable: z2.boolean().nullish(),
1798
+ is_billed: z2.boolean().nullish(),
1799
+ date: z2.string().nullable(),
1800
+ hours: z2.number().nullable(),
1801
+ rate: z2.number().nullish(),
1802
+ description: z2.string().nullish(),
1803
+ private_notes: z2.string().nullish(),
1727
1804
  account_ref: zAccountReference.nullish(),
1728
1805
  matter_ref: zMatterReference.nullable(),
1729
1806
  billed_by_user_ref: zUserReference.nullable(),
1730
1807
  item_ref: zItemReference.nullish()
1731
1808
  });
1732
- var zUserWritable = z.looseObject({
1733
- id: z.string().nullish(),
1734
- is_active: z.boolean().nullish(),
1735
- display_name: z.string().nullish(),
1736
- first_name: z.string().nullish(),
1737
- last_name: z.string().nullish(),
1738
- middle_name: z.string().nullish(),
1739
- email: z.string().nullish()
1809
+ var zUserWritable = z2.looseObject({
1810
+ id: z2.string().nullish(),
1811
+ is_active: z2.boolean().nullish(),
1812
+ display_name: z2.string().nullish(),
1813
+ first_name: z2.string().nullish(),
1814
+ last_name: z2.string().nullish(),
1815
+ middle_name: z2.string().nullish(),
1816
+ email: z2.string().nullish()
1740
1817
  });
1741
1818
  var zNote2 = zNote;
1742
1819
  var zTimeEntry2 = zTimeEntryWritable;
@@ -1753,856 +1830,786 @@ var zEvent2 = zEvent;
1753
1830
  var zFlatFee2 = zFlatFeeWritable;
1754
1831
  var zMatter2 = zMatterWritable;
1755
1832
  var zTask2 = zTask;
1756
- var zAccountsGetAccountData = z.looseObject({
1757
- body: z.never().optional(),
1758
- path: z.looseObject({
1759
- id: z.string()
1833
+ var zAccountsGetAccountData = z2.looseObject({
1834
+ body: z2.never().optional(),
1835
+ path: z2.looseObject({
1836
+ id: z2.string()
1760
1837
  }),
1761
- query: z.never().optional()
1838
+ query: z2.never().optional()
1762
1839
  });
1763
- var zAccountsDeleteData = z.looseObject({
1764
- body: z.never().optional(),
1765
- path: z.never().optional(),
1766
- query: z.looseObject({
1767
- id: z.string()
1840
+ var zAccountsDeleteData = z2.looseObject({
1841
+ body: z2.never().optional(),
1842
+ path: z2.never().optional(),
1843
+ query: z2.looseObject({
1844
+ id: z2.string()
1768
1845
  })
1769
1846
  });
1770
- var zAccountsGetAccountsData = z.looseObject({
1771
- body: z.never().optional(),
1772
- path: z.never().optional(),
1773
- query: z.looseObject({
1774
- assigned_to_user_id: z.string().optional(),
1775
- created_since: z.string().optional(),
1776
- updated_since: z.string().optional(),
1777
- search_text: z.string().optional(),
1778
- account_tag: z.string().optional(),
1779
- apiConsumer: z.union([z.enum(["Unknown", "Zapier"]), z.string()]).optional()
1847
+ var zAccountsGetAccountsData = z2.looseObject({
1848
+ body: z2.never().optional(),
1849
+ path: z2.never().optional(),
1850
+ query: z2.looseObject({
1851
+ assigned_to_user_id: z2.string().optional(),
1852
+ created_since: z2.string().optional(),
1853
+ updated_since: z2.string().optional(),
1854
+ search_text: z2.string().optional(),
1855
+ account_tag: z2.string().optional(),
1856
+ apiConsumer: z2.union([z2.enum(["Unknown", "Zapier"]), z2.string()]).optional()
1780
1857
  }).optional()
1781
1858
  });
1782
- var zAccountsPostAccountData = z.looseObject({
1859
+ var zAccountsPostAccountData = z2.looseObject({
1783
1860
  body: zAccount2,
1784
- path: z.never().optional(),
1785
- query: z.never().optional()
1861
+ path: z2.never().optional(),
1862
+ query: z2.never().optional()
1786
1863
  });
1787
- var zAccountsPutAccountData = z.looseObject({
1864
+ var zAccountsPutAccountData = z2.looseObject({
1788
1865
  body: zAccount2,
1789
- path: z.never().optional(),
1790
- query: z.looseObject({
1791
- id: z.string()
1866
+ path: z2.never().optional(),
1867
+ query: z2.looseObject({
1868
+ id: z2.string()
1792
1869
  })
1793
1870
  });
1794
- var zBankAccountsGetBankAccountData = z.looseObject({
1795
- body: z.never().optional(),
1796
- path: z.looseObject({
1797
- id: z.string()
1871
+ var zBankAccountsGetBankAccountData = z2.looseObject({
1872
+ body: z2.never().optional(),
1873
+ path: z2.looseObject({
1874
+ id: z2.string()
1798
1875
  }),
1799
- query: z.never().optional()
1876
+ query: z2.never().optional()
1800
1877
  });
1801
- var zBankAccountsDeleteData = z.looseObject({
1802
- body: z.never().optional(),
1803
- path: z.never().optional(),
1804
- query: z.looseObject({
1805
- id: z.string()
1878
+ var zBankAccountsDeleteData = z2.looseObject({
1879
+ body: z2.never().optional(),
1880
+ path: z2.never().optional(),
1881
+ query: z2.looseObject({
1882
+ id: z2.string()
1806
1883
  })
1807
1884
  });
1808
- var zBankAccountsGetBankAccountsData = z.looseObject({
1809
- body: z.never().optional(),
1810
- path: z.never().optional(),
1811
- query: z.looseObject({
1812
- created_since: z.string().optional(),
1813
- updated_since: z.string().optional()
1885
+ var zBankAccountsGetBankAccountsData = z2.looseObject({
1886
+ body: z2.never().optional(),
1887
+ path: z2.never().optional(),
1888
+ query: z2.looseObject({
1889
+ created_since: z2.string().optional(),
1890
+ updated_since: z2.string().optional()
1814
1891
  }).optional()
1815
1892
  });
1816
- var zBankAccountsPostBankAccountData = z.looseObject({
1893
+ var zBankAccountsPostBankAccountData = z2.looseObject({
1817
1894
  body: zBankAccount2,
1818
- path: z.never().optional(),
1819
- query: z.never().optional()
1895
+ path: z2.never().optional(),
1896
+ query: z2.never().optional()
1820
1897
  });
1821
- var zBankAccountsPutBankAccountData = z.looseObject({
1898
+ var zBankAccountsPutBankAccountData = z2.looseObject({
1822
1899
  body: zBankAccount2,
1823
- path: z.never().optional(),
1824
- query: z.looseObject({
1825
- id: z.string()
1900
+ path: z2.never().optional(),
1901
+ query: z2.looseObject({
1902
+ id: z2.string()
1826
1903
  })
1827
1904
  });
1828
- var zCallLogsGetCallLogData = z.looseObject({
1829
- body: z.never().optional(),
1830
- path: z.looseObject({
1831
- id: z.string()
1905
+ var zCallLogsGetCallLogData = z2.looseObject({
1906
+ body: z2.never().optional(),
1907
+ path: z2.looseObject({
1908
+ id: z2.string()
1832
1909
  }),
1833
- query: z.never().optional()
1910
+ query: z2.never().optional()
1834
1911
  });
1835
- var zCallLogsDeleteData = z.looseObject({
1836
- body: z.never().optional(),
1837
- path: z.never().optional(),
1838
- query: z.looseObject({
1839
- id: z.string()
1912
+ var zCallLogsDeleteData = z2.looseObject({
1913
+ body: z2.never().optional(),
1914
+ path: z2.never().optional(),
1915
+ query: z2.looseObject({
1916
+ id: z2.string()
1840
1917
  })
1841
1918
  });
1842
- var zCallLogsGetCallLogsData = z.looseObject({
1843
- body: z.never().optional(),
1844
- path: z.never().optional(),
1845
- query: z.looseObject({
1846
- assigned_to_user_id: z.string().optional(),
1847
- account_id: z.string().optional(),
1848
- matter_id: z.string().optional(),
1849
- created_since: z.string().optional(),
1850
- updated_since: z.string().optional(),
1851
- date_from: z.string().optional(),
1852
- date_to: z.string().optional(),
1853
- activity_tag: z.string().optional()
1919
+ var zCallLogsGetCallLogsData = z2.looseObject({
1920
+ body: z2.never().optional(),
1921
+ path: z2.never().optional(),
1922
+ query: z2.looseObject({
1923
+ assigned_to_user_id: z2.string().optional(),
1924
+ account_id: z2.string().optional(),
1925
+ matter_id: z2.string().optional(),
1926
+ created_since: z2.string().optional(),
1927
+ updated_since: z2.string().optional(),
1928
+ date_from: z2.string().optional(),
1929
+ date_to: z2.string().optional(),
1930
+ activity_tag: z2.string().optional()
1854
1931
  }).optional()
1855
1932
  });
1856
- var zCallLogsPostCallLogData = z.looseObject({
1933
+ var zCallLogsPostCallLogData = z2.looseObject({
1857
1934
  body: zCallLog2,
1858
- path: z.never().optional(),
1859
- query: z.never().optional()
1935
+ path: z2.never().optional(),
1936
+ query: z2.never().optional()
1860
1937
  });
1861
- var zCallLogsPutCallLogData = z.looseObject({
1938
+ var zCallLogsPutCallLogData = z2.looseObject({
1862
1939
  body: zCallLog2,
1863
- path: z.never().optional(),
1864
- query: z.looseObject({
1865
- id: z.string()
1940
+ path: z2.never().optional(),
1941
+ query: z2.looseObject({
1942
+ id: z2.string()
1866
1943
  })
1867
1944
  });
1868
- var zContactsGetContactData = z.looseObject({
1869
- body: z.never().optional(),
1870
- path: z.looseObject({
1871
- id: z.string()
1945
+ var zContactsGetContactData = z2.looseObject({
1946
+ body: z2.never().optional(),
1947
+ path: z2.looseObject({
1948
+ id: z2.string()
1872
1949
  }),
1873
- query: z.never().optional()
1874
- });
1875
- var zContactsGetContactsData = z.looseObject({
1876
- body: z.never().optional(),
1877
- path: z.never().optional(),
1878
- query: z.looseObject({
1879
- assigned_to_user_id: z.string().optional(),
1880
- account_id: z.string().optional(),
1881
- status: z.union([z.enum(["Active", "Archived"]), z.string()]).optional(),
1882
- created_since: z.string().optional(),
1883
- updated_since: z.string().optional(),
1884
- search_text: z.string().optional(),
1885
- account_tag: z.string().optional(),
1886
- company_name: z.string().optional()
1950
+ query: z2.never().optional()
1951
+ });
1952
+ var zContactsGetContactsData = z2.looseObject({
1953
+ body: z2.never().optional(),
1954
+ path: z2.never().optional(),
1955
+ query: z2.looseObject({
1956
+ assigned_to_user_id: z2.string().optional(),
1957
+ account_id: z2.string().optional(),
1958
+ status: z2.union([z2.enum(["Active", "Archived"]), z2.string()]).optional(),
1959
+ created_since: z2.string().optional(),
1960
+ updated_since: z2.string().optional(),
1961
+ search_text: z2.string().optional(),
1962
+ account_tag: z2.string().optional(),
1963
+ company_name: z2.string().optional()
1887
1964
  }).optional()
1888
1965
  });
1889
- var zCustomFieldsGetCustomFieldsForAccountData = z.looseObject({
1890
- body: z.never().optional(),
1891
- path: z.never().optional(),
1892
- query: z.looseObject({
1893
- created_since: z.string().optional(),
1894
- updated_since: z.string().optional()
1966
+ var zCustomFieldsGetCustomFieldsForAccountData = z2.looseObject({
1967
+ body: z2.never().optional(),
1968
+ path: z2.never().optional(),
1969
+ query: z2.looseObject({
1970
+ created_since: z2.string().optional(),
1971
+ updated_since: z2.string().optional()
1895
1972
  }).optional()
1896
1973
  });
1897
- var zCustomFieldsGetCustomFieldsForMatterData = z.looseObject({
1898
- body: z.never().optional(),
1899
- path: z.never().optional(),
1900
- query: z.looseObject({
1901
- created_since: z.string().optional(),
1902
- updated_since: z.string().optional()
1974
+ var zCustomFieldsGetCustomFieldsForMatterData = z2.looseObject({
1975
+ body: z2.never().optional(),
1976
+ path: z2.never().optional(),
1977
+ query: z2.looseObject({
1978
+ created_since: z2.string().optional(),
1979
+ updated_since: z2.string().optional()
1903
1980
  }).optional()
1904
1981
  });
1905
- var zCustomFieldsGetCustomFieldsForContactData = z.looseObject({
1906
- body: z.never().optional(),
1907
- path: z.never().optional(),
1908
- query: z.looseObject({
1909
- created_since: z.string().optional(),
1910
- updated_since: z.string().optional()
1982
+ var zCustomFieldsGetCustomFieldsForContactData = z2.looseObject({
1983
+ body: z2.never().optional(),
1984
+ path: z2.never().optional(),
1985
+ query: z2.looseObject({
1986
+ created_since: z2.string().optional(),
1987
+ updated_since: z2.string().optional()
1911
1988
  }).optional()
1912
1989
  });
1913
- var zCustomFieldsGetCustomFieldData = z.looseObject({
1914
- body: z.never().optional(),
1915
- path: z.looseObject({
1916
- id: z.string()
1990
+ var zCustomFieldsGetCustomFieldData = z2.looseObject({
1991
+ body: z2.never().optional(),
1992
+ path: z2.looseObject({
1993
+ id: z2.string()
1917
1994
  }),
1918
- query: z.never().optional()
1995
+ query: z2.never().optional()
1919
1996
  });
1920
- var zEmailsGetEmailData = z.looseObject({
1921
- body: z.never().optional(),
1922
- path: z.looseObject({
1923
- id: z.string()
1997
+ var zEmailsGetEmailData = z2.looseObject({
1998
+ body: z2.never().optional(),
1999
+ path: z2.looseObject({
2000
+ id: z2.string()
1924
2001
  }),
1925
- query: z.never().optional()
2002
+ query: z2.never().optional()
1926
2003
  });
1927
- var zEmailsDeleteData = z.looseObject({
1928
- body: z.never().optional(),
1929
- path: z.never().optional(),
1930
- query: z.looseObject({
1931
- id: z.string()
2004
+ var zEmailsDeleteData = z2.looseObject({
2005
+ body: z2.never().optional(),
2006
+ path: z2.never().optional(),
2007
+ query: z2.looseObject({
2008
+ id: z2.string()
1932
2009
  })
1933
2010
  });
1934
- var zEmailsGetEmailsData = z.looseObject({
1935
- body: z.never().optional(),
1936
- path: z.never().optional(),
1937
- query: z.looseObject({
1938
- assigned_to_user_id: z.string().optional(),
1939
- account_id: z.string().optional(),
1940
- matter_id: z.string().optional(),
1941
- created_since: z.string().optional(),
1942
- updated_since: z.string().optional(),
1943
- activity_tag: z.string().optional(),
1944
- external_message_id: z.string().optional()
2011
+ var zEmailsGetEmailsData = z2.looseObject({
2012
+ body: z2.never().optional(),
2013
+ path: z2.never().optional(),
2014
+ query: z2.looseObject({
2015
+ assigned_to_user_id: z2.string().optional(),
2016
+ account_id: z2.string().optional(),
2017
+ matter_id: z2.string().optional(),
2018
+ created_since: z2.string().optional(),
2019
+ updated_since: z2.string().optional(),
2020
+ activity_tag: z2.string().optional(),
2021
+ external_message_id: z2.string().optional()
1945
2022
  }).optional()
1946
2023
  });
1947
- var zEmailsPostEmailData = z.looseObject({
2024
+ var zEmailsPostEmailData = z2.looseObject({
1948
2025
  body: zEmail2,
1949
- path: z.never().optional(),
1950
- query: z.never().optional()
2026
+ path: z2.never().optional(),
2027
+ query: z2.never().optional()
1951
2028
  });
1952
- var zEmailsPutAccountData = z.looseObject({
2029
+ var zEmailsPutAccountData = z2.looseObject({
1953
2030
  body: zEmail2,
1954
- path: z.never().optional(),
1955
- query: z.looseObject({
1956
- id: z.string()
2031
+ path: z2.never().optional(),
2032
+ query: z2.looseObject({
2033
+ id: z2.string()
1957
2034
  })
1958
2035
  });
1959
- var zEventsGetEventData = z.looseObject({
1960
- body: z.never().optional(),
1961
- path: z.looseObject({
1962
- id: z.string()
2036
+ var zEventsGetEventData = z2.looseObject({
2037
+ body: z2.never().optional(),
2038
+ path: z2.looseObject({
2039
+ id: z2.string()
1963
2040
  }),
1964
- query: z.never().optional()
2041
+ query: z2.never().optional()
1965
2042
  });
1966
- var zEventsDeleteData = z.looseObject({
1967
- body: z.never().optional(),
1968
- path: z.never().optional(),
1969
- query: z.looseObject({
1970
- id: z.string()
2043
+ var zEventsDeleteData = z2.looseObject({
2044
+ body: z2.never().optional(),
2045
+ path: z2.never().optional(),
2046
+ query: z2.looseObject({
2047
+ id: z2.string()
1971
2048
  })
1972
2049
  });
1973
- var zEventsGetEventsData = z.looseObject({
1974
- body: z.never().optional(),
1975
- path: z.never().optional(),
1976
- query: z.looseObject({
1977
- assigned_to_user_id: z.string().optional(),
1978
- account_id: z.string().optional(),
1979
- matter_id: z.string().optional(),
1980
- created_since: z.string().optional(),
1981
- updated_since: z.string().optional(),
1982
- date_from: z.string().optional(),
1983
- date_to: z.string().optional(),
1984
- activity_tag: z.string().optional()
2050
+ var zEventsGetEventsData = z2.looseObject({
2051
+ body: z2.never().optional(),
2052
+ path: z2.never().optional(),
2053
+ query: z2.looseObject({
2054
+ assigned_to_user_id: z2.string().optional(),
2055
+ account_id: z2.string().optional(),
2056
+ matter_id: z2.string().optional(),
2057
+ created_since: z2.string().optional(),
2058
+ updated_since: z2.string().optional(),
2059
+ date_from: z2.string().optional(),
2060
+ date_to: z2.string().optional(),
2061
+ activity_tag: z2.string().optional()
1985
2062
  }).optional()
1986
2063
  });
1987
- var zEventsPostAccountData = z.looseObject({
2064
+ var zEventsPostAccountData = z2.looseObject({
1988
2065
  body: zEvent2,
1989
- path: z.never().optional(),
1990
- query: z.never().optional()
2066
+ path: z2.never().optional(),
2067
+ query: z2.never().optional()
1991
2068
  });
1992
- var zEventsPutAccountData = z.looseObject({
2069
+ var zEventsPutAccountData = z2.looseObject({
1993
2070
  body: zEvent2,
1994
- path: z.never().optional(),
1995
- query: z.looseObject({
1996
- id: z.string()
2071
+ path: z2.never().optional(),
2072
+ query: z2.looseObject({
2073
+ id: z2.string()
1997
2074
  })
1998
2075
  });
1999
- var zExpenseCategoriesGetExpenseCategoryData = z.looseObject({
2000
- body: z.never().optional(),
2001
- path: z.looseObject({
2002
- id: z.string()
2076
+ var zExpenseCategoriesGetExpenseCategoryData = z2.looseObject({
2077
+ body: z2.never().optional(),
2078
+ path: z2.looseObject({
2079
+ id: z2.string()
2003
2080
  }),
2004
- query: z.never().optional()
2081
+ query: z2.never().optional()
2005
2082
  });
2006
- var zExpenseCategoriesDeleteData = z.looseObject({
2007
- body: z.never().optional(),
2008
- path: z.never().optional(),
2009
- query: z.looseObject({
2010
- id: z.string()
2083
+ var zExpenseCategoriesDeleteData = z2.looseObject({
2084
+ body: z2.never().optional(),
2085
+ path: z2.never().optional(),
2086
+ query: z2.looseObject({
2087
+ id: z2.string()
2011
2088
  })
2012
2089
  });
2013
- var zExpenseCategoriesGetExpenseCategoriesData = z.looseObject({
2014
- body: z.never().optional(),
2015
- path: z.never().optional(),
2016
- query: z.looseObject({
2017
- created_since: z.string().optional(),
2018
- updated_since: z.string().optional()
2090
+ var zExpenseCategoriesGetExpenseCategoriesData = z2.looseObject({
2091
+ body: z2.never().optional(),
2092
+ path: z2.never().optional(),
2093
+ query: z2.looseObject({
2094
+ created_since: z2.string().optional(),
2095
+ updated_since: z2.string().optional()
2019
2096
  }).optional()
2020
2097
  });
2021
- var zExpenseCategoriesPostExpenseCategoryData = z.looseObject({
2098
+ var zExpenseCategoriesPostExpenseCategoryData = z2.looseObject({
2022
2099
  body: zExpenseCategory2,
2023
- path: z.never().optional(),
2024
- query: z.never().optional()
2100
+ path: z2.never().optional(),
2101
+ query: z2.never().optional()
2025
2102
  });
2026
- var zExpenseCategoriesPutExpenseCategoryData = z.looseObject({
2103
+ var zExpenseCategoriesPutExpenseCategoryData = z2.looseObject({
2027
2104
  body: zExpenseCategory2,
2028
- path: z.never().optional(),
2029
- query: z.looseObject({
2030
- id: z.string()
2105
+ path: z2.never().optional(),
2106
+ query: z2.looseObject({
2107
+ id: z2.string()
2031
2108
  })
2032
2109
  });
2033
- var zExpensesGetExpenseData = z.looseObject({
2034
- body: z.never().optional(),
2035
- path: z.looseObject({
2036
- id: z.string()
2110
+ var zExpensesGetExpenseData = z2.looseObject({
2111
+ body: z2.never().optional(),
2112
+ path: z2.looseObject({
2113
+ id: z2.string()
2037
2114
  }),
2038
- query: z.never().optional()
2115
+ query: z2.never().optional()
2039
2116
  });
2040
- var zExpensesDeleteData = z.looseObject({
2041
- body: z.never().optional(),
2042
- path: z.never().optional(),
2043
- query: z.looseObject({
2044
- id: z.string()
2117
+ var zExpensesDeleteData = z2.looseObject({
2118
+ body: z2.never().optional(),
2119
+ path: z2.never().optional(),
2120
+ query: z2.looseObject({
2121
+ id: z2.string()
2045
2122
  })
2046
2123
  });
2047
- var zExpensesGetExpensessData = z.looseObject({
2048
- body: z.never().optional(),
2049
- path: z.never().optional(),
2050
- query: z.looseObject({
2051
- account_id: z.string().optional(),
2052
- matter_id: z.string().optional(),
2053
- billed_by_user_id: z.string().optional(),
2054
- expense_category_id: z.string().optional(),
2055
- created_since: z.string().optional(),
2056
- updated_since: z.string().optional(),
2057
- date_from: z.string().optional(),
2058
- date_to: z.string().optional()
2124
+ var zExpensesGetExpensessData = z2.looseObject({
2125
+ body: z2.never().optional(),
2126
+ path: z2.never().optional(),
2127
+ query: z2.looseObject({
2128
+ account_id: z2.string().optional(),
2129
+ matter_id: z2.string().optional(),
2130
+ billed_by_user_id: z2.string().optional(),
2131
+ expense_category_id: z2.string().optional(),
2132
+ created_since: z2.string().optional(),
2133
+ updated_since: z2.string().optional(),
2134
+ date_from: z2.string().optional(),
2135
+ date_to: z2.string().optional()
2059
2136
  }).optional()
2060
2137
  });
2061
- var zExpensesPostAccountData = z.looseObject({
2138
+ var zExpensesPostAccountData = z2.looseObject({
2062
2139
  body: zExpense2,
2063
- path: z.never().optional(),
2064
- query: z.never().optional()
2140
+ path: z2.never().optional(),
2141
+ query: z2.never().optional()
2065
2142
  });
2066
- var zExpensesPutAccountData = z.looseObject({
2143
+ var zExpensesPutAccountData = z2.looseObject({
2067
2144
  body: zExpense2,
2068
- path: z.never().optional(),
2069
- query: z.looseObject({
2070
- id: z.string()
2145
+ path: z2.never().optional(),
2146
+ query: z2.looseObject({
2147
+ id: z2.string()
2071
2148
  })
2072
2149
  });
2073
- var zFilesGetFileData = z.looseObject({
2074
- body: z.never().optional(),
2075
- path: z.looseObject({
2076
- id: z.string()
2150
+ var zFilesGetFileData = z2.looseObject({
2151
+ body: z2.never().optional(),
2152
+ path: z2.looseObject({
2153
+ id: z2.string()
2077
2154
  }),
2078
- query: z.never().optional()
2155
+ query: z2.never().optional()
2079
2156
  });
2080
- var zFilesDownloadFileData = z.looseObject({
2081
- body: z.never().optional(),
2082
- path: z.looseObject({
2083
- id: z.string()
2157
+ var zFilesDownloadFileData = z2.looseObject({
2158
+ body: z2.never().optional(),
2159
+ path: z2.looseObject({
2160
+ id: z2.string()
2084
2161
  }),
2085
- query: z.never().optional()
2086
- });
2087
- var zFilesPostFileToBoxData = z.looseObject({
2088
- body: z.never().optional(),
2089
- path: z.never().optional(),
2090
- query: z.never().optional()
2091
- });
2092
- var zFilesPostFileToBoxResponse = z.record(z.string(), z.unknown());
2093
- var zFilesDeleteData = z.looseObject({
2094
- body: z.never().optional(),
2095
- path: z.never().optional(),
2096
- query: z.looseObject({
2097
- id: z.string()
2162
+ query: z2.never().optional()
2163
+ });
2164
+ var zFilesPostFileToBoxData = z2.looseObject({
2165
+ body: z2.never().optional(),
2166
+ path: z2.never().optional(),
2167
+ query: z2.never().optional()
2168
+ });
2169
+ var zFilesPostFileToBoxResponse = z2.record(z2.string(), z2.unknown());
2170
+ var zFilesDeleteData = z2.looseObject({
2171
+ body: z2.never().optional(),
2172
+ path: z2.never().optional(),
2173
+ query: z2.looseObject({
2174
+ id: z2.string()
2098
2175
  })
2099
2176
  });
2100
- var zFilesGetFilesData = z.looseObject({
2101
- body: z.never().optional(),
2102
- path: z.never().optional(),
2103
- query: z.looseObject({
2104
- created_since: z.string().optional(),
2105
- updated_since: z.string().optional(),
2106
- search_text: z.string().optional(),
2107
- account_id: z.string().optional(),
2108
- matter_id: z.string().optional(),
2109
- activity_id: z.string().optional(),
2110
- created_by_user_id: z.string().optional()
2177
+ var zFilesGetFilesData = z2.looseObject({
2178
+ body: z2.never().optional(),
2179
+ path: z2.never().optional(),
2180
+ query: z2.looseObject({
2181
+ created_since: z2.string().optional(),
2182
+ updated_since: z2.string().optional(),
2183
+ search_text: z2.string().optional(),
2184
+ account_id: z2.string().optional(),
2185
+ matter_id: z2.string().optional(),
2186
+ activity_id: z2.string().optional(),
2187
+ created_by_user_id: z2.string().optional()
2111
2188
  }).optional()
2112
2189
  });
2113
- var zFilesPostFileData = z.looseObject({
2114
- body: z.never().optional(),
2115
- path: z.never().optional(),
2116
- query: z.never().optional()
2190
+ var zFilesPostFileData = z2.looseObject({
2191
+ body: z2.never().optional(),
2192
+ path: z2.never().optional(),
2193
+ query: z2.never().optional()
2117
2194
  });
2118
- var zFilesPutFileData = z.looseObject({
2195
+ var zFilesPutFileData = z2.looseObject({
2119
2196
  body: zFileWritable,
2120
- path: z.never().optional(),
2121
- query: z.looseObject({
2122
- id: z.string()
2197
+ path: z2.never().optional(),
2198
+ query: z2.looseObject({
2199
+ id: z2.string()
2123
2200
  })
2124
2201
  });
2125
- var zFlatFeesGetFlatFeeData = z.looseObject({
2126
- body: z.never().optional(),
2127
- path: z.looseObject({
2128
- id: z.string()
2202
+ var zFlatFeesGetFlatFeeData = z2.looseObject({
2203
+ body: z2.never().optional(),
2204
+ path: z2.looseObject({
2205
+ id: z2.string()
2129
2206
  }),
2130
- query: z.never().optional()
2207
+ query: z2.never().optional()
2131
2208
  });
2132
- var zFlatFeesDeleteData = z.looseObject({
2133
- body: z.never().optional(),
2134
- path: z.never().optional(),
2135
- query: z.looseObject({
2136
- id: z.string()
2209
+ var zFlatFeesDeleteData = z2.looseObject({
2210
+ body: z2.never().optional(),
2211
+ path: z2.never().optional(),
2212
+ query: z2.looseObject({
2213
+ id: z2.string()
2137
2214
  })
2138
2215
  });
2139
- var zFlatFeesGetFlatFeesData = z.looseObject({
2140
- body: z.never().optional(),
2141
- path: z.never().optional(),
2142
- query: z.looseObject({
2143
- account_id: z.string().optional(),
2144
- matter_id: z.string().optional(),
2145
- user_id: z.string().optional(),
2146
- item_id: z.string().optional(),
2147
- created_since: z.string().optional(),
2148
- updated_since: z.string().optional(),
2149
- date_from: z.string().optional(),
2150
- date_to: z.string().optional()
2216
+ var zFlatFeesGetFlatFeesData = z2.looseObject({
2217
+ body: z2.never().optional(),
2218
+ path: z2.never().optional(),
2219
+ query: z2.looseObject({
2220
+ account_id: z2.string().optional(),
2221
+ matter_id: z2.string().optional(),
2222
+ user_id: z2.string().optional(),
2223
+ item_id: z2.string().optional(),
2224
+ created_since: z2.string().optional(),
2225
+ updated_since: z2.string().optional(),
2226
+ date_from: z2.string().optional(),
2227
+ date_to: z2.string().optional()
2151
2228
  }).optional()
2152
2229
  });
2153
- var zFlatFeesPostAccountData = z.looseObject({
2230
+ var zFlatFeesPostAccountData = z2.looseObject({
2154
2231
  body: zFlatFee2,
2155
- path: z.never().optional(),
2156
- query: z.never().optional()
2232
+ path: z2.never().optional(),
2233
+ query: z2.never().optional()
2157
2234
  });
2158
- var zFlatFeesPutAccountData = z.looseObject({
2235
+ var zFlatFeesPutAccountData = z2.looseObject({
2159
2236
  body: zFlatFee2,
2160
- path: z.never().optional(),
2161
- query: z.looseObject({
2162
- id: z.string()
2237
+ path: z2.never().optional(),
2238
+ query: z2.looseObject({
2239
+ id: z2.string()
2163
2240
  })
2164
2241
  });
2165
- var zInvoicesGetInvoiceData = z.looseObject({
2166
- body: z.never().optional(),
2167
- path: z.looseObject({
2168
- id: z.string()
2242
+ var zInvoicesGetInvoiceData = z2.looseObject({
2243
+ body: z2.never().optional(),
2244
+ path: z2.looseObject({
2245
+ id: z2.string()
2169
2246
  }),
2170
- query: z.never().optional()
2247
+ query: z2.never().optional()
2171
2248
  });
2172
- var zInvoicesDeleteData = z.looseObject({
2173
- body: z.never().optional(),
2174
- path: z.never().optional(),
2175
- query: z.looseObject({
2176
- id: z.string()
2249
+ var zInvoicesDeleteData = z2.looseObject({
2250
+ body: z2.never().optional(),
2251
+ path: z2.never().optional(),
2252
+ query: z2.looseObject({
2253
+ id: z2.string()
2177
2254
  })
2178
2255
  });
2179
- var zInvoicesGetInvoicesData = z.looseObject({
2180
- body: z.never().optional(),
2181
- path: z.never().optional(),
2182
- query: z.looseObject({
2183
- account_id: z.string().optional(),
2184
- matter_id: z.string().optional(),
2185
- created_since: z.string().optional(),
2186
- updated_since: z.string().optional(),
2187
- date_from: z.string().optional(),
2188
- date_to: z.string().optional()
2256
+ var zInvoicesGetInvoicesData = z2.looseObject({
2257
+ body: z2.never().optional(),
2258
+ path: z2.never().optional(),
2259
+ query: z2.looseObject({
2260
+ account_id: z2.string().optional(),
2261
+ matter_id: z2.string().optional(),
2262
+ created_since: z2.string().optional(),
2263
+ updated_since: z2.string().optional(),
2264
+ date_from: z2.string().optional(),
2265
+ date_to: z2.string().optional()
2189
2266
  }).optional()
2190
2267
  });
2191
- var zItemsGetItemData = z.looseObject({
2192
- body: z.never().optional(),
2193
- path: z.looseObject({
2194
- id: z.string()
2268
+ var zItemsGetItemData = z2.looseObject({
2269
+ body: z2.never().optional(),
2270
+ path: z2.looseObject({
2271
+ id: z2.string()
2195
2272
  }),
2196
- query: z.never().optional()
2273
+ query: z2.never().optional()
2197
2274
  });
2198
- var zItemsDeleteData = z.looseObject({
2199
- body: z.never().optional(),
2200
- path: z.never().optional(),
2201
- query: z.looseObject({
2202
- id: z.string()
2275
+ var zItemsDeleteData = z2.looseObject({
2276
+ body: z2.never().optional(),
2277
+ path: z2.never().optional(),
2278
+ query: z2.looseObject({
2279
+ id: z2.string()
2203
2280
  })
2204
2281
  });
2205
- var zItemsGetItemsData = z.looseObject({
2206
- body: z.never().optional(),
2207
- path: z.never().optional(),
2208
- query: z.looseObject({
2209
- created_since: z.string().optional(),
2210
- updated_since: z.string().optional()
2282
+ var zItemsGetItemsData = z2.looseObject({
2283
+ body: z2.never().optional(),
2284
+ path: z2.never().optional(),
2285
+ query: z2.looseObject({
2286
+ created_since: z2.string().optional(),
2287
+ updated_since: z2.string().optional()
2211
2288
  }).optional()
2212
2289
  });
2213
- var zItemsPostItemData = z.looseObject({
2290
+ var zItemsPostItemData = z2.looseObject({
2214
2291
  body: zItem2,
2215
- path: z.never().optional(),
2216
- query: z.never().optional()
2292
+ path: z2.never().optional(),
2293
+ query: z2.never().optional()
2217
2294
  });
2218
- var zItemsPutItemData = z.looseObject({
2295
+ var zItemsPutItemData = z2.looseObject({
2219
2296
  body: zItem2,
2220
- path: z.never().optional(),
2221
- query: z.looseObject({
2222
- id: z.string()
2297
+ path: z2.never().optional(),
2298
+ query: z2.looseObject({
2299
+ id: z2.string()
2223
2300
  })
2224
2301
  });
2225
- var zMattersGetMatterData = z.looseObject({
2226
- body: z.never().optional(),
2227
- path: z.looseObject({
2228
- id: z.string()
2302
+ var zMattersGetMatterData = z2.looseObject({
2303
+ body: z2.never().optional(),
2304
+ path: z2.looseObject({
2305
+ id: z2.string()
2229
2306
  }),
2230
- query: z.never().optional()
2307
+ query: z2.never().optional()
2231
2308
  });
2232
- var zMattersDeleteData = z.looseObject({
2233
- body: z.never().optional(),
2234
- path: z.never().optional(),
2235
- query: z.looseObject({
2236
- id: z.string()
2309
+ var zMattersDeleteData = z2.looseObject({
2310
+ body: z2.never().optional(),
2311
+ path: z2.never().optional(),
2312
+ query: z2.looseObject({
2313
+ id: z2.string()
2237
2314
  })
2238
2315
  });
2239
- var zMattersGetMattersData = z.looseObject({
2240
- body: z.never().optional(),
2241
- path: z.never().optional(),
2242
- query: z.looseObject({
2243
- assigned_to_user_id: z.string().optional(),
2244
- account_id: z.string().optional(),
2245
- status: z.union([z.enum([
2316
+ var zMattersGetMattersData = z2.looseObject({
2317
+ body: z2.never().optional(),
2318
+ path: z2.never().optional(),
2319
+ query: z2.looseObject({
2320
+ assigned_to_user_id: z2.string().optional(),
2321
+ account_id: z2.string().optional(),
2322
+ status: z2.union([z2.enum([
2246
2323
  "Closed",
2247
2324
  "Pending",
2248
2325
  "Open",
2249
2326
  "Archived"
2250
- ]), z.string()]).optional(),
2251
- created_since: z.string().optional(),
2252
- updated_since: z.string().optional(),
2253
- search_text: z.string().optional(),
2254
- account_tag: z.string().optional(),
2255
- matter_tag: z.string().optional()
2327
+ ]), z2.string()]).optional(),
2328
+ created_since: z2.string().optional(),
2329
+ updated_since: z2.string().optional(),
2330
+ search_text: z2.string().optional(),
2331
+ account_tag: z2.string().optional(),
2332
+ matter_tag: z2.string().optional()
2256
2333
  }).optional()
2257
2334
  });
2258
- var zMattersPostAccountData = z.looseObject({
2335
+ var zMattersPostAccountData = z2.looseObject({
2259
2336
  body: zMatter2,
2260
- path: z.never().optional(),
2261
- query: z.never().optional()
2337
+ path: z2.never().optional(),
2338
+ query: z2.never().optional()
2262
2339
  });
2263
- var zMattersPutAccountData = z.looseObject({
2340
+ var zMattersPutAccountData = z2.looseObject({
2264
2341
  body: zMatter2,
2265
- path: z.never().optional(),
2266
- query: z.looseObject({
2267
- id: z.string()
2342
+ path: z2.never().optional(),
2343
+ query: z2.looseObject({
2344
+ id: z2.string()
2268
2345
  })
2269
2346
  });
2270
- var zMessagesDeleteData = z.looseObject({
2271
- body: z.never().optional(),
2272
- path: z.never().optional(),
2273
- query: z.looseObject({
2274
- id: z.string()
2347
+ var zMessagesDeleteData = z2.looseObject({
2348
+ body: z2.never().optional(),
2349
+ path: z2.never().optional(),
2350
+ query: z2.looseObject({
2351
+ id: z2.string()
2275
2352
  })
2276
2353
  });
2277
- var zMessagesGetMessagesAsyncData = z.looseObject({
2278
- body: z.never().optional(),
2279
- path: z.never().optional(),
2280
- query: z.never().optional()
2354
+ var zMessagesGetMessagesAsyncData = z2.looseObject({
2355
+ body: z2.never().optional(),
2356
+ path: z2.never().optional(),
2357
+ query: z2.never().optional()
2281
2358
  });
2282
- var zMessagesPostMessageData = z.looseObject({
2359
+ var zMessagesPostMessageData = z2.looseObject({
2283
2360
  body: zMessage2,
2284
- path: z.never().optional(),
2285
- query: z.never().optional()
2361
+ path: z2.never().optional(),
2362
+ query: z2.never().optional()
2286
2363
  });
2287
- var zMessagesPutMessageData = z.looseObject({
2364
+ var zMessagesPutMessageData = z2.looseObject({
2288
2365
  body: zMessage2,
2289
- path: z.never().optional(),
2290
- query: z.looseObject({
2291
- id: z.string()
2366
+ path: z2.never().optional(),
2367
+ query: z2.looseObject({
2368
+ id: z2.string()
2292
2369
  })
2293
2370
  });
2294
- var zNotesGetNoteData = z.looseObject({
2295
- body: z.never().optional(),
2296
- path: z.looseObject({
2297
- id: z.string()
2371
+ var zNotesGetNoteData = z2.looseObject({
2372
+ body: z2.never().optional(),
2373
+ path: z2.looseObject({
2374
+ id: z2.string()
2298
2375
  }),
2299
- query: z.never().optional()
2376
+ query: z2.never().optional()
2300
2377
  });
2301
- var zNotesDeleteData = z.looseObject({
2302
- body: z.never().optional(),
2303
- path: z.never().optional(),
2304
- query: z.looseObject({
2305
- id: z.string()
2378
+ var zNotesDeleteData = z2.looseObject({
2379
+ body: z2.never().optional(),
2380
+ path: z2.never().optional(),
2381
+ query: z2.looseObject({
2382
+ id: z2.string()
2306
2383
  })
2307
2384
  });
2308
- var zNotesGetNotesData = z.looseObject({
2309
- body: z.never().optional(),
2310
- path: z.never().optional(),
2311
- query: z.looseObject({
2312
- assigned_to_user_id: z.string().optional(),
2313
- account_id: z.string().optional(),
2314
- matter_id: z.string().optional(),
2315
- created_since: z.string().optional(),
2316
- updated_since: z.string().optional(),
2317
- date_from: z.string().optional(),
2318
- date_to: z.string().optional(),
2319
- activity_tag: z.string().optional()
2385
+ var zNotesGetNotesData = z2.looseObject({
2386
+ body: z2.never().optional(),
2387
+ path: z2.never().optional(),
2388
+ query: z2.looseObject({
2389
+ assigned_to_user_id: z2.string().optional(),
2390
+ account_id: z2.string().optional(),
2391
+ matter_id: z2.string().optional(),
2392
+ created_since: z2.string().optional(),
2393
+ updated_since: z2.string().optional(),
2394
+ date_from: z2.string().optional(),
2395
+ date_to: z2.string().optional(),
2396
+ activity_tag: z2.string().optional()
2320
2397
  }).optional()
2321
2398
  });
2322
- var zNotesPostNoteData = z.looseObject({
2399
+ var zNotesPostNoteData = z2.looseObject({
2323
2400
  body: zNote2,
2324
- path: z.never().optional(),
2325
- query: z.never().optional()
2401
+ path: z2.never().optional(),
2402
+ query: z2.never().optional()
2326
2403
  });
2327
- var zNotesPutNoteData = z.looseObject({
2404
+ var zNotesPutNoteData = z2.looseObject({
2328
2405
  body: zNote2,
2329
- path: z.never().optional(),
2330
- query: z.looseObject({
2331
- id: z.string()
2406
+ path: z2.never().optional(),
2407
+ query: z2.looseObject({
2408
+ id: z2.string()
2332
2409
  })
2333
2410
  });
2334
- var zPaymentsGetPaymentData = z.looseObject({
2335
- body: z.never().optional(),
2336
- path: z.looseObject({
2337
- id: z.string()
2411
+ var zPaymentsGetPaymentData = z2.looseObject({
2412
+ body: z2.never().optional(),
2413
+ path: z2.looseObject({
2414
+ id: z2.string()
2338
2415
  }),
2339
- query: z.never().optional()
2416
+ query: z2.never().optional()
2340
2417
  });
2341
- var zPaymentsDeleteData = z.looseObject({
2342
- body: z.never().optional(),
2343
- path: z.never().optional(),
2344
- query: z.looseObject({
2345
- id: z.string()
2418
+ var zPaymentsDeleteData = z2.looseObject({
2419
+ body: z2.never().optional(),
2420
+ path: z2.never().optional(),
2421
+ query: z2.looseObject({
2422
+ id: z2.string()
2346
2423
  })
2347
2424
  });
2348
- var zPaymentsGetPaymentsData = z.looseObject({
2349
- body: z.never().optional(),
2350
- path: z.never().optional(),
2351
- query: z.looseObject({
2352
- account_id: z.string().optional(),
2353
- matter_id: z.string().optional(),
2354
- bank_account_id: z.string().optional(),
2355
- bank_account_type: z.union([z.enum([
2425
+ var zPaymentsGetPaymentsData = z2.looseObject({
2426
+ body: z2.never().optional(),
2427
+ path: z2.never().optional(),
2428
+ query: z2.looseObject({
2429
+ account_id: z2.string().optional(),
2430
+ matter_id: z2.string().optional(),
2431
+ bank_account_id: z2.string().optional(),
2432
+ bank_account_type: z2.union([z2.enum([
2356
2433
  "Operating",
2357
2434
  "Trust",
2358
2435
  "CreditCard"
2359
- ]), z.string()]).optional(),
2360
- created_since: z.string().optional(),
2361
- updated_since: z.string().optional(),
2362
- date_from: z.string().optional(),
2363
- date_to: z.string().optional()
2436
+ ]), z2.string()]).optional(),
2437
+ created_since: z2.string().optional(),
2438
+ updated_since: z2.string().optional(),
2439
+ date_from: z2.string().optional(),
2440
+ date_to: z2.string().optional()
2364
2441
  }).optional()
2365
2442
  });
2366
- var zRelationshipsGetRelationshipData = z.looseObject({
2367
- body: z.never().optional(),
2368
- path: z.looseObject({
2369
- id: z.string()
2443
+ var zRelationshipsGetRelationshipData = z2.looseObject({
2444
+ body: z2.never().optional(),
2445
+ path: z2.looseObject({
2446
+ id: z2.string()
2370
2447
  }),
2371
- query: z.never().optional()
2448
+ query: z2.never().optional()
2372
2449
  });
2373
- var zRelationshipsDeleteData = z.looseObject({
2374
- body: z.never().optional(),
2375
- path: z.never().optional(),
2376
- query: z.looseObject({
2377
- id: z.string()
2450
+ var zRelationshipsDeleteData = z2.looseObject({
2451
+ body: z2.never().optional(),
2452
+ path: z2.never().optional(),
2453
+ query: z2.looseObject({
2454
+ id: z2.string()
2378
2455
  })
2379
2456
  });
2380
- var zRelationshipsGetRelationshipsData = z.looseObject({
2381
- body: z.never().optional(),
2382
- path: z.never().optional(),
2383
- query: z.looseObject({
2384
- contact_id: z.string().optional(),
2385
- matter_id: z.string().optional(),
2386
- account_id: z.string().optional(),
2387
- created_since: z.string().optional(),
2388
- updated_since: z.string().optional()
2457
+ var zRelationshipsGetRelationshipsData = z2.looseObject({
2458
+ body: z2.never().optional(),
2459
+ path: z2.never().optional(),
2460
+ query: z2.looseObject({
2461
+ contact_id: z2.string().optional(),
2462
+ matter_id: z2.string().optional(),
2463
+ account_id: z2.string().optional(),
2464
+ created_since: z2.string().optional(),
2465
+ updated_since: z2.string().optional()
2389
2466
  }).optional()
2390
2467
  });
2391
- var zRelationshipsPostAccountData = z.looseObject({
2468
+ var zRelationshipsPostAccountData = z2.looseObject({
2392
2469
  body: zRelationship2,
2393
- path: z.never().optional(),
2394
- query: z.never().optional()
2470
+ path: z2.never().optional(),
2471
+ query: z2.never().optional()
2395
2472
  });
2396
- var zRelationshipsPutRelationshipData = z.looseObject({
2473
+ var zRelationshipsPutRelationshipData = z2.looseObject({
2397
2474
  body: zRelationship2,
2398
- path: z.never().optional(),
2399
- query: z.looseObject({
2400
- id: z.string()
2475
+ path: z2.never().optional(),
2476
+ query: z2.looseObject({
2477
+ id: z2.string()
2401
2478
  })
2402
2479
  });
2403
- var zTagsGetTagsForAccountsData = z.looseObject({
2404
- body: z.never().optional(),
2405
- path: z.never().optional(),
2406
- query: z.never().optional()
2407
- });
2408
- var zTagsGetTagsForAccountsResponse = z.array(zTag);
2409
- var zTagsGetTagsForProjectsData = z.looseObject({
2410
- body: z.never().optional(),
2411
- path: z.never().optional(),
2412
- query: z.never().optional()
2413
- });
2414
- var zTagsGetTagsForProjectsResponse = z.array(zTag);
2415
- var zTagsGetTagsForActivitiesData = z.looseObject({
2416
- body: z.never().optional(),
2417
- path: z.never().optional(),
2418
- query: z.never().optional()
2419
- });
2420
- var zTagsGetTagsForActivitiesResponse = z.array(zTag);
2421
- var zTasksGetTaskData = z.looseObject({
2422
- body: z.never().optional(),
2423
- path: z.looseObject({
2424
- id: z.string()
2480
+ var zTagsGetTagsForAccountsData = z2.looseObject({
2481
+ body: z2.never().optional(),
2482
+ path: z2.never().optional(),
2483
+ query: z2.never().optional()
2484
+ });
2485
+ var zTagsGetTagsForAccountsResponse = z2.array(zTag);
2486
+ var zTagsGetTagsForProjectsData = z2.looseObject({
2487
+ body: z2.never().optional(),
2488
+ path: z2.never().optional(),
2489
+ query: z2.never().optional()
2490
+ });
2491
+ var zTagsGetTagsForProjectsResponse = z2.array(zTag);
2492
+ var zTagsGetTagsForActivitiesData = z2.looseObject({
2493
+ body: z2.never().optional(),
2494
+ path: z2.never().optional(),
2495
+ query: z2.never().optional()
2496
+ });
2497
+ var zTagsGetTagsForActivitiesResponse = z2.array(zTag);
2498
+ var zTasksGetTaskData = z2.looseObject({
2499
+ body: z2.never().optional(),
2500
+ path: z2.looseObject({
2501
+ id: z2.string()
2425
2502
  }),
2426
- query: z.never().optional()
2503
+ query: z2.never().optional()
2427
2504
  });
2428
- var zTasksDeleteData = z.looseObject({
2429
- body: z.never().optional(),
2430
- path: z.never().optional(),
2431
- query: z.looseObject({
2432
- id: z.string()
2505
+ var zTasksDeleteData = z2.looseObject({
2506
+ body: z2.never().optional(),
2507
+ path: z2.never().optional(),
2508
+ query: z2.looseObject({
2509
+ id: z2.string()
2433
2510
  })
2434
2511
  });
2435
- var zTasksGetTasksData = z.looseObject({
2436
- body: z.never().optional(),
2437
- path: z.never().optional(),
2438
- query: z.looseObject({
2439
- assigned_to_user_id: z.string().optional(),
2440
- account_id: z.string().optional(),
2441
- matter_id: z.string().optional(),
2442
- created_since: z.string().optional(),
2443
- updated_since: z.string().optional(),
2444
- status: z.union([z.enum([
2512
+ var zTasksGetTasksData = z2.looseObject({
2513
+ body: z2.never().optional(),
2514
+ path: z2.never().optional(),
2515
+ query: z2.looseObject({
2516
+ assigned_to_user_id: z2.string().optional(),
2517
+ account_id: z2.string().optional(),
2518
+ matter_id: z2.string().optional(),
2519
+ created_since: z2.string().optional(),
2520
+ updated_since: z2.string().optional(),
2521
+ status: z2.union([z2.enum([
2445
2522
  "NotCompleted",
2446
2523
  "InProgress",
2447
2524
  "Completed",
2448
2525
  "Conditional"
2449
- ]), z.string()]).optional(),
2450
- due_date_from: z.string().optional(),
2451
- due_date_to: z.string().optional(),
2452
- activity_tag: z.string().optional()
2526
+ ]), z2.string()]).optional(),
2527
+ due_date_from: z2.string().optional(),
2528
+ due_date_to: z2.string().optional(),
2529
+ activity_tag: z2.string().optional()
2453
2530
  }).optional()
2454
2531
  });
2455
- var zTasksPostAccountData = z.looseObject({
2532
+ var zTasksPostAccountData = z2.looseObject({
2456
2533
  body: zTask2,
2457
- path: z.never().optional(),
2458
- query: z.never().optional()
2534
+ path: z2.never().optional(),
2535
+ query: z2.never().optional()
2459
2536
  });
2460
- var zTasksPutAccountData = z.looseObject({
2537
+ var zTasksPutAccountData = z2.looseObject({
2461
2538
  body: zTask2,
2462
- path: z.never().optional(),
2463
- query: z.looseObject({
2464
- id: z.string()
2539
+ path: z2.never().optional(),
2540
+ query: z2.looseObject({
2541
+ id: z2.string()
2465
2542
  })
2466
2543
  });
2467
- var zTimeEntriesGetTimeEntryData = z.looseObject({
2468
- body: z.never().optional(),
2469
- path: z.looseObject({
2470
- id: z.string()
2544
+ var zTimeEntriesGetTimeEntryData = z2.looseObject({
2545
+ body: z2.never().optional(),
2546
+ path: z2.looseObject({
2547
+ id: z2.string()
2471
2548
  }),
2472
- query: z.never().optional()
2549
+ query: z2.never().optional()
2473
2550
  });
2474
- var zTimeEntriesDeleteData = z.looseObject({
2475
- body: z.never().optional(),
2476
- path: z.never().optional(),
2477
- query: z.looseObject({
2478
- id: z.string()
2551
+ var zTimeEntriesDeleteData = z2.looseObject({
2552
+ body: z2.never().optional(),
2553
+ path: z2.never().optional(),
2554
+ query: z2.looseObject({
2555
+ id: z2.string()
2479
2556
  })
2480
2557
  });
2481
- var zTimeEntriesGetTimeEntrysData = z.looseObject({
2482
- body: z.never().optional(),
2483
- path: z.never().optional(),
2484
- query: z.looseObject({
2485
- account_id: z.string().optional(),
2486
- matter_id: z.string().optional(),
2487
- user_id: z.string().optional(),
2488
- item_id: z.string().optional(),
2489
- created_since: z.string().optional(),
2490
- updated_since: z.string().optional(),
2491
- date_from: z.string().optional(),
2492
- date_to: z.string().optional()
2558
+ var zTimeEntriesGetTimeEntrysData = z2.looseObject({
2559
+ body: z2.never().optional(),
2560
+ path: z2.never().optional(),
2561
+ query: z2.looseObject({
2562
+ account_id: z2.string().optional(),
2563
+ matter_id: z2.string().optional(),
2564
+ user_id: z2.string().optional(),
2565
+ item_id: z2.string().optional(),
2566
+ created_since: z2.string().optional(),
2567
+ updated_since: z2.string().optional(),
2568
+ date_from: z2.string().optional(),
2569
+ date_to: z2.string().optional()
2493
2570
  }).optional()
2494
2571
  });
2495
- var zTimeEntriesPostAccountData = z.looseObject({
2572
+ var zTimeEntriesPostAccountData = z2.looseObject({
2496
2573
  body: zTimeEntry2,
2497
- path: z.never().optional(),
2498
- query: z.never().optional()
2574
+ path: z2.never().optional(),
2575
+ query: z2.never().optional()
2499
2576
  });
2500
- var zTimeEntriesPutAccountData = z.looseObject({
2577
+ var zTimeEntriesPutAccountData = z2.looseObject({
2501
2578
  body: zTimeEntry2,
2502
- path: z.never().optional(),
2503
- query: z.looseObject({
2504
- id: z.string()
2579
+ path: z2.never().optional(),
2580
+ query: z2.looseObject({
2581
+ id: z2.string()
2505
2582
  })
2506
2583
  });
2507
- var zUsersMeData = z.looseObject({
2508
- body: z.never().optional(),
2509
- path: z.never().optional(),
2510
- query: z.never().optional()
2584
+ var zUsersMeData = z2.looseObject({
2585
+ body: z2.never().optional(),
2586
+ path: z2.never().optional(),
2587
+ query: z2.never().optional()
2511
2588
  });
2512
- var zUsersGetUserData = z.looseObject({
2513
- body: z.never().optional(),
2514
- path: z.looseObject({
2515
- id: z.string()
2589
+ var zUsersGetUserData = z2.looseObject({
2590
+ body: z2.never().optional(),
2591
+ path: z2.looseObject({
2592
+ id: z2.string()
2516
2593
  }),
2517
- query: z.never().optional()
2594
+ query: z2.never().optional()
2518
2595
  });
2519
- var zUsersDeleteData = z.looseObject({
2520
- body: z.never().optional(),
2521
- path: z.never().optional(),
2522
- query: z.looseObject({
2523
- id: z.string()
2596
+ var zUsersDeleteData = z2.looseObject({
2597
+ body: z2.never().optional(),
2598
+ path: z2.never().optional(),
2599
+ query: z2.looseObject({
2600
+ id: z2.string()
2524
2601
  })
2525
2602
  });
2526
- var zUsersGetUsersData = z.looseObject({
2527
- body: z.never().optional(),
2528
- path: z.never().optional(),
2529
- query: z.looseObject({
2530
- created_since: z.string().optional(),
2531
- updated_since: z.string().optional(),
2532
- email_address: z.string().optional()
2603
+ var zUsersGetUsersData = z2.looseObject({
2604
+ body: z2.never().optional(),
2605
+ path: z2.never().optional(),
2606
+ query: z2.looseObject({
2607
+ created_since: z2.string().optional(),
2608
+ updated_since: z2.string().optional(),
2609
+ email_address: z2.string().optional()
2533
2610
  }).optional()
2534
2611
  });
2535
2612
 
2536
- // src/helpers.ts
2537
- import { z as z2 } from "zod";
2538
- function listOf(schema) {
2539
- return z2.looseObject({ items: z2.array(schema) });
2540
- }
2541
- function cleanQuery(q) {
2542
- return Object.fromEntries(
2543
- Object.entries(q).filter(([, v]) => v !== void 0)
2544
- );
2545
- }
2546
- function err(e) {
2547
- const msg = e instanceof Error ? e.message : String(e);
2548
- return {
2549
- content: [{ type: "text", text: `Error: ${msg}` }],
2550
- isError: true
2551
- };
2552
- }
2553
-
2554
- // src/tool-handler.ts
2555
- function createToolHandler(tool) {
2556
- return async (params) => {
2557
- try {
2558
- const options = {};
2559
- if (tool.pathParams) {
2560
- const path = {};
2561
- for (const paramName of Object.keys(tool.pathParams)) {
2562
- path[paramName] = params[paramName];
2563
- }
2564
- options.path = path;
2565
- }
2566
- if (tool.queryParams) {
2567
- const query = {};
2568
- for (const paramName of Object.keys(tool.queryParams)) {
2569
- if (params[paramName] !== void 0) {
2570
- query[paramName] = params[paramName];
2571
- }
2572
- }
2573
- if (Object.keys(query).length > 0) {
2574
- options.query = cleanQuery(query);
2575
- }
2576
- }
2577
- const res = await tool.sdkFn(
2578
- Object.keys(options).length > 0 ? options : void 0
2579
- );
2580
- if (tool.rawContent) {
2581
- return {
2582
- content: [
2583
- {
2584
- type: "text",
2585
- text: JSON.stringify(res.data, null, 2)
2586
- }
2587
- ]
2588
- };
2589
- }
2590
- const structured = tool.isList ? { items: res.data } : res.data;
2591
- return {
2592
- content: [
2593
- {
2594
- type: "text",
2595
- text: JSON.stringify(structured, null, 2)
2596
- }
2597
- ],
2598
- structuredContent: tool.schema ? structured : void 0
2599
- };
2600
- } catch (e) {
2601
- return err(e);
2602
- }
2603
- };
2604
- }
2605
-
2606
2613
  // src/create-server.ts
2607
2614
  function createServer() {
2608
2615
  const server = new McpServer(
@@ -3153,8 +3160,9 @@ function createServer() {
3153
3160
  for (const tool of tools) {
3154
3161
  const inputSchema = {};
3155
3162
  if (tool.pathParams) {
3156
- for (const [paramName, description] of Object.entries(tool.pathParams)) {
3157
- inputSchema[paramName] = z3.string().describe(description);
3163
+ for (const [paramName, spec] of Object.entries(tool.pathParams)) {
3164
+ const desc = typeof spec === "string" ? spec : spec.description;
3165
+ inputSchema[paramName] = z3.string().describe(desc);
3158
3166
  }
3159
3167
  }
3160
3168
  if (tool.queryParams) {