@crmy/shared 0.6.0 → 0.6.1

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/schemas.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare const limit: z.ZodDefault<z.ZodNumber>;
5
5
  export declare const lifecycleStage: z.ZodEnum<["lead", "prospect", "customer", "churned"]>;
6
6
  export declare const oppStage: z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>;
7
7
  export declare const forecastCat: z.ZodEnum<["pipeline", "best_case", "commit", "closed"]>;
8
- export declare const activityType: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
8
+ export declare const activityType: z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>;
9
9
  export declare const direction: z.ZodEnum<["inbound", "outbound"]>;
10
10
  export declare const userRole: z.ZodEnum<["owner", "admin", "member"]>;
11
11
  export declare const subjectType: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
@@ -38,8 +38,8 @@ export declare const contactCreate: z.ZodObject<{
38
38
  }, {
39
39
  first_name: string;
40
40
  email?: string | undefined;
41
- phone?: string | undefined;
42
41
  last_name?: string | undefined;
42
+ phone?: string | undefined;
43
43
  title?: string | undefined;
44
44
  company_name?: string | undefined;
45
45
  account_id?: string | undefined;
@@ -67,9 +67,9 @@ export declare const contactUpdate: z.ZodObject<{
67
67
  custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
68
68
  }, "strip", z.ZodTypeAny, {
69
69
  email?: string | undefined;
70
- phone?: string | undefined;
71
70
  first_name?: string | undefined;
72
71
  last_name?: string | undefined;
72
+ phone?: string | undefined;
73
73
  title?: string | undefined;
74
74
  company_name?: string | undefined;
75
75
  account_id?: string | null | undefined;
@@ -81,9 +81,9 @@ export declare const contactUpdate: z.ZodObject<{
81
81
  owner_id?: string | null | undefined;
82
82
  }, {
83
83
  email?: string | undefined;
84
- phone?: string | undefined;
85
84
  first_name?: string | undefined;
86
85
  last_name?: string | undefined;
86
+ phone?: string | undefined;
87
87
  title?: string | undefined;
88
88
  company_name?: string | undefined;
89
89
  account_id?: string | null | undefined;
@@ -98,9 +98,9 @@ export declare const contactUpdate: z.ZodObject<{
98
98
  id: string;
99
99
  patch: {
100
100
  email?: string | undefined;
101
- phone?: string | undefined;
102
101
  first_name?: string | undefined;
103
102
  last_name?: string | undefined;
103
+ phone?: string | undefined;
104
104
  title?: string | undefined;
105
105
  company_name?: string | undefined;
106
106
  account_id?: string | null | undefined;
@@ -115,9 +115,9 @@ export declare const contactUpdate: z.ZodObject<{
115
115
  id: string;
116
116
  patch: {
117
117
  email?: string | undefined;
118
- phone?: string | undefined;
119
118
  first_name?: string | undefined;
120
119
  last_name?: string | undefined;
120
+ phone?: string | undefined;
121
121
  title?: string | undefined;
122
122
  company_name?: string | undefined;
123
123
  account_id?: string | null | undefined;
@@ -170,15 +170,15 @@ export declare const contactSetLifecycle: z.ZodObject<{
170
170
  export declare const contactGetTimeline: z.ZodObject<{
171
171
  id: z.ZodString;
172
172
  limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
173
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
173
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>, "many">>;
174
174
  }, "strip", z.ZodTypeAny, {
175
175
  id: string;
176
176
  limit: number;
177
- types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
177
+ types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
178
178
  }, {
179
179
  id: string;
180
180
  limit?: number | undefined;
181
- types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
181
+ types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
182
182
  }>;
183
183
  export declare const accountCreate: z.ZodObject<{
184
184
  name: z.ZodString;
@@ -489,7 +489,7 @@ export declare const pipelineSummary: z.ZodObject<{
489
489
  group_by?: "owner" | "stage" | "forecast_cat" | undefined;
490
490
  }>;
491
491
  export declare const activityCreate: z.ZodObject<{
492
- type: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
492
+ type: z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>;
493
493
  subject: z.ZodString;
494
494
  body: z.ZodOptional<z.ZodString>;
495
495
  contact_id: z.ZodOptional<z.ZodString>;
@@ -507,7 +507,7 @@ export declare const activityCreate: z.ZodObject<{
507
507
  occurred_at: z.ZodOptional<z.ZodString>;
508
508
  outcome: z.ZodOptional<z.ZodString>;
509
509
  }, "strip", z.ZodTypeAny, {
510
- type: "call" | "email" | "meeting" | "note" | "task";
510
+ type: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update";
511
511
  custom_fields: Record<string, unknown>;
512
512
  subject: string;
513
513
  account_id?: string | undefined;
@@ -525,7 +525,7 @@ export declare const activityCreate: z.ZodObject<{
525
525
  occurred_at?: string | undefined;
526
526
  outcome?: string | undefined;
527
527
  }, {
528
- type: "call" | "email" | "meeting" | "note" | "task";
528
+ type: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update";
529
529
  subject: string;
530
530
  account_id?: string | undefined;
531
531
  custom_fields?: Record<string, unknown> | undefined;
@@ -587,7 +587,7 @@ export declare const activitySearch: z.ZodObject<{
587
587
  contact_id: z.ZodOptional<z.ZodString>;
588
588
  account_id: z.ZodOptional<z.ZodString>;
589
589
  opportunity_id: z.ZodOptional<z.ZodString>;
590
- type: z.ZodOptional<z.ZodEnum<["call", "email", "meeting", "note", "task"]>>;
590
+ type: z.ZodOptional<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>>;
591
591
  subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
592
592
  subject_id: z.ZodOptional<z.ZodString>;
593
593
  performed_by: z.ZodOptional<z.ZodString>;
@@ -597,7 +597,7 @@ export declare const activitySearch: z.ZodObject<{
597
597
  }, "strip", z.ZodTypeAny, {
598
598
  limit: number;
599
599
  account_id?: string | undefined;
600
- type?: "call" | "email" | "meeting" | "note" | "task" | undefined;
600
+ type?: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update" | undefined;
601
601
  cursor?: string | undefined;
602
602
  contact_id?: string | undefined;
603
603
  opportunity_id?: string | undefined;
@@ -607,7 +607,7 @@ export declare const activitySearch: z.ZodObject<{
607
607
  outcome?: string | undefined;
608
608
  }, {
609
609
  account_id?: string | undefined;
610
- type?: "call" | "email" | "meeting" | "note" | "task" | undefined;
610
+ type?: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update" | undefined;
611
611
  limit?: number | undefined;
612
612
  cursor?: string | undefined;
613
613
  contact_id?: string | undefined;
@@ -630,30 +630,78 @@ export declare const activityComplete: z.ZodObject<{
630
630
  note?: string | undefined;
631
631
  completed_at?: string | undefined;
632
632
  }>;
633
- export declare const contactLogActivity: z.ZodObject<{
633
+ export declare const dealAdvance: z.ZodObject<{
634
+ opportunity_id: z.ZodString;
635
+ stage: z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>;
636
+ note: z.ZodOptional<z.ZodString>;
637
+ context: z.ZodOptional<z.ZodObject<{
638
+ title: z.ZodString;
639
+ body: z.ZodString;
640
+ context_type: z.ZodDefault<z.ZodString>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ title: string;
643
+ body: string;
644
+ context_type: string;
645
+ }, {
646
+ title: string;
647
+ body: string;
648
+ context_type?: string | undefined;
649
+ }>>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ stage: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
652
+ opportunity_id: string;
653
+ note?: string | undefined;
654
+ context?: {
655
+ title: string;
656
+ body: string;
657
+ context_type: string;
658
+ } | undefined;
659
+ }, {
660
+ stage: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
661
+ opportunity_id: string;
662
+ note?: string | undefined;
663
+ context?: {
664
+ title: string;
665
+ body: string;
666
+ context_type?: string | undefined;
667
+ } | undefined;
668
+ }>;
669
+ export declare const contactOutreach: z.ZodObject<{
634
670
  contact_id: z.ZodString;
635
- type: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
671
+ channel: z.ZodEnum<["email", "call", "linkedin", "other"]>;
636
672
  subject: z.ZodString;
637
673
  body: z.ZodOptional<z.ZodString>;
638
- opportunity_id: z.ZodOptional<z.ZodString>;
639
- due_at: z.ZodOptional<z.ZodString>;
640
- direction: z.ZodOptional<z.ZodEnum<["inbound", "outbound"]>>;
674
+ outcome: z.ZodOptional<z.ZodString>;
675
+ context: z.ZodOptional<z.ZodObject<{
676
+ title: z.ZodString;
677
+ body: z.ZodString;
678
+ }, "strip", z.ZodTypeAny, {
679
+ title: string;
680
+ body: string;
681
+ }, {
682
+ title: string;
683
+ body: string;
684
+ }>>;
641
685
  }, "strip", z.ZodTypeAny, {
642
- type: "call" | "email" | "meeting" | "note" | "task";
643
686
  contact_id: string;
644
687
  subject: string;
688
+ channel: "call" | "email" | "linkedin" | "other";
645
689
  body?: string | undefined;
646
- opportunity_id?: string | undefined;
647
- due_at?: string | undefined;
648
- direction?: "inbound" | "outbound" | undefined;
690
+ outcome?: string | undefined;
691
+ context?: {
692
+ title: string;
693
+ body: string;
694
+ } | undefined;
649
695
  }, {
650
- type: "call" | "email" | "meeting" | "note" | "task";
651
696
  contact_id: string;
652
697
  subject: string;
698
+ channel: "call" | "email" | "linkedin" | "other";
653
699
  body?: string | undefined;
654
- opportunity_id?: string | undefined;
655
- due_at?: string | undefined;
656
- direction?: "inbound" | "outbound" | undefined;
700
+ outcome?: string | undefined;
701
+ context?: {
702
+ title: string;
703
+ body: string;
704
+ } | undefined;
657
705
  }>;
658
706
  export declare const crmSearch: z.ZodObject<{
659
707
  query: z.ZodString;
@@ -733,6 +781,16 @@ export declare const schemaGet: z.ZodObject<{
733
781
  object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
734
782
  }>;
735
783
  export declare const tenantGetStats: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
784
+ export declare const guideSearch: z.ZodObject<{
785
+ query: z.ZodString;
786
+ section: z.ZodOptional<z.ZodString>;
787
+ }, "strip", z.ZodTypeAny, {
788
+ query: string;
789
+ section?: string | undefined;
790
+ }, {
791
+ query: string;
792
+ section?: string | undefined;
793
+ }>;
736
794
  export declare const authRegister: z.ZodObject<{
737
795
  name: z.ZodString;
738
796
  email: z.ZodString;
@@ -1037,15 +1095,15 @@ export declare const useCaseListContacts: z.ZodObject<{
1037
1095
  export declare const useCaseGetTimeline: z.ZodObject<{
1038
1096
  id: z.ZodString;
1039
1097
  limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
1040
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
1098
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>, "many">>;
1041
1099
  }, "strip", z.ZodTypeAny, {
1042
1100
  id: string;
1043
1101
  limit: number;
1044
- types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
1102
+ types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
1045
1103
  }, {
1046
1104
  id: string;
1047
1105
  limit?: number | undefined;
1048
- types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
1106
+ types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
1049
1107
  }>;
1050
1108
  export declare const useCaseSummary: z.ZodObject<{
1051
1109
  account_id: z.ZodOptional<z.ZodString>;
@@ -1078,31 +1136,31 @@ export declare const webhookUpdate: z.ZodObject<{
1078
1136
  active: z.ZodOptional<z.ZodBoolean>;
1079
1137
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1080
1138
  }, "strip", z.ZodTypeAny, {
1081
- active?: boolean | undefined;
1082
1139
  description?: string | null | undefined;
1083
1140
  url?: string | undefined;
1084
1141
  events?: string[] | undefined;
1085
- }, {
1086
1142
  active?: boolean | undefined;
1143
+ }, {
1087
1144
  description?: string | null | undefined;
1088
1145
  url?: string | undefined;
1089
1146
  events?: string[] | undefined;
1147
+ active?: boolean | undefined;
1090
1148
  }>;
1091
1149
  }, "strip", z.ZodTypeAny, {
1092
1150
  id: string;
1093
1151
  patch: {
1094
- active?: boolean | undefined;
1095
1152
  description?: string | null | undefined;
1096
1153
  url?: string | undefined;
1097
1154
  events?: string[] | undefined;
1155
+ active?: boolean | undefined;
1098
1156
  };
1099
1157
  }, {
1100
1158
  id: string;
1101
1159
  patch: {
1102
- active?: boolean | undefined;
1103
1160
  description?: string | null | undefined;
1104
1161
  url?: string | undefined;
1105
1162
  events?: string[] | undefined;
1163
+ active?: boolean | undefined;
1106
1164
  };
1107
1165
  }>;
1108
1166
  export declare const webhookDelete: z.ZodObject<{
@@ -1125,12 +1183,12 @@ export declare const webhookList: z.ZodObject<{
1125
1183
  cursor: z.ZodOptional<z.ZodString>;
1126
1184
  }, "strip", z.ZodTypeAny, {
1127
1185
  limit: number;
1128
- active?: boolean | undefined;
1129
1186
  cursor?: string | undefined;
1130
- }, {
1131
1187
  active?: boolean | undefined;
1188
+ }, {
1132
1189
  limit?: number | undefined;
1133
1190
  cursor?: string | undefined;
1191
+ active?: boolean | undefined;
1134
1192
  }>;
1135
1193
  export declare const webhookListDeliveries: z.ZodObject<{
1136
1194
  endpoint_id: z.ZodOptional<z.ZodString>;
@@ -1202,6 +1260,23 @@ export declare const emailSearch: z.ZodObject<{
1202
1260
  cursor?: string | undefined;
1203
1261
  contact_id?: string | undefined;
1204
1262
  }>;
1263
+ export declare const emailProviderSet: z.ZodObject<{
1264
+ provider: z.ZodString;
1265
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1266
+ from_name: z.ZodString;
1267
+ from_email: z.ZodString;
1268
+ }, "strip", z.ZodTypeAny, {
1269
+ provider: string;
1270
+ config: Record<string, unknown>;
1271
+ from_name: string;
1272
+ from_email: string;
1273
+ }, {
1274
+ provider: string;
1275
+ config: Record<string, unknown>;
1276
+ from_name: string;
1277
+ from_email: string;
1278
+ }>;
1279
+ export declare const emailProviderGet: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1205
1280
  export declare const emailSequenceCreate: z.ZodObject<{
1206
1281
  name: z.ZodString;
1207
1282
  description: z.ZodOptional<z.ZodString>;
@@ -1240,6 +1315,103 @@ export declare const emailSequenceCreate: z.ZodObject<{
1240
1315
  }[];
1241
1316
  description?: string | undefined;
1242
1317
  }>;
1318
+ export declare const emailSequenceGet: z.ZodObject<{
1319
+ id: z.ZodString;
1320
+ }, "strip", z.ZodTypeAny, {
1321
+ id: string;
1322
+ }, {
1323
+ id: string;
1324
+ }>;
1325
+ export declare const emailSequenceDelete: z.ZodObject<{
1326
+ id: z.ZodString;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ id: string;
1329
+ }, {
1330
+ id: string;
1331
+ }>;
1332
+ export declare const emailSequenceUpdate: z.ZodObject<{
1333
+ id: z.ZodString;
1334
+ patch: z.ZodObject<{
1335
+ name: z.ZodOptional<z.ZodString>;
1336
+ description: z.ZodOptional<z.ZodString>;
1337
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
1338
+ delay_days: z.ZodNumber;
1339
+ subject: z.ZodString;
1340
+ body_html: z.ZodOptional<z.ZodString>;
1341
+ body_text: z.ZodOptional<z.ZodString>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ subject: string;
1344
+ delay_days: number;
1345
+ body_html?: string | undefined;
1346
+ body_text?: string | undefined;
1347
+ }, {
1348
+ subject: string;
1349
+ delay_days: number;
1350
+ body_html?: string | undefined;
1351
+ body_text?: string | undefined;
1352
+ }>, "many">>;
1353
+ is_active: z.ZodOptional<z.ZodBoolean>;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ name?: string | undefined;
1356
+ description?: string | undefined;
1357
+ steps?: {
1358
+ subject: string;
1359
+ delay_days: number;
1360
+ body_html?: string | undefined;
1361
+ body_text?: string | undefined;
1362
+ }[] | undefined;
1363
+ is_active?: boolean | undefined;
1364
+ }, {
1365
+ name?: string | undefined;
1366
+ description?: string | undefined;
1367
+ steps?: {
1368
+ subject: string;
1369
+ delay_days: number;
1370
+ body_html?: string | undefined;
1371
+ body_text?: string | undefined;
1372
+ }[] | undefined;
1373
+ is_active?: boolean | undefined;
1374
+ }>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ id: string;
1377
+ patch: {
1378
+ name?: string | undefined;
1379
+ description?: string | undefined;
1380
+ steps?: {
1381
+ subject: string;
1382
+ delay_days: number;
1383
+ body_html?: string | undefined;
1384
+ body_text?: string | undefined;
1385
+ }[] | undefined;
1386
+ is_active?: boolean | undefined;
1387
+ };
1388
+ }, {
1389
+ id: string;
1390
+ patch: {
1391
+ name?: string | undefined;
1392
+ description?: string | undefined;
1393
+ steps?: {
1394
+ subject: string;
1395
+ delay_days: number;
1396
+ body_html?: string | undefined;
1397
+ body_text?: string | undefined;
1398
+ }[] | undefined;
1399
+ is_active?: boolean | undefined;
1400
+ };
1401
+ }>;
1402
+ export declare const emailSequenceList: z.ZodObject<{
1403
+ is_active: z.ZodOptional<z.ZodBoolean>;
1404
+ limit: z.ZodDefault<z.ZodNumber>;
1405
+ cursor: z.ZodOptional<z.ZodString>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ limit: number;
1408
+ cursor?: string | undefined;
1409
+ is_active?: boolean | undefined;
1410
+ }, {
1411
+ limit?: number | undefined;
1412
+ cursor?: string | undefined;
1413
+ is_active?: boolean | undefined;
1414
+ }>;
1243
1415
  export declare const emailSequenceEnroll: z.ZodObject<{
1244
1416
  sequence_id: z.ZodString;
1245
1417
  contact_id: z.ZodString;
@@ -1250,6 +1422,32 @@ export declare const emailSequenceEnroll: z.ZodObject<{
1250
1422
  contact_id: string;
1251
1423
  sequence_id: string;
1252
1424
  }>;
1425
+ export declare const emailSequenceUnenroll: z.ZodObject<{
1426
+ id: z.ZodString;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ id: string;
1429
+ }, {
1430
+ id: string;
1431
+ }>;
1432
+ export declare const emailSequenceEnrollmentList: z.ZodObject<{
1433
+ sequence_id: z.ZodOptional<z.ZodString>;
1434
+ contact_id: z.ZodOptional<z.ZodString>;
1435
+ status: z.ZodOptional<z.ZodEnum<["active", "completed", "paused", "cancelled"]>>;
1436
+ limit: z.ZodDefault<z.ZodNumber>;
1437
+ cursor: z.ZodOptional<z.ZodString>;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ limit: number;
1440
+ status?: "active" | "completed" | "paused" | "cancelled" | undefined;
1441
+ cursor?: string | undefined;
1442
+ contact_id?: string | undefined;
1443
+ sequence_id?: string | undefined;
1444
+ }, {
1445
+ status?: "active" | "completed" | "paused" | "cancelled" | undefined;
1446
+ limit?: number | undefined;
1447
+ cursor?: string | undefined;
1448
+ contact_id?: string | undefined;
1449
+ sequence_id?: string | undefined;
1450
+ }>;
1253
1451
  export declare const customFieldCreate: z.ZodObject<{
1254
1452
  object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1255
1453
  field_name: z.ZodString;
@@ -1263,7 +1461,7 @@ export declare const customFieldCreate: z.ZodObject<{
1263
1461
  object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1264
1462
  label: string;
1265
1463
  field_name: string;
1266
- field_type: "number" | "boolean" | "text" | "date" | "select" | "multi_select";
1464
+ field_type: "number" | "boolean" | "date" | "text" | "select" | "multi_select";
1267
1465
  required: boolean;
1268
1466
  options?: string[] | undefined;
1269
1467
  description?: string | undefined;
@@ -1272,7 +1470,7 @@ export declare const customFieldCreate: z.ZodObject<{
1272
1470
  object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1273
1471
  label: string;
1274
1472
  field_name: string;
1275
- field_type: "number" | "boolean" | "text" | "date" | "select" | "multi_select";
1473
+ field_type: "number" | "boolean" | "date" | "text" | "select" | "multi_select";
1276
1474
  options?: string[] | undefined;
1277
1475
  description?: string | undefined;
1278
1476
  required?: boolean | undefined;
@@ -1377,133 +1575,42 @@ export declare const bulkJobList: z.ZodObject<{
1377
1575
  limit?: number | undefined;
1378
1576
  cursor?: string | undefined;
1379
1577
  }>;
1380
- export declare const noteCreate: z.ZodObject<{
1381
- object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1382
- object_id: z.ZodString;
1383
- parent_id: z.ZodOptional<z.ZodString>;
1384
- body: z.ZodString;
1385
- visibility: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
1386
- mentions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1387
- pinned: z.ZodDefault<z.ZodBoolean>;
1388
- }, "strip", z.ZodTypeAny, {
1389
- body: string;
1390
- object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1391
- object_id: string;
1392
- visibility: "internal" | "external";
1393
- mentions: string[];
1394
- pinned: boolean;
1395
- parent_id?: string | undefined;
1396
- }, {
1397
- body: string;
1398
- object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1399
- object_id: string;
1400
- parent_id?: string | undefined;
1401
- visibility?: "internal" | "external" | undefined;
1402
- mentions?: string[] | undefined;
1403
- pinned?: boolean | undefined;
1404
- }>;
1405
- export declare const noteUpdate: z.ZodObject<{
1406
- id: z.ZodString;
1407
- patch: z.ZodObject<{
1408
- body: z.ZodOptional<z.ZodString>;
1409
- visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
1410
- pinned: z.ZodOptional<z.ZodBoolean>;
1411
- }, "strip", z.ZodTypeAny, {
1412
- body?: string | undefined;
1413
- visibility?: "internal" | "external" | undefined;
1414
- pinned?: boolean | undefined;
1415
- }, {
1416
- body?: string | undefined;
1417
- visibility?: "internal" | "external" | undefined;
1418
- pinned?: boolean | undefined;
1419
- }>;
1420
- }, "strip", z.ZodTypeAny, {
1421
- id: string;
1422
- patch: {
1423
- body?: string | undefined;
1424
- visibility?: "internal" | "external" | undefined;
1425
- pinned?: boolean | undefined;
1426
- };
1427
- }, {
1428
- id: string;
1429
- patch: {
1430
- body?: string | undefined;
1431
- visibility?: "internal" | "external" | undefined;
1432
- pinned?: boolean | undefined;
1433
- };
1434
- }>;
1435
- export declare const noteGet: z.ZodObject<{
1436
- id: z.ZodString;
1437
- }, "strip", z.ZodTypeAny, {
1438
- id: string;
1439
- }, {
1440
- id: string;
1441
- }>;
1442
- export declare const noteDelete: z.ZodObject<{
1443
- id: z.ZodString;
1444
- }, "strip", z.ZodTypeAny, {
1445
- id: string;
1446
- }, {
1447
- id: string;
1448
- }>;
1449
- export declare const noteList: z.ZodObject<{
1450
- object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1451
- object_id: z.ZodString;
1452
- visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
1453
- pinned: z.ZodOptional<z.ZodBoolean>;
1454
- limit: z.ZodDefault<z.ZodNumber>;
1455
- cursor: z.ZodOptional<z.ZodString>;
1456
- }, "strip", z.ZodTypeAny, {
1457
- limit: number;
1458
- object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1459
- object_id: string;
1460
- cursor?: string | undefined;
1461
- visibility?: "internal" | "external" | undefined;
1462
- pinned?: boolean | undefined;
1463
- }, {
1464
- object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1465
- object_id: string;
1466
- limit?: number | undefined;
1467
- cursor?: string | undefined;
1468
- visibility?: "internal" | "external" | undefined;
1469
- pinned?: boolean | undefined;
1470
- }>;
1471
1578
  export declare const workflowCreate: z.ZodObject<{
1472
1579
  name: z.ZodString;
1473
1580
  description: z.ZodOptional<z.ZodString>;
1474
1581
  trigger_event: z.ZodString;
1475
1582
  trigger_filter: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1476
1583
  actions: z.ZodArray<z.ZodObject<{
1477
- type: z.ZodEnum<["send_notification", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_note", "webhook"]>;
1584
+ type: z.ZodEnum<["send_notification", "send_email", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_context_entry", "webhook", "create_note"]>;
1478
1585
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1479
1586
  }, "strip", z.ZodTypeAny, {
1480
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1587
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1481
1588
  config: Record<string, unknown>;
1482
1589
  }, {
1483
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1590
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1484
1591
  config: Record<string, unknown>;
1485
1592
  }>, "many">;
1486
1593
  is_active: z.ZodDefault<z.ZodBoolean>;
1487
1594
  }, "strip", z.ZodTypeAny, {
1488
1595
  name: string;
1596
+ is_active: boolean;
1489
1597
  trigger_event: string;
1490
1598
  trigger_filter: Record<string, unknown>;
1491
1599
  actions: {
1492
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1600
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1493
1601
  config: Record<string, unknown>;
1494
1602
  }[];
1495
- is_active: boolean;
1496
1603
  description?: string | undefined;
1497
1604
  }, {
1498
1605
  name: string;
1499
1606
  trigger_event: string;
1500
1607
  actions: {
1501
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1608
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1502
1609
  config: Record<string, unknown>;
1503
1610
  }[];
1504
1611
  description?: string | undefined;
1505
- trigger_filter?: Record<string, unknown> | undefined;
1506
1612
  is_active?: boolean | undefined;
1613
+ trigger_filter?: Record<string, unknown> | undefined;
1507
1614
  }>;
1508
1615
  export declare const workflowUpdate: z.ZodObject<{
1509
1616
  id: z.ZodString;
@@ -1513,62 +1620,62 @@ export declare const workflowUpdate: z.ZodObject<{
1513
1620
  trigger_event: z.ZodOptional<z.ZodString>;
1514
1621
  trigger_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1515
1622
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1516
- type: z.ZodEnum<["send_notification", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_note", "webhook"]>;
1623
+ type: z.ZodEnum<["send_notification", "send_email", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_context_entry", "webhook", "create_note"]>;
1517
1624
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1518
1625
  }, "strip", z.ZodTypeAny, {
1519
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1626
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1520
1627
  config: Record<string, unknown>;
1521
1628
  }, {
1522
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1629
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1523
1630
  config: Record<string, unknown>;
1524
1631
  }>, "many">>;
1525
1632
  is_active: z.ZodOptional<z.ZodBoolean>;
1526
1633
  }, "strip", z.ZodTypeAny, {
1527
1634
  name?: string | undefined;
1528
1635
  description?: string | null | undefined;
1636
+ is_active?: boolean | undefined;
1529
1637
  trigger_event?: string | undefined;
1530
1638
  trigger_filter?: Record<string, unknown> | undefined;
1531
1639
  actions?: {
1532
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1640
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1533
1641
  config: Record<string, unknown>;
1534
1642
  }[] | undefined;
1535
- is_active?: boolean | undefined;
1536
1643
  }, {
1537
1644
  name?: string | undefined;
1538
1645
  description?: string | null | undefined;
1646
+ is_active?: boolean | undefined;
1539
1647
  trigger_event?: string | undefined;
1540
1648
  trigger_filter?: Record<string, unknown> | undefined;
1541
1649
  actions?: {
1542
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1650
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1543
1651
  config: Record<string, unknown>;
1544
1652
  }[] | undefined;
1545
- is_active?: boolean | undefined;
1546
1653
  }>;
1547
1654
  }, "strip", z.ZodTypeAny, {
1548
1655
  id: string;
1549
1656
  patch: {
1550
1657
  name?: string | undefined;
1551
1658
  description?: string | null | undefined;
1659
+ is_active?: boolean | undefined;
1552
1660
  trigger_event?: string | undefined;
1553
1661
  trigger_filter?: Record<string, unknown> | undefined;
1554
1662
  actions?: {
1555
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1663
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1556
1664
  config: Record<string, unknown>;
1557
1665
  }[] | undefined;
1558
- is_active?: boolean | undefined;
1559
1666
  };
1560
1667
  }, {
1561
1668
  id: string;
1562
1669
  patch: {
1563
1670
  name?: string | undefined;
1564
1671
  description?: string | null | undefined;
1672
+ is_active?: boolean | undefined;
1565
1673
  trigger_event?: string | undefined;
1566
1674
  trigger_filter?: Record<string, unknown> | undefined;
1567
1675
  actions?: {
1568
- type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1676
+ type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
1569
1677
  config: Record<string, unknown>;
1570
1678
  }[] | undefined;
1571
- is_active?: boolean | undefined;
1572
1679
  };
1573
1680
  }>;
1574
1681
  export declare const workflowGet: z.ZodObject<{
@@ -1593,13 +1700,13 @@ export declare const workflowList: z.ZodObject<{
1593
1700
  }, "strip", z.ZodTypeAny, {
1594
1701
  limit: number;
1595
1702
  cursor?: string | undefined;
1596
- trigger_event?: string | undefined;
1597
1703
  is_active?: boolean | undefined;
1704
+ trigger_event?: string | undefined;
1598
1705
  }, {
1599
1706
  limit?: number | undefined;
1600
1707
  cursor?: string | undefined;
1601
- trigger_event?: string | undefined;
1602
1708
  is_active?: boolean | undefined;
1709
+ trigger_event?: string | undefined;
1603
1710
  }>;
1604
1711
  export declare const workflowRunList: z.ZodObject<{
1605
1712
  workflow_id: z.ZodString;
@@ -1617,6 +1724,132 @@ export declare const workflowRunList: z.ZodObject<{
1617
1724
  limit?: number | undefined;
1618
1725
  cursor?: string | undefined;
1619
1726
  }>;
1727
+ export declare const messagingChannelCreate: z.ZodObject<{
1728
+ name: z.ZodString;
1729
+ provider: z.ZodString;
1730
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1731
+ is_active: z.ZodDefault<z.ZodBoolean>;
1732
+ is_default: z.ZodDefault<z.ZodBoolean>;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ name: string;
1735
+ provider: string;
1736
+ config: Record<string, unknown>;
1737
+ is_active: boolean;
1738
+ is_default: boolean;
1739
+ }, {
1740
+ name: string;
1741
+ provider: string;
1742
+ config: Record<string, unknown>;
1743
+ is_active?: boolean | undefined;
1744
+ is_default?: boolean | undefined;
1745
+ }>;
1746
+ export declare const messagingChannelUpdate: z.ZodObject<{
1747
+ id: z.ZodString;
1748
+ patch: z.ZodObject<{
1749
+ name: z.ZodOptional<z.ZodString>;
1750
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1751
+ is_active: z.ZodOptional<z.ZodBoolean>;
1752
+ is_default: z.ZodOptional<z.ZodBoolean>;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ name?: string | undefined;
1755
+ config?: Record<string, unknown> | undefined;
1756
+ is_active?: boolean | undefined;
1757
+ is_default?: boolean | undefined;
1758
+ }, {
1759
+ name?: string | undefined;
1760
+ config?: Record<string, unknown> | undefined;
1761
+ is_active?: boolean | undefined;
1762
+ is_default?: boolean | undefined;
1763
+ }>;
1764
+ }, "strip", z.ZodTypeAny, {
1765
+ id: string;
1766
+ patch: {
1767
+ name?: string | undefined;
1768
+ config?: Record<string, unknown> | undefined;
1769
+ is_active?: boolean | undefined;
1770
+ is_default?: boolean | undefined;
1771
+ };
1772
+ }, {
1773
+ id: string;
1774
+ patch: {
1775
+ name?: string | undefined;
1776
+ config?: Record<string, unknown> | undefined;
1777
+ is_active?: boolean | undefined;
1778
+ is_default?: boolean | undefined;
1779
+ };
1780
+ }>;
1781
+ export declare const messagingChannelGet: z.ZodObject<{
1782
+ id: z.ZodString;
1783
+ }, "strip", z.ZodTypeAny, {
1784
+ id: string;
1785
+ }, {
1786
+ id: string;
1787
+ }>;
1788
+ export declare const messagingChannelDelete: z.ZodObject<{
1789
+ id: z.ZodString;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ id: string;
1792
+ }, {
1793
+ id: string;
1794
+ }>;
1795
+ export declare const messagingChannelList: z.ZodObject<{
1796
+ provider: z.ZodOptional<z.ZodString>;
1797
+ is_active: z.ZodOptional<z.ZodBoolean>;
1798
+ limit: z.ZodDefault<z.ZodNumber>;
1799
+ cursor: z.ZodOptional<z.ZodString>;
1800
+ }, "strip", z.ZodTypeAny, {
1801
+ limit: number;
1802
+ cursor?: string | undefined;
1803
+ provider?: string | undefined;
1804
+ is_active?: boolean | undefined;
1805
+ }, {
1806
+ limit?: number | undefined;
1807
+ cursor?: string | undefined;
1808
+ provider?: string | undefined;
1809
+ is_active?: boolean | undefined;
1810
+ }>;
1811
+ export declare const messageSend: z.ZodObject<{
1812
+ channel_id: z.ZodString;
1813
+ recipient: z.ZodOptional<z.ZodString>;
1814
+ subject: z.ZodOptional<z.ZodString>;
1815
+ body: z.ZodString;
1816
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ body: string;
1819
+ channel_id: string;
1820
+ metadata: Record<string, unknown>;
1821
+ subject?: string | undefined;
1822
+ recipient?: string | undefined;
1823
+ }, {
1824
+ body: string;
1825
+ channel_id: string;
1826
+ subject?: string | undefined;
1827
+ recipient?: string | undefined;
1828
+ metadata?: Record<string, unknown> | undefined;
1829
+ }>;
1830
+ export declare const messageDeliveryGet: z.ZodObject<{
1831
+ id: z.ZodString;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ id: string;
1834
+ }, {
1835
+ id: string;
1836
+ }>;
1837
+ export declare const messageDeliverySearch: z.ZodObject<{
1838
+ channel_id: z.ZodOptional<z.ZodString>;
1839
+ status: z.ZodOptional<z.ZodEnum<["pending", "delivered", "retrying", "failed"]>>;
1840
+ limit: z.ZodDefault<z.ZodNumber>;
1841
+ cursor: z.ZodOptional<z.ZodString>;
1842
+ }, "strip", z.ZodTypeAny, {
1843
+ limit: number;
1844
+ status?: "pending" | "failed" | "delivered" | "retrying" | undefined;
1845
+ cursor?: string | undefined;
1846
+ channel_id?: string | undefined;
1847
+ }, {
1848
+ status?: "pending" | "failed" | "delivered" | "retrying" | undefined;
1849
+ limit?: number | undefined;
1850
+ cursor?: string | undefined;
1851
+ channel_id?: string | undefined;
1852
+ }>;
1620
1853
  export declare const actorType: z.ZodEnum<["human", "agent"]>;
1621
1854
  export declare const assignmentStatus: z.ZodEnum<["pending", "accepted", "in_progress", "blocked", "completed", "declined", "cancelled"]>;
1622
1855
  export declare const assignmentPriority: z.ZodEnum<["low", "normal", "high", "urgent"]>;
@@ -1629,12 +1862,12 @@ export declare const activityTypeRegistryAdd: z.ZodObject<{
1629
1862
  }, "strip", z.ZodTypeAny, {
1630
1863
  label: string;
1631
1864
  type_name: string;
1632
- category: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff";
1865
+ category: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle";
1633
1866
  description?: string | undefined;
1634
1867
  }, {
1635
1868
  label: string;
1636
1869
  type_name: string;
1637
- category: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff";
1870
+ category: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle";
1638
1871
  description?: string | undefined;
1639
1872
  }>;
1640
1873
  export declare const activityTypeRegistryRemove: z.ZodObject<{
@@ -1647,9 +1880,9 @@ export declare const activityTypeRegistryRemove: z.ZodObject<{
1647
1880
  export declare const activityTypeRegistryList: z.ZodObject<{
1648
1881
  category: z.ZodOptional<z.ZodEnum<["outreach", "meeting", "proposal", "contract", "internal", "lifecycle", "handoff"]>>;
1649
1882
  }, "strip", z.ZodTypeAny, {
1650
- category?: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff" | undefined;
1883
+ category?: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle" | undefined;
1651
1884
  }, {
1652
- category?: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff" | undefined;
1885
+ category?: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle" | undefined;
1653
1886
  }>;
1654
1887
  export declare const contextTypeRegistryAdd: z.ZodObject<{
1655
1888
  type_name: z.ZodString;
@@ -1745,6 +1978,47 @@ export declare const contextSearch: z.ZodObject<{
1745
1978
  current_only?: boolean | undefined;
1746
1979
  structured_data_filter?: Record<string, unknown> | undefined;
1747
1980
  }>;
1981
+ export declare const contextSemanticSearch: z.ZodObject<{
1982
+ query: z.ZodString;
1983
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
1984
+ subject_id: z.ZodOptional<z.ZodString>;
1985
+ context_type: z.ZodOptional<z.ZodString>;
1986
+ tag: z.ZodOptional<z.ZodString>;
1987
+ current_only: z.ZodDefault<z.ZodBoolean>;
1988
+ limit: z.ZodDefault<z.ZodNumber>;
1989
+ structured_data_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ query: string;
1992
+ limit: number;
1993
+ current_only: boolean;
1994
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1995
+ subject_id?: string | undefined;
1996
+ context_type?: string | undefined;
1997
+ tag?: string | undefined;
1998
+ structured_data_filter?: Record<string, unknown> | undefined;
1999
+ }, {
2000
+ query: string;
2001
+ limit?: number | undefined;
2002
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
2003
+ subject_id?: string | undefined;
2004
+ context_type?: string | undefined;
2005
+ tag?: string | undefined;
2006
+ current_only?: boolean | undefined;
2007
+ structured_data_filter?: Record<string, unknown> | undefined;
2008
+ }>;
2009
+ export declare const contextEmbedBackfill: z.ZodObject<{
2010
+ batch_size: z.ZodDefault<z.ZodNumber>;
2011
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
2012
+ dry_run: z.ZodDefault<z.ZodBoolean>;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ batch_size: number;
2015
+ dry_run: boolean;
2016
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
2017
+ }, {
2018
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
2019
+ batch_size?: number | undefined;
2020
+ dry_run?: boolean | undefined;
2021
+ }>;
1748
2022
  export declare const contextReview: z.ZodObject<{
1749
2023
  id: z.ZodString;
1750
2024
  }, "strip", z.ZodTypeAny, {
@@ -1776,9 +2050,9 @@ export declare const actorCreate: z.ZodObject<{
1776
2050
  agent_model: z.ZodOptional<z.ZodString>;
1777
2051
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1778
2052
  }, "strip", z.ZodTypeAny, {
1779
- actor_type: "agent" | "human";
1780
- display_name: string;
1781
2053
  metadata: Record<string, unknown>;
2054
+ actor_type: "human" | "agent";
2055
+ display_name: string;
1782
2056
  email?: string | undefined;
1783
2057
  phone?: string | undefined;
1784
2058
  role?: string | undefined;
@@ -1786,15 +2060,15 @@ export declare const actorCreate: z.ZodObject<{
1786
2060
  agent_identifier?: string | undefined;
1787
2061
  agent_model?: string | undefined;
1788
2062
  }, {
1789
- actor_type: "agent" | "human";
2063
+ actor_type: "human" | "agent";
1790
2064
  display_name: string;
1791
2065
  email?: string | undefined;
1792
2066
  phone?: string | undefined;
1793
2067
  role?: string | undefined;
2068
+ metadata?: Record<string, unknown> | undefined;
1794
2069
  user_id?: string | undefined;
1795
2070
  agent_identifier?: string | undefined;
1796
2071
  agent_model?: string | undefined;
1797
- metadata?: Record<string, unknown> | undefined;
1798
2072
  }>;
1799
2073
  export declare const actorUpdate: z.ZodObject<{
1800
2074
  id: z.ZodString;
@@ -1814,20 +2088,20 @@ export declare const actorUpdate: z.ZodObject<{
1814
2088
  scopes?: string[] | undefined;
1815
2089
  role?: string | null | undefined;
1816
2090
  is_active?: boolean | undefined;
2091
+ metadata?: Record<string, unknown> | undefined;
1817
2092
  display_name?: string | undefined;
1818
2093
  agent_identifier?: string | null | undefined;
1819
2094
  agent_model?: string | null | undefined;
1820
- metadata?: Record<string, unknown> | undefined;
1821
2095
  }, {
1822
2096
  email?: string | null | undefined;
1823
2097
  phone?: string | null | undefined;
1824
2098
  scopes?: string[] | undefined;
1825
2099
  role?: string | null | undefined;
1826
2100
  is_active?: boolean | undefined;
2101
+ metadata?: Record<string, unknown> | undefined;
1827
2102
  display_name?: string | undefined;
1828
2103
  agent_identifier?: string | null | undefined;
1829
2104
  agent_model?: string | null | undefined;
1830
- metadata?: Record<string, unknown> | undefined;
1831
2105
  }>;
1832
2106
  }, "strip", z.ZodTypeAny, {
1833
2107
  id: string;
@@ -1837,10 +2111,10 @@ export declare const actorUpdate: z.ZodObject<{
1837
2111
  scopes?: string[] | undefined;
1838
2112
  role?: string | null | undefined;
1839
2113
  is_active?: boolean | undefined;
2114
+ metadata?: Record<string, unknown> | undefined;
1840
2115
  display_name?: string | undefined;
1841
2116
  agent_identifier?: string | null | undefined;
1842
2117
  agent_model?: string | null | undefined;
1843
- metadata?: Record<string, unknown> | undefined;
1844
2118
  };
1845
2119
  }, {
1846
2120
  id: string;
@@ -1850,10 +2124,10 @@ export declare const actorUpdate: z.ZodObject<{
1850
2124
  scopes?: string[] | undefined;
1851
2125
  role?: string | null | undefined;
1852
2126
  is_active?: boolean | undefined;
2127
+ metadata?: Record<string, unknown> | undefined;
1853
2128
  display_name?: string | undefined;
1854
2129
  agent_identifier?: string | null | undefined;
1855
2130
  agent_model?: string | null | undefined;
1856
- metadata?: Record<string, unknown> | undefined;
1857
2131
  };
1858
2132
  }>;
1859
2133
  export declare const actorGet: z.ZodObject<{
@@ -1874,13 +2148,13 @@ export declare const actorSearch: z.ZodObject<{
1874
2148
  query?: string | undefined;
1875
2149
  cursor?: string | undefined;
1876
2150
  is_active?: boolean | undefined;
1877
- actor_type?: "agent" | "human" | undefined;
2151
+ actor_type?: "human" | "agent" | undefined;
1878
2152
  }, {
1879
2153
  query?: string | undefined;
1880
2154
  limit?: number | undefined;
1881
2155
  cursor?: string | undefined;
1882
2156
  is_active?: boolean | undefined;
1883
- actor_type?: "agent" | "human" | undefined;
2157
+ actor_type?: "human" | "agent" | undefined;
1884
2158
  }>;
1885
2159
  export declare const assignmentCreate: z.ZodObject<{
1886
2160
  title: z.ZodString;
@@ -1912,9 +2186,9 @@ export declare const assignmentCreate: z.ZodObject<{
1912
2186
  due_at?: string | undefined;
1913
2187
  subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1914
2188
  subject_id?: string | undefined;
2189
+ context?: string | undefined;
1915
2190
  metadata?: Record<string, unknown> | undefined;
1916
2191
  priority?: "low" | "normal" | "high" | "urgent" | undefined;
1917
- context?: string | undefined;
1918
2192
  }>;
1919
2193
  export declare const assignmentUpdate: z.ZodObject<{
1920
2194
  id: z.ZodString;
@@ -1931,17 +2205,17 @@ export declare const assignmentUpdate: z.ZodObject<{
1931
2205
  status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1932
2206
  description?: string | null | undefined;
1933
2207
  due_at?: string | null | undefined;
2208
+ context?: string | null | undefined;
1934
2209
  metadata?: Record<string, unknown> | undefined;
1935
2210
  priority?: "low" | "normal" | "high" | "urgent" | undefined;
1936
- context?: string | null | undefined;
1937
2211
  }, {
1938
2212
  title?: string | undefined;
1939
2213
  status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1940
2214
  description?: string | null | undefined;
1941
2215
  due_at?: string | null | undefined;
2216
+ context?: string | null | undefined;
1942
2217
  metadata?: Record<string, unknown> | undefined;
1943
2218
  priority?: "low" | "normal" | "high" | "urgent" | undefined;
1944
- context?: string | null | undefined;
1945
2219
  }>;
1946
2220
  }, "strip", z.ZodTypeAny, {
1947
2221
  id: string;
@@ -1950,9 +2224,9 @@ export declare const assignmentUpdate: z.ZodObject<{
1950
2224
  status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1951
2225
  description?: string | null | undefined;
1952
2226
  due_at?: string | null | undefined;
2227
+ context?: string | null | undefined;
1953
2228
  metadata?: Record<string, unknown> | undefined;
1954
2229
  priority?: "low" | "normal" | "high" | "urgent" | undefined;
1955
- context?: string | null | undefined;
1956
2230
  };
1957
2231
  }, {
1958
2232
  id: string;
@@ -1961,9 +2235,9 @@ export declare const assignmentUpdate: z.ZodObject<{
1961
2235
  status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1962
2236
  description?: string | null | undefined;
1963
2237
  due_at?: string | null | undefined;
2238
+ context?: string | null | undefined;
1964
2239
  metadata?: Record<string, unknown> | undefined;
1965
2240
  priority?: "low" | "normal" | "high" | "urgent" | undefined;
1966
- context?: string | null | undefined;
1967
2241
  };
1968
2242
  }>;
1969
2243
  export declare const assignmentGet: z.ZodObject<{
@@ -2068,6 +2342,10 @@ export declare const contextEntryCreate: z.ZodObject<{
2068
2342
  source_ref: z.ZodOptional<z.ZodString>;
2069
2343
  source_activity_id: z.ZodOptional<z.ZodString>;
2070
2344
  valid_until: z.ZodOptional<z.ZodString>;
2345
+ parent_id: z.ZodOptional<z.ZodString>;
2346
+ visibility: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
2347
+ mentions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2348
+ pinned: z.ZodDefault<z.ZodBoolean>;
2071
2349
  }, "strip", z.ZodTypeAny, {
2072
2350
  tags: string[];
2073
2351
  body: string;
@@ -2075,8 +2353,12 @@ export declare const contextEntryCreate: z.ZodObject<{
2075
2353
  subject_id: string;
2076
2354
  context_type: string;
2077
2355
  structured_data: Record<string, unknown>;
2356
+ visibility: "internal" | "external";
2357
+ mentions: string[];
2358
+ pinned: boolean;
2078
2359
  title?: string | undefined;
2079
2360
  source?: string | undefined;
2361
+ parent_id?: string | undefined;
2080
2362
  confidence?: number | undefined;
2081
2363
  source_ref?: string | undefined;
2082
2364
  source_activity_id?: string | undefined;
@@ -2089,11 +2371,15 @@ export declare const contextEntryCreate: z.ZodObject<{
2089
2371
  title?: string | undefined;
2090
2372
  tags?: string[] | undefined;
2091
2373
  source?: string | undefined;
2374
+ parent_id?: string | undefined;
2092
2375
  structured_data?: Record<string, unknown> | undefined;
2093
2376
  confidence?: number | undefined;
2094
2377
  source_ref?: string | undefined;
2095
2378
  source_activity_id?: string | undefined;
2096
2379
  valid_until?: string | undefined;
2380
+ visibility?: "internal" | "external" | undefined;
2381
+ mentions?: string[] | undefined;
2382
+ pinned?: boolean | undefined;
2097
2383
  }>;
2098
2384
  export declare const contextEntryGet: z.ZodObject<{
2099
2385
  id: z.ZodString;
@@ -2111,6 +2397,8 @@ export declare const contextEntrySearch: z.ZodObject<{
2111
2397
  query: z.ZodOptional<z.ZodString>;
2112
2398
  /** Partial JSONB match against structured_data. Example: { "severity": "critical" } */
2113
2399
  structured_data_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2400
+ visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
2401
+ pinned: z.ZodOptional<z.ZodBoolean>;
2114
2402
  limit: z.ZodDefault<z.ZodNumber>;
2115
2403
  cursor: z.ZodOptional<z.ZodString>;
2116
2404
  }, "strip", z.ZodTypeAny, {
@@ -2121,6 +2409,8 @@ export declare const contextEntrySearch: z.ZodObject<{
2121
2409
  subject_id?: string | undefined;
2122
2410
  context_type?: string | undefined;
2123
2411
  structured_data_filter?: Record<string, unknown> | undefined;
2412
+ visibility?: "internal" | "external" | undefined;
2413
+ pinned?: boolean | undefined;
2124
2414
  authored_by?: string | undefined;
2125
2415
  is_current?: boolean | undefined;
2126
2416
  }, {
@@ -2131,6 +2421,8 @@ export declare const contextEntrySearch: z.ZodObject<{
2131
2421
  subject_id?: string | undefined;
2132
2422
  context_type?: string | undefined;
2133
2423
  structured_data_filter?: Record<string, unknown> | undefined;
2424
+ visibility?: "internal" | "external" | undefined;
2425
+ pinned?: boolean | undefined;
2134
2426
  authored_by?: string | undefined;
2135
2427
  is_current?: boolean | undefined;
2136
2428
  }>;
@@ -2160,17 +2452,17 @@ export declare const activityGetTimeline: z.ZodObject<{
2160
2452
  subject_type: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
2161
2453
  subject_id: z.ZodString;
2162
2454
  limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
2163
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
2455
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>, "many">>;
2164
2456
  }, "strip", z.ZodTypeAny, {
2165
2457
  limit: number;
2166
2458
  subject_type: "contact" | "account" | "opportunity" | "use_case";
2167
2459
  subject_id: string;
2168
- types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
2460
+ types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
2169
2461
  }, {
2170
2462
  subject_type: "contact" | "account" | "opportunity" | "use_case";
2171
2463
  subject_id: string;
2172
2464
  limit?: number | undefined;
2173
- types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
2465
+ types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
2174
2466
  }>;
2175
2467
  /** context_diff — catch-up briefing showing what changed since a given timestamp */
2176
2468
  export declare const contextDiff: z.ZodObject<{