@crmy/shared 0.5.1 → 0.5.2

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.
@@ -0,0 +1,2129 @@
1
+ import { z } from 'zod';
2
+ export declare const uuid: z.ZodString;
3
+ export declare const cursor: z.ZodOptional<z.ZodString>;
4
+ export declare const limit: z.ZodDefault<z.ZodNumber>;
5
+ export declare const lifecycleStage: z.ZodEnum<["lead", "prospect", "customer", "churned"]>;
6
+ export declare const oppStage: z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>;
7
+ export declare const forecastCat: z.ZodEnum<["pipeline", "best_case", "commit", "closed"]>;
8
+ export declare const activityType: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
9
+ export declare const direction: z.ZodEnum<["inbound", "outbound"]>;
10
+ export declare const userRole: z.ZodEnum<["owner", "admin", "member"]>;
11
+ export declare const subjectType: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
12
+ export declare const contactCreate: z.ZodObject<{
13
+ first_name: z.ZodString;
14
+ last_name: z.ZodDefault<z.ZodString>;
15
+ email: z.ZodOptional<z.ZodString>;
16
+ phone: z.ZodOptional<z.ZodString>;
17
+ title: z.ZodOptional<z.ZodString>;
18
+ company_name: z.ZodOptional<z.ZodString>;
19
+ account_id: z.ZodOptional<z.ZodString>;
20
+ lifecycle_stage: z.ZodDefault<z.ZodEnum<["lead", "prospect", "customer", "churned"]>>;
21
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
22
+ custom_fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23
+ source: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ first_name: string;
26
+ last_name: string;
27
+ lifecycle_stage: "lead" | "prospect" | "customer" | "churned";
28
+ tags: string[];
29
+ custom_fields: Record<string, unknown>;
30
+ email?: string | undefined;
31
+ phone?: string | undefined;
32
+ title?: string | undefined;
33
+ company_name?: string | undefined;
34
+ account_id?: string | undefined;
35
+ source?: string | undefined;
36
+ }, {
37
+ first_name: string;
38
+ email?: string | undefined;
39
+ phone?: string | undefined;
40
+ last_name?: string | undefined;
41
+ title?: string | undefined;
42
+ company_name?: string | undefined;
43
+ account_id?: string | undefined;
44
+ lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
45
+ tags?: string[] | undefined;
46
+ custom_fields?: Record<string, unknown> | undefined;
47
+ source?: string | undefined;
48
+ }>;
49
+ export declare const contactUpdate: z.ZodObject<{
50
+ id: z.ZodString;
51
+ patch: z.ZodObject<{
52
+ first_name: z.ZodOptional<z.ZodString>;
53
+ last_name: z.ZodOptional<z.ZodString>;
54
+ email: z.ZodOptional<z.ZodString>;
55
+ phone: z.ZodOptional<z.ZodString>;
56
+ title: z.ZodOptional<z.ZodString>;
57
+ company_name: z.ZodOptional<z.ZodString>;
58
+ account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ lifecycle_stage: z.ZodOptional<z.ZodEnum<["lead", "prospect", "customer", "churned"]>>;
61
+ source: z.ZodOptional<z.ZodString>;
62
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ email?: string | undefined;
66
+ phone?: string | undefined;
67
+ first_name?: string | undefined;
68
+ last_name?: string | undefined;
69
+ title?: string | undefined;
70
+ company_name?: string | undefined;
71
+ account_id?: string | null | undefined;
72
+ lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
73
+ tags?: string[] | undefined;
74
+ custom_fields?: Record<string, unknown> | undefined;
75
+ source?: string | undefined;
76
+ owner_id?: string | null | undefined;
77
+ }, {
78
+ email?: string | undefined;
79
+ phone?: string | undefined;
80
+ first_name?: string | undefined;
81
+ last_name?: string | undefined;
82
+ title?: string | undefined;
83
+ company_name?: string | undefined;
84
+ account_id?: string | null | undefined;
85
+ lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
86
+ tags?: string[] | undefined;
87
+ custom_fields?: Record<string, unknown> | undefined;
88
+ source?: string | undefined;
89
+ owner_id?: string | null | undefined;
90
+ }>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ id: string;
93
+ patch: {
94
+ email?: string | undefined;
95
+ phone?: string | undefined;
96
+ first_name?: string | undefined;
97
+ last_name?: string | undefined;
98
+ title?: string | undefined;
99
+ company_name?: string | undefined;
100
+ account_id?: string | null | undefined;
101
+ lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
102
+ tags?: string[] | undefined;
103
+ custom_fields?: Record<string, unknown> | undefined;
104
+ source?: string | undefined;
105
+ owner_id?: string | null | undefined;
106
+ };
107
+ }, {
108
+ id: string;
109
+ patch: {
110
+ email?: string | undefined;
111
+ phone?: string | undefined;
112
+ first_name?: string | undefined;
113
+ last_name?: string | undefined;
114
+ title?: string | undefined;
115
+ company_name?: string | undefined;
116
+ account_id?: string | null | undefined;
117
+ lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
118
+ tags?: string[] | undefined;
119
+ custom_fields?: Record<string, unknown> | undefined;
120
+ source?: string | undefined;
121
+ owner_id?: string | null | undefined;
122
+ };
123
+ }>;
124
+ export declare const contactSearch: z.ZodObject<{
125
+ query: z.ZodOptional<z.ZodString>;
126
+ lifecycle_stage: z.ZodOptional<z.ZodEnum<["lead", "prospect", "customer", "churned"]>>;
127
+ account_id: z.ZodOptional<z.ZodString>;
128
+ owner_id: z.ZodOptional<z.ZodString>;
129
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ limit: z.ZodDefault<z.ZodNumber>;
131
+ cursor: z.ZodOptional<z.ZodString>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ limit: number;
134
+ account_id?: string | undefined;
135
+ lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
136
+ tags?: string[] | undefined;
137
+ owner_id?: string | undefined;
138
+ query?: string | undefined;
139
+ cursor?: string | undefined;
140
+ }, {
141
+ account_id?: string | undefined;
142
+ lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
143
+ tags?: string[] | undefined;
144
+ owner_id?: string | undefined;
145
+ query?: string | undefined;
146
+ limit?: number | undefined;
147
+ cursor?: string | undefined;
148
+ }>;
149
+ export declare const contactSetLifecycle: z.ZodObject<{
150
+ id: z.ZodString;
151
+ lifecycle_stage: z.ZodEnum<["lead", "prospect", "customer", "churned"]>;
152
+ reason: z.ZodOptional<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ lifecycle_stage: "lead" | "prospect" | "customer" | "churned";
155
+ id: string;
156
+ reason?: string | undefined;
157
+ }, {
158
+ lifecycle_stage: "lead" | "prospect" | "customer" | "churned";
159
+ id: string;
160
+ reason?: string | undefined;
161
+ }>;
162
+ export declare const contactGetTimeline: z.ZodObject<{
163
+ id: z.ZodString;
164
+ limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
165
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ id: string;
168
+ limit: number;
169
+ types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
170
+ }, {
171
+ id: string;
172
+ limit?: number | undefined;
173
+ types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
174
+ }>;
175
+ export declare const accountCreate: z.ZodObject<{
176
+ name: z.ZodString;
177
+ domain: z.ZodOptional<z.ZodString>;
178
+ industry: z.ZodOptional<z.ZodString>;
179
+ employee_count: z.ZodOptional<z.ZodNumber>;
180
+ annual_revenue: z.ZodOptional<z.ZodNumber>;
181
+ currency_code: z.ZodDefault<z.ZodString>;
182
+ website: z.ZodOptional<z.ZodString>;
183
+ parent_id: z.ZodOptional<z.ZodString>;
184
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
185
+ custom_fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ tags: string[];
188
+ custom_fields: Record<string, unknown>;
189
+ name: string;
190
+ currency_code: string;
191
+ domain?: string | undefined;
192
+ industry?: string | undefined;
193
+ employee_count?: number | undefined;
194
+ annual_revenue?: number | undefined;
195
+ website?: string | undefined;
196
+ parent_id?: string | undefined;
197
+ }, {
198
+ name: string;
199
+ tags?: string[] | undefined;
200
+ custom_fields?: Record<string, unknown> | undefined;
201
+ domain?: string | undefined;
202
+ industry?: string | undefined;
203
+ employee_count?: number | undefined;
204
+ annual_revenue?: number | undefined;
205
+ currency_code?: string | undefined;
206
+ website?: string | undefined;
207
+ parent_id?: string | undefined;
208
+ }>;
209
+ export declare const accountUpdate: z.ZodObject<{
210
+ id: z.ZodString;
211
+ patch: z.ZodObject<{
212
+ name: z.ZodOptional<z.ZodString>;
213
+ domain: z.ZodOptional<z.ZodString>;
214
+ industry: z.ZodOptional<z.ZodString>;
215
+ employee_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
216
+ annual_revenue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
217
+ currency_code: z.ZodOptional<z.ZodString>;
218
+ website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
222
+ custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ tags?: string[] | undefined;
225
+ custom_fields?: Record<string, unknown> | undefined;
226
+ owner_id?: string | null | undefined;
227
+ name?: string | undefined;
228
+ domain?: string | undefined;
229
+ industry?: string | undefined;
230
+ employee_count?: number | null | undefined;
231
+ annual_revenue?: number | null | undefined;
232
+ currency_code?: string | undefined;
233
+ website?: string | null | undefined;
234
+ parent_id?: string | null | undefined;
235
+ }, {
236
+ tags?: string[] | undefined;
237
+ custom_fields?: Record<string, unknown> | undefined;
238
+ owner_id?: string | null | undefined;
239
+ name?: string | undefined;
240
+ domain?: string | undefined;
241
+ industry?: string | undefined;
242
+ employee_count?: number | null | undefined;
243
+ annual_revenue?: number | null | undefined;
244
+ currency_code?: string | undefined;
245
+ website?: string | null | undefined;
246
+ parent_id?: string | null | undefined;
247
+ }>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ id: string;
250
+ patch: {
251
+ tags?: string[] | undefined;
252
+ custom_fields?: Record<string, unknown> | undefined;
253
+ owner_id?: string | null | undefined;
254
+ name?: string | undefined;
255
+ domain?: string | undefined;
256
+ industry?: string | undefined;
257
+ employee_count?: number | null | undefined;
258
+ annual_revenue?: number | null | undefined;
259
+ currency_code?: string | undefined;
260
+ website?: string | null | undefined;
261
+ parent_id?: string | null | undefined;
262
+ };
263
+ }, {
264
+ id: string;
265
+ patch: {
266
+ tags?: string[] | undefined;
267
+ custom_fields?: Record<string, unknown> | undefined;
268
+ owner_id?: string | null | undefined;
269
+ name?: string | undefined;
270
+ domain?: string | undefined;
271
+ industry?: string | undefined;
272
+ employee_count?: number | null | undefined;
273
+ annual_revenue?: number | null | undefined;
274
+ currency_code?: string | undefined;
275
+ website?: string | null | undefined;
276
+ parent_id?: string | null | undefined;
277
+ };
278
+ }>;
279
+ export declare const accountSearch: z.ZodObject<{
280
+ query: z.ZodOptional<z.ZodString>;
281
+ industry: z.ZodOptional<z.ZodString>;
282
+ owner_id: z.ZodOptional<z.ZodString>;
283
+ min_revenue: z.ZodOptional<z.ZodNumber>;
284
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
285
+ limit: z.ZodDefault<z.ZodNumber>;
286
+ cursor: z.ZodOptional<z.ZodString>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ limit: number;
289
+ tags?: string[] | undefined;
290
+ owner_id?: string | undefined;
291
+ query?: string | undefined;
292
+ cursor?: string | undefined;
293
+ industry?: string | undefined;
294
+ min_revenue?: number | undefined;
295
+ }, {
296
+ tags?: string[] | undefined;
297
+ owner_id?: string | undefined;
298
+ query?: string | undefined;
299
+ limit?: number | undefined;
300
+ cursor?: string | undefined;
301
+ industry?: string | undefined;
302
+ min_revenue?: number | undefined;
303
+ }>;
304
+ export declare const accountSetHealth: z.ZodObject<{
305
+ id: z.ZodString;
306
+ score: z.ZodNumber;
307
+ rationale: z.ZodOptional<z.ZodString>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ id: string;
310
+ score: number;
311
+ rationale?: string | undefined;
312
+ }, {
313
+ id: string;
314
+ score: number;
315
+ rationale?: string | undefined;
316
+ }>;
317
+ export declare const opportunityCreate: z.ZodObject<{
318
+ name: z.ZodString;
319
+ account_id: z.ZodOptional<z.ZodString>;
320
+ contact_id: z.ZodOptional<z.ZodString>;
321
+ amount: z.ZodOptional<z.ZodNumber>;
322
+ currency_code: z.ZodDefault<z.ZodString>;
323
+ close_date: z.ZodOptional<z.ZodString>;
324
+ stage: z.ZodDefault<z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>>;
325
+ description: z.ZodOptional<z.ZodString>;
326
+ custom_fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ custom_fields: Record<string, unknown>;
329
+ name: string;
330
+ currency_code: string;
331
+ stage: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
332
+ account_id?: string | undefined;
333
+ contact_id?: string | undefined;
334
+ amount?: number | undefined;
335
+ close_date?: string | undefined;
336
+ description?: string | undefined;
337
+ }, {
338
+ name: string;
339
+ account_id?: string | undefined;
340
+ custom_fields?: Record<string, unknown> | undefined;
341
+ currency_code?: string | undefined;
342
+ contact_id?: string | undefined;
343
+ amount?: number | undefined;
344
+ close_date?: string | undefined;
345
+ stage?: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost" | undefined;
346
+ description?: string | undefined;
347
+ }>;
348
+ export declare const opportunityUpdate: z.ZodObject<{
349
+ id: z.ZodString;
350
+ patch: z.ZodObject<{
351
+ name: z.ZodOptional<z.ZodString>;
352
+ account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
356
+ currency_code: z.ZodOptional<z.ZodString>;
357
+ close_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ probability: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
359
+ forecast_cat: z.ZodOptional<z.ZodEnum<["pipeline", "best_case", "commit", "closed"]>>;
360
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
+ custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ account_id?: string | null | undefined;
364
+ custom_fields?: Record<string, unknown> | undefined;
365
+ owner_id?: string | null | undefined;
366
+ name?: string | undefined;
367
+ currency_code?: string | undefined;
368
+ contact_id?: string | null | undefined;
369
+ amount?: number | null | undefined;
370
+ close_date?: string | null | undefined;
371
+ description?: string | null | undefined;
372
+ probability?: number | null | undefined;
373
+ forecast_cat?: "pipeline" | "best_case" | "commit" | "closed" | undefined;
374
+ }, {
375
+ account_id?: string | null | undefined;
376
+ custom_fields?: Record<string, unknown> | undefined;
377
+ owner_id?: string | null | undefined;
378
+ name?: string | undefined;
379
+ currency_code?: string | undefined;
380
+ contact_id?: string | null | undefined;
381
+ amount?: number | null | undefined;
382
+ close_date?: string | null | undefined;
383
+ description?: string | null | undefined;
384
+ probability?: number | null | undefined;
385
+ forecast_cat?: "pipeline" | "best_case" | "commit" | "closed" | undefined;
386
+ }>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ id: string;
389
+ patch: {
390
+ account_id?: string | null | undefined;
391
+ custom_fields?: Record<string, unknown> | undefined;
392
+ owner_id?: string | null | undefined;
393
+ name?: string | undefined;
394
+ currency_code?: string | undefined;
395
+ contact_id?: string | null | undefined;
396
+ amount?: number | null | undefined;
397
+ close_date?: string | null | undefined;
398
+ description?: string | null | undefined;
399
+ probability?: number | null | undefined;
400
+ forecast_cat?: "pipeline" | "best_case" | "commit" | "closed" | undefined;
401
+ };
402
+ }, {
403
+ id: string;
404
+ patch: {
405
+ account_id?: string | null | undefined;
406
+ custom_fields?: Record<string, unknown> | undefined;
407
+ owner_id?: string | null | undefined;
408
+ name?: string | undefined;
409
+ currency_code?: string | undefined;
410
+ contact_id?: string | null | undefined;
411
+ amount?: number | null | undefined;
412
+ close_date?: string | null | undefined;
413
+ description?: string | null | undefined;
414
+ probability?: number | null | undefined;
415
+ forecast_cat?: "pipeline" | "best_case" | "commit" | "closed" | undefined;
416
+ };
417
+ }>;
418
+ export declare const opportunitySearch: z.ZodObject<{
419
+ query: z.ZodOptional<z.ZodString>;
420
+ stage: z.ZodOptional<z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>>;
421
+ owner_id: z.ZodOptional<z.ZodString>;
422
+ account_id: z.ZodOptional<z.ZodString>;
423
+ forecast_cat: z.ZodOptional<z.ZodEnum<["pipeline", "best_case", "commit", "closed"]>>;
424
+ close_date_before: z.ZodOptional<z.ZodString>;
425
+ close_date_after: z.ZodOptional<z.ZodString>;
426
+ limit: z.ZodDefault<z.ZodNumber>;
427
+ cursor: z.ZodOptional<z.ZodString>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ limit: number;
430
+ account_id?: string | undefined;
431
+ owner_id?: string | undefined;
432
+ query?: string | undefined;
433
+ cursor?: string | undefined;
434
+ stage?: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost" | undefined;
435
+ forecast_cat?: "pipeline" | "best_case" | "commit" | "closed" | undefined;
436
+ close_date_before?: string | undefined;
437
+ close_date_after?: string | undefined;
438
+ }, {
439
+ account_id?: string | undefined;
440
+ owner_id?: string | undefined;
441
+ query?: string | undefined;
442
+ limit?: number | undefined;
443
+ cursor?: string | undefined;
444
+ stage?: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost" | undefined;
445
+ forecast_cat?: "pipeline" | "best_case" | "commit" | "closed" | undefined;
446
+ close_date_before?: string | undefined;
447
+ close_date_after?: string | undefined;
448
+ }>;
449
+ export declare const opportunityAdvanceStage: z.ZodObject<{
450
+ id: z.ZodString;
451
+ stage: z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>;
452
+ note: z.ZodOptional<z.ZodString>;
453
+ lost_reason: z.ZodOptional<z.ZodString>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ id: string;
456
+ stage: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
457
+ note?: string | undefined;
458
+ lost_reason?: string | undefined;
459
+ }, {
460
+ id: string;
461
+ stage: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
462
+ note?: string | undefined;
463
+ lost_reason?: string | undefined;
464
+ }>;
465
+ export declare const pipelineSummary: z.ZodObject<{
466
+ owner_id: z.ZodOptional<z.ZodString>;
467
+ group_by: z.ZodDefault<z.ZodEnum<["stage", "owner", "forecast_cat"]>>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ group_by: "owner" | "stage" | "forecast_cat";
470
+ owner_id?: string | undefined;
471
+ }, {
472
+ owner_id?: string | undefined;
473
+ group_by?: "owner" | "stage" | "forecast_cat" | undefined;
474
+ }>;
475
+ export declare const activityCreate: z.ZodObject<{
476
+ type: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
477
+ subject: z.ZodString;
478
+ body: z.ZodOptional<z.ZodString>;
479
+ contact_id: z.ZodOptional<z.ZodString>;
480
+ account_id: z.ZodOptional<z.ZodString>;
481
+ opportunity_id: z.ZodOptional<z.ZodString>;
482
+ due_at: z.ZodOptional<z.ZodString>;
483
+ direction: z.ZodOptional<z.ZodEnum<["inbound", "outbound"]>>;
484
+ custom_fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
485
+ performed_by: z.ZodOptional<z.ZodString>;
486
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
487
+ subject_id: z.ZodOptional<z.ZodString>;
488
+ related_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
489
+ related_id: z.ZodOptional<z.ZodString>;
490
+ detail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
491
+ occurred_at: z.ZodOptional<z.ZodString>;
492
+ outcome: z.ZodOptional<z.ZodString>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ type: "call" | "email" | "meeting" | "note" | "task";
495
+ custom_fields: Record<string, unknown>;
496
+ subject: string;
497
+ account_id?: string | undefined;
498
+ contact_id?: string | undefined;
499
+ body?: string | undefined;
500
+ opportunity_id?: string | undefined;
501
+ due_at?: string | undefined;
502
+ direction?: "inbound" | "outbound" | undefined;
503
+ performed_by?: string | undefined;
504
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
505
+ subject_id?: string | undefined;
506
+ related_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
507
+ related_id?: string | undefined;
508
+ detail?: Record<string, unknown> | undefined;
509
+ occurred_at?: string | undefined;
510
+ outcome?: string | undefined;
511
+ }, {
512
+ type: "call" | "email" | "meeting" | "note" | "task";
513
+ subject: string;
514
+ account_id?: string | undefined;
515
+ custom_fields?: Record<string, unknown> | undefined;
516
+ contact_id?: string | undefined;
517
+ body?: string | undefined;
518
+ opportunity_id?: string | undefined;
519
+ due_at?: string | undefined;
520
+ direction?: "inbound" | "outbound" | undefined;
521
+ performed_by?: string | undefined;
522
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
523
+ subject_id?: string | undefined;
524
+ related_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
525
+ related_id?: string | undefined;
526
+ detail?: Record<string, unknown> | undefined;
527
+ occurred_at?: string | undefined;
528
+ outcome?: string | undefined;
529
+ }>;
530
+ export declare const activityUpdate: z.ZodObject<{
531
+ id: z.ZodString;
532
+ patch: z.ZodObject<{
533
+ subject: z.ZodOptional<z.ZodString>;
534
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ status: z.ZodOptional<z.ZodString>;
536
+ due_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ status?: string | undefined;
540
+ custom_fields?: Record<string, unknown> | undefined;
541
+ subject?: string | undefined;
542
+ body?: string | null | undefined;
543
+ due_at?: string | null | undefined;
544
+ }, {
545
+ status?: string | undefined;
546
+ custom_fields?: Record<string, unknown> | undefined;
547
+ subject?: string | undefined;
548
+ body?: string | null | undefined;
549
+ due_at?: string | null | undefined;
550
+ }>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ id: string;
553
+ patch: {
554
+ status?: string | undefined;
555
+ custom_fields?: Record<string, unknown> | undefined;
556
+ subject?: string | undefined;
557
+ body?: string | null | undefined;
558
+ due_at?: string | null | undefined;
559
+ };
560
+ }, {
561
+ id: string;
562
+ patch: {
563
+ status?: string | undefined;
564
+ custom_fields?: Record<string, unknown> | undefined;
565
+ subject?: string | undefined;
566
+ body?: string | null | undefined;
567
+ due_at?: string | null | undefined;
568
+ };
569
+ }>;
570
+ export declare const activitySearch: z.ZodObject<{
571
+ contact_id: z.ZodOptional<z.ZodString>;
572
+ account_id: z.ZodOptional<z.ZodString>;
573
+ opportunity_id: z.ZodOptional<z.ZodString>;
574
+ type: z.ZodOptional<z.ZodEnum<["call", "email", "meeting", "note", "task"]>>;
575
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
576
+ subject_id: z.ZodOptional<z.ZodString>;
577
+ performed_by: z.ZodOptional<z.ZodString>;
578
+ outcome: z.ZodOptional<z.ZodString>;
579
+ limit: z.ZodDefault<z.ZodNumber>;
580
+ cursor: z.ZodOptional<z.ZodString>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ limit: number;
583
+ type?: "call" | "email" | "meeting" | "note" | "task" | undefined;
584
+ account_id?: string | undefined;
585
+ cursor?: string | undefined;
586
+ contact_id?: string | undefined;
587
+ opportunity_id?: string | undefined;
588
+ performed_by?: string | undefined;
589
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
590
+ subject_id?: string | undefined;
591
+ outcome?: string | undefined;
592
+ }, {
593
+ type?: "call" | "email" | "meeting" | "note" | "task" | undefined;
594
+ account_id?: string | undefined;
595
+ limit?: number | undefined;
596
+ cursor?: string | undefined;
597
+ contact_id?: string | undefined;
598
+ opportunity_id?: string | undefined;
599
+ performed_by?: string | undefined;
600
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
601
+ subject_id?: string | undefined;
602
+ outcome?: string | undefined;
603
+ }>;
604
+ export declare const activityComplete: z.ZodObject<{
605
+ id: z.ZodString;
606
+ completed_at: z.ZodOptional<z.ZodString>;
607
+ note: z.ZodOptional<z.ZodString>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ id: string;
610
+ note?: string | undefined;
611
+ completed_at?: string | undefined;
612
+ }, {
613
+ id: string;
614
+ note?: string | undefined;
615
+ completed_at?: string | undefined;
616
+ }>;
617
+ export declare const contactLogActivity: z.ZodObject<{
618
+ contact_id: z.ZodString;
619
+ type: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
620
+ subject: z.ZodString;
621
+ body: z.ZodOptional<z.ZodString>;
622
+ opportunity_id: z.ZodOptional<z.ZodString>;
623
+ due_at: z.ZodOptional<z.ZodString>;
624
+ direction: z.ZodOptional<z.ZodEnum<["inbound", "outbound"]>>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ type: "call" | "email" | "meeting" | "note" | "task";
627
+ contact_id: string;
628
+ subject: string;
629
+ body?: string | undefined;
630
+ opportunity_id?: string | undefined;
631
+ due_at?: string | undefined;
632
+ direction?: "inbound" | "outbound" | undefined;
633
+ }, {
634
+ type: "call" | "email" | "meeting" | "note" | "task";
635
+ contact_id: string;
636
+ subject: string;
637
+ body?: string | undefined;
638
+ opportunity_id?: string | undefined;
639
+ due_at?: string | undefined;
640
+ direction?: "inbound" | "outbound" | undefined;
641
+ }>;
642
+ export declare const crmSearch: z.ZodObject<{
643
+ query: z.ZodString;
644
+ limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ query: string;
647
+ limit: number;
648
+ }, {
649
+ query: string;
650
+ limit?: number | undefined;
651
+ }>;
652
+ export declare const pipelineForecast: z.ZodObject<{
653
+ period: z.ZodDefault<z.ZodEnum<["month", "quarter", "year"]>>;
654
+ owner_id: z.ZodOptional<z.ZodString>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ period: "month" | "quarter" | "year";
657
+ owner_id?: string | undefined;
658
+ }, {
659
+ owner_id?: string | undefined;
660
+ period?: "month" | "quarter" | "year" | undefined;
661
+ }>;
662
+ export declare const accountHealthReport: z.ZodObject<{
663
+ account_id: z.ZodString;
664
+ }, "strip", z.ZodTypeAny, {
665
+ account_id: string;
666
+ }, {
667
+ account_id: string;
668
+ }>;
669
+ export declare const hitlSubmit: z.ZodObject<{
670
+ action_type: z.ZodString;
671
+ action_summary: z.ZodString;
672
+ action_payload: z.ZodUnknown;
673
+ auto_approve_after_seconds: z.ZodOptional<z.ZodNumber>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ action_type: string;
676
+ action_summary: string;
677
+ action_payload?: unknown;
678
+ auto_approve_after_seconds?: number | undefined;
679
+ }, {
680
+ action_type: string;
681
+ action_summary: string;
682
+ action_payload?: unknown;
683
+ auto_approve_after_seconds?: number | undefined;
684
+ }>;
685
+ export declare const hitlCheckStatus: z.ZodObject<{
686
+ request_id: z.ZodString;
687
+ }, "strip", z.ZodTypeAny, {
688
+ request_id: string;
689
+ }, {
690
+ request_id: string;
691
+ }>;
692
+ export declare const hitlListPending: z.ZodObject<{
693
+ limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ limit: number;
696
+ }, {
697
+ limit?: number | undefined;
698
+ }>;
699
+ export declare const hitlResolve: z.ZodObject<{
700
+ request_id: z.ZodString;
701
+ decision: z.ZodEnum<["approved", "rejected"]>;
702
+ note: z.ZodOptional<z.ZodString>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ request_id: string;
705
+ decision: "approved" | "rejected";
706
+ note?: string | undefined;
707
+ }, {
708
+ request_id: string;
709
+ decision: "approved" | "rejected";
710
+ note?: string | undefined;
711
+ }>;
712
+ export declare const schemaGet: z.ZodObject<{
713
+ object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
716
+ }, {
717
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
718
+ }>;
719
+ export declare const tenantGetStats: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
720
+ export declare const authRegister: z.ZodObject<{
721
+ name: z.ZodString;
722
+ email: z.ZodString;
723
+ password: z.ZodString;
724
+ tenant_name: z.ZodString;
725
+ }, "strip", z.ZodTypeAny, {
726
+ email: string;
727
+ name: string;
728
+ password: string;
729
+ tenant_name: string;
730
+ }, {
731
+ email: string;
732
+ name: string;
733
+ password: string;
734
+ tenant_name: string;
735
+ }>;
736
+ export declare const authLogin: z.ZodObject<{
737
+ email: z.ZodString;
738
+ password: z.ZodString;
739
+ }, "strip", z.ZodTypeAny, {
740
+ email: string;
741
+ password: string;
742
+ }, {
743
+ email: string;
744
+ password: string;
745
+ }>;
746
+ export declare const apiKeyCreate: z.ZodObject<{
747
+ label: z.ZodString;
748
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
749
+ expires_at: z.ZodOptional<z.ZodString>;
750
+ actor_id: z.ZodOptional<z.ZodString>;
751
+ }, "strip", z.ZodTypeAny, {
752
+ label: string;
753
+ scopes: string[];
754
+ expires_at?: string | undefined;
755
+ actor_id?: string | undefined;
756
+ }, {
757
+ label: string;
758
+ scopes?: string[] | undefined;
759
+ expires_at?: string | undefined;
760
+ actor_id?: string | undefined;
761
+ }>;
762
+ export declare const useCaseStage: z.ZodEnum<["discovery", "poc", "production", "scaling", "sunset"]>;
763
+ export declare const useCaseCreate: z.ZodObject<{
764
+ account_id: z.ZodString;
765
+ name: z.ZodString;
766
+ stage: z.ZodDefault<z.ZodEnum<["discovery", "poc", "production", "scaling", "sunset"]>>;
767
+ description: z.ZodOptional<z.ZodString>;
768
+ opportunity_id: z.ZodOptional<z.ZodString>;
769
+ unit_label: z.ZodOptional<z.ZodString>;
770
+ consumption_unit: z.ZodOptional<z.ZodString>;
771
+ consumption_capacity: z.ZodOptional<z.ZodNumber>;
772
+ attributed_arr: z.ZodOptional<z.ZodNumber>;
773
+ currency_code: z.ZodDefault<z.ZodString>;
774
+ expansion_potential: z.ZodOptional<z.ZodNumber>;
775
+ started_at: z.ZodOptional<z.ZodString>;
776
+ target_prod_date: z.ZodOptional<z.ZodString>;
777
+ sunset_date: z.ZodOptional<z.ZodString>;
778
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
779
+ custom_fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
780
+ }, "strip", z.ZodTypeAny, {
781
+ account_id: string;
782
+ tags: string[];
783
+ custom_fields: Record<string, unknown>;
784
+ name: string;
785
+ currency_code: string;
786
+ stage: "discovery" | "poc" | "production" | "scaling" | "sunset";
787
+ description?: string | undefined;
788
+ opportunity_id?: string | undefined;
789
+ unit_label?: string | undefined;
790
+ consumption_unit?: string | undefined;
791
+ consumption_capacity?: number | undefined;
792
+ attributed_arr?: number | undefined;
793
+ expansion_potential?: number | undefined;
794
+ started_at?: string | undefined;
795
+ target_prod_date?: string | undefined;
796
+ sunset_date?: string | undefined;
797
+ }, {
798
+ account_id: string;
799
+ name: string;
800
+ tags?: string[] | undefined;
801
+ custom_fields?: Record<string, unknown> | undefined;
802
+ currency_code?: string | undefined;
803
+ stage?: "discovery" | "poc" | "production" | "scaling" | "sunset" | undefined;
804
+ description?: string | undefined;
805
+ opportunity_id?: string | undefined;
806
+ unit_label?: string | undefined;
807
+ consumption_unit?: string | undefined;
808
+ consumption_capacity?: number | undefined;
809
+ attributed_arr?: number | undefined;
810
+ expansion_potential?: number | undefined;
811
+ started_at?: string | undefined;
812
+ target_prod_date?: string | undefined;
813
+ sunset_date?: string | undefined;
814
+ }>;
815
+ export declare const useCaseUpdate: z.ZodObject<{
816
+ id: z.ZodString;
817
+ patch: z.ZodObject<{
818
+ name: z.ZodOptional<z.ZodString>;
819
+ stage: z.ZodOptional<z.ZodEnum<["discovery", "poc", "production", "scaling", "sunset"]>>;
820
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
821
+ opportunity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
823
+ unit_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
824
+ consumption_unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
825
+ consumption_capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
826
+ attributed_arr: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
827
+ currency_code: z.ZodOptional<z.ZodString>;
828
+ expansion_potential: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
829
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
830
+ target_prod_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
831
+ sunset_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
832
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
833
+ custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ tags?: string[] | undefined;
836
+ custom_fields?: Record<string, unknown> | undefined;
837
+ owner_id?: string | null | undefined;
838
+ name?: string | undefined;
839
+ currency_code?: string | undefined;
840
+ stage?: "discovery" | "poc" | "production" | "scaling" | "sunset" | undefined;
841
+ description?: string | null | undefined;
842
+ opportunity_id?: string | null | undefined;
843
+ unit_label?: string | null | undefined;
844
+ consumption_unit?: string | null | undefined;
845
+ consumption_capacity?: number | null | undefined;
846
+ attributed_arr?: number | null | undefined;
847
+ expansion_potential?: number | null | undefined;
848
+ started_at?: string | null | undefined;
849
+ target_prod_date?: string | null | undefined;
850
+ sunset_date?: string | null | undefined;
851
+ }, {
852
+ tags?: string[] | undefined;
853
+ custom_fields?: Record<string, unknown> | undefined;
854
+ owner_id?: string | null | undefined;
855
+ name?: string | undefined;
856
+ currency_code?: string | undefined;
857
+ stage?: "discovery" | "poc" | "production" | "scaling" | "sunset" | undefined;
858
+ description?: string | null | undefined;
859
+ opportunity_id?: string | null | undefined;
860
+ unit_label?: string | null | undefined;
861
+ consumption_unit?: string | null | undefined;
862
+ consumption_capacity?: number | null | undefined;
863
+ attributed_arr?: number | null | undefined;
864
+ expansion_potential?: number | null | undefined;
865
+ started_at?: string | null | undefined;
866
+ target_prod_date?: string | null | undefined;
867
+ sunset_date?: string | null | undefined;
868
+ }>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ id: string;
871
+ patch: {
872
+ tags?: string[] | undefined;
873
+ custom_fields?: Record<string, unknown> | undefined;
874
+ owner_id?: string | null | undefined;
875
+ name?: string | undefined;
876
+ currency_code?: string | undefined;
877
+ stage?: "discovery" | "poc" | "production" | "scaling" | "sunset" | undefined;
878
+ description?: string | null | undefined;
879
+ opportunity_id?: string | null | undefined;
880
+ unit_label?: string | null | undefined;
881
+ consumption_unit?: string | null | undefined;
882
+ consumption_capacity?: number | null | undefined;
883
+ attributed_arr?: number | null | undefined;
884
+ expansion_potential?: number | null | undefined;
885
+ started_at?: string | null | undefined;
886
+ target_prod_date?: string | null | undefined;
887
+ sunset_date?: string | null | undefined;
888
+ };
889
+ }, {
890
+ id: string;
891
+ patch: {
892
+ tags?: string[] | undefined;
893
+ custom_fields?: Record<string, unknown> | undefined;
894
+ owner_id?: string | null | undefined;
895
+ name?: string | undefined;
896
+ currency_code?: string | undefined;
897
+ stage?: "discovery" | "poc" | "production" | "scaling" | "sunset" | undefined;
898
+ description?: string | null | undefined;
899
+ opportunity_id?: string | null | undefined;
900
+ unit_label?: string | null | undefined;
901
+ consumption_unit?: string | null | undefined;
902
+ consumption_capacity?: number | null | undefined;
903
+ attributed_arr?: number | null | undefined;
904
+ expansion_potential?: number | null | undefined;
905
+ started_at?: string | null | undefined;
906
+ target_prod_date?: string | null | undefined;
907
+ sunset_date?: string | null | undefined;
908
+ };
909
+ }>;
910
+ export declare const useCaseSearch: z.ZodObject<{
911
+ account_id: z.ZodOptional<z.ZodString>;
912
+ stage: z.ZodOptional<z.ZodEnum<["discovery", "poc", "production", "scaling", "sunset"]>>;
913
+ owner_id: z.ZodOptional<z.ZodString>;
914
+ product_line: z.ZodOptional<z.ZodString>;
915
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
916
+ query: z.ZodOptional<z.ZodString>;
917
+ limit: z.ZodDefault<z.ZodNumber>;
918
+ cursor: z.ZodOptional<z.ZodString>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ limit: number;
921
+ account_id?: string | undefined;
922
+ tags?: string[] | undefined;
923
+ owner_id?: string | undefined;
924
+ query?: string | undefined;
925
+ cursor?: string | undefined;
926
+ stage?: "discovery" | "poc" | "production" | "scaling" | "sunset" | undefined;
927
+ product_line?: string | undefined;
928
+ }, {
929
+ account_id?: string | undefined;
930
+ tags?: string[] | undefined;
931
+ owner_id?: string | undefined;
932
+ query?: string | undefined;
933
+ limit?: number | undefined;
934
+ cursor?: string | undefined;
935
+ stage?: "discovery" | "poc" | "production" | "scaling" | "sunset" | undefined;
936
+ product_line?: string | undefined;
937
+ }>;
938
+ export declare const useCaseGet: z.ZodObject<{
939
+ id: z.ZodString;
940
+ }, "strip", z.ZodTypeAny, {
941
+ id: string;
942
+ }, {
943
+ id: string;
944
+ }>;
945
+ export declare const useCaseDelete: z.ZodObject<{
946
+ id: z.ZodString;
947
+ }, "strip", z.ZodTypeAny, {
948
+ id: string;
949
+ }, {
950
+ id: string;
951
+ }>;
952
+ export declare const useCaseAdvanceStage: z.ZodObject<{
953
+ id: z.ZodString;
954
+ stage: z.ZodEnum<["discovery", "poc", "production", "scaling", "sunset"]>;
955
+ note: z.ZodOptional<z.ZodString>;
956
+ }, "strip", z.ZodTypeAny, {
957
+ id: string;
958
+ stage: "discovery" | "poc" | "production" | "scaling" | "sunset";
959
+ note?: string | undefined;
960
+ }, {
961
+ id: string;
962
+ stage: "discovery" | "poc" | "production" | "scaling" | "sunset";
963
+ note?: string | undefined;
964
+ }>;
965
+ export declare const useCaseUpdateConsumption: z.ZodObject<{
966
+ id: z.ZodString;
967
+ consumption_current: z.ZodNumber;
968
+ note: z.ZodOptional<z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ id: string;
971
+ consumption_current: number;
972
+ note?: string | undefined;
973
+ }, {
974
+ id: string;
975
+ consumption_current: number;
976
+ note?: string | undefined;
977
+ }>;
978
+ export declare const useCaseSetHealth: z.ZodObject<{
979
+ id: z.ZodString;
980
+ score: z.ZodNumber;
981
+ rationale: z.ZodOptional<z.ZodString>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ id: string;
984
+ score: number;
985
+ rationale?: string | undefined;
986
+ }, {
987
+ id: string;
988
+ score: number;
989
+ rationale?: string | undefined;
990
+ }>;
991
+ export declare const useCaseLinkContact: z.ZodObject<{
992
+ use_case_id: z.ZodString;
993
+ contact_id: z.ZodString;
994
+ role: z.ZodDefault<z.ZodString>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ contact_id: string;
997
+ use_case_id: string;
998
+ role: string;
999
+ }, {
1000
+ contact_id: string;
1001
+ use_case_id: string;
1002
+ role?: string | undefined;
1003
+ }>;
1004
+ export declare const useCaseUnlinkContact: z.ZodObject<{
1005
+ use_case_id: z.ZodString;
1006
+ contact_id: z.ZodString;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ contact_id: string;
1009
+ use_case_id: string;
1010
+ }, {
1011
+ contact_id: string;
1012
+ use_case_id: string;
1013
+ }>;
1014
+ export declare const useCaseListContacts: z.ZodObject<{
1015
+ use_case_id: z.ZodString;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ use_case_id: string;
1018
+ }, {
1019
+ use_case_id: string;
1020
+ }>;
1021
+ export declare const useCaseGetTimeline: z.ZodObject<{
1022
+ id: z.ZodString;
1023
+ limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
1024
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ id: string;
1027
+ limit: number;
1028
+ types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
1029
+ }, {
1030
+ id: string;
1031
+ limit?: number | undefined;
1032
+ types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
1033
+ }>;
1034
+ export declare const useCaseSummary: z.ZodObject<{
1035
+ account_id: z.ZodOptional<z.ZodString>;
1036
+ group_by: z.ZodDefault<z.ZodEnum<["stage", "product_line", "owner"]>>;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ group_by: "owner" | "stage" | "product_line";
1039
+ account_id?: string | undefined;
1040
+ }, {
1041
+ account_id?: string | undefined;
1042
+ group_by?: "owner" | "stage" | "product_line" | undefined;
1043
+ }>;
1044
+ export declare const webhookCreate: z.ZodObject<{
1045
+ url: z.ZodString;
1046
+ events: z.ZodArray<z.ZodString, "many">;
1047
+ description: z.ZodOptional<z.ZodString>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ url: string;
1050
+ events: string[];
1051
+ description?: string | undefined;
1052
+ }, {
1053
+ url: string;
1054
+ events: string[];
1055
+ description?: string | undefined;
1056
+ }>;
1057
+ export declare const webhookUpdate: z.ZodObject<{
1058
+ id: z.ZodString;
1059
+ patch: z.ZodObject<{
1060
+ url: z.ZodOptional<z.ZodString>;
1061
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1062
+ active: z.ZodOptional<z.ZodBoolean>;
1063
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ active?: boolean | undefined;
1066
+ description?: string | null | undefined;
1067
+ url?: string | undefined;
1068
+ events?: string[] | undefined;
1069
+ }, {
1070
+ active?: boolean | undefined;
1071
+ description?: string | null | undefined;
1072
+ url?: string | undefined;
1073
+ events?: string[] | undefined;
1074
+ }>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ id: string;
1077
+ patch: {
1078
+ active?: boolean | undefined;
1079
+ description?: string | null | undefined;
1080
+ url?: string | undefined;
1081
+ events?: string[] | undefined;
1082
+ };
1083
+ }, {
1084
+ id: string;
1085
+ patch: {
1086
+ active?: boolean | undefined;
1087
+ description?: string | null | undefined;
1088
+ url?: string | undefined;
1089
+ events?: string[] | undefined;
1090
+ };
1091
+ }>;
1092
+ export declare const webhookDelete: z.ZodObject<{
1093
+ id: z.ZodString;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ id: string;
1096
+ }, {
1097
+ id: string;
1098
+ }>;
1099
+ export declare const webhookGet: z.ZodObject<{
1100
+ id: z.ZodString;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ id: string;
1103
+ }, {
1104
+ id: string;
1105
+ }>;
1106
+ export declare const webhookList: z.ZodObject<{
1107
+ active: z.ZodOptional<z.ZodBoolean>;
1108
+ limit: z.ZodDefault<z.ZodNumber>;
1109
+ cursor: z.ZodOptional<z.ZodString>;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ limit: number;
1112
+ active?: boolean | undefined;
1113
+ cursor?: string | undefined;
1114
+ }, {
1115
+ active?: boolean | undefined;
1116
+ limit?: number | undefined;
1117
+ cursor?: string | undefined;
1118
+ }>;
1119
+ export declare const webhookListDeliveries: z.ZodObject<{
1120
+ endpoint_id: z.ZodOptional<z.ZodString>;
1121
+ status: z.ZodOptional<z.ZodEnum<["pending", "success", "failed"]>>;
1122
+ limit: z.ZodDefault<z.ZodNumber>;
1123
+ cursor: z.ZodOptional<z.ZodString>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ limit: number;
1126
+ status?: "pending" | "success" | "failed" | undefined;
1127
+ cursor?: string | undefined;
1128
+ endpoint_id?: string | undefined;
1129
+ }, {
1130
+ status?: "pending" | "success" | "failed" | undefined;
1131
+ limit?: number | undefined;
1132
+ cursor?: string | undefined;
1133
+ endpoint_id?: string | undefined;
1134
+ }>;
1135
+ export declare const emailCreate: z.ZodObject<{
1136
+ contact_id: z.ZodOptional<z.ZodString>;
1137
+ account_id: z.ZodOptional<z.ZodString>;
1138
+ opportunity_id: z.ZodOptional<z.ZodString>;
1139
+ use_case_id: z.ZodOptional<z.ZodString>;
1140
+ subject: z.ZodString;
1141
+ body_html: z.ZodOptional<z.ZodString>;
1142
+ body_text: z.ZodOptional<z.ZodString>;
1143
+ to_address: z.ZodString;
1144
+ require_approval: z.ZodDefault<z.ZodBoolean>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ subject: string;
1147
+ to_address: string;
1148
+ require_approval: boolean;
1149
+ account_id?: string | undefined;
1150
+ contact_id?: string | undefined;
1151
+ opportunity_id?: string | undefined;
1152
+ use_case_id?: string | undefined;
1153
+ body_html?: string | undefined;
1154
+ body_text?: string | undefined;
1155
+ }, {
1156
+ subject: string;
1157
+ to_address: string;
1158
+ account_id?: string | undefined;
1159
+ contact_id?: string | undefined;
1160
+ opportunity_id?: string | undefined;
1161
+ use_case_id?: string | undefined;
1162
+ body_html?: string | undefined;
1163
+ body_text?: string | undefined;
1164
+ require_approval?: boolean | undefined;
1165
+ }>;
1166
+ export declare const emailGet: z.ZodObject<{
1167
+ id: z.ZodString;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ id: string;
1170
+ }, {
1171
+ id: string;
1172
+ }>;
1173
+ export declare const emailSearch: z.ZodObject<{
1174
+ contact_id: z.ZodOptional<z.ZodString>;
1175
+ status: z.ZodOptional<z.ZodEnum<["draft", "pending_approval", "approved", "sending", "sent", "failed", "rejected"]>>;
1176
+ limit: z.ZodDefault<z.ZodNumber>;
1177
+ cursor: z.ZodOptional<z.ZodString>;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ limit: number;
1180
+ status?: "approved" | "rejected" | "failed" | "draft" | "pending_approval" | "sending" | "sent" | undefined;
1181
+ cursor?: string | undefined;
1182
+ contact_id?: string | undefined;
1183
+ }, {
1184
+ status?: "approved" | "rejected" | "failed" | "draft" | "pending_approval" | "sending" | "sent" | undefined;
1185
+ limit?: number | undefined;
1186
+ cursor?: string | undefined;
1187
+ contact_id?: string | undefined;
1188
+ }>;
1189
+ export declare const emailSequenceCreate: z.ZodObject<{
1190
+ name: z.ZodString;
1191
+ description: z.ZodOptional<z.ZodString>;
1192
+ steps: z.ZodArray<z.ZodObject<{
1193
+ delay_days: z.ZodNumber;
1194
+ subject: z.ZodString;
1195
+ body_html: z.ZodOptional<z.ZodString>;
1196
+ body_text: z.ZodOptional<z.ZodString>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ subject: string;
1199
+ delay_days: number;
1200
+ body_html?: string | undefined;
1201
+ body_text?: string | undefined;
1202
+ }, {
1203
+ subject: string;
1204
+ delay_days: number;
1205
+ body_html?: string | undefined;
1206
+ body_text?: string | undefined;
1207
+ }>, "many">;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ name: string;
1210
+ steps: {
1211
+ subject: string;
1212
+ delay_days: number;
1213
+ body_html?: string | undefined;
1214
+ body_text?: string | undefined;
1215
+ }[];
1216
+ description?: string | undefined;
1217
+ }, {
1218
+ name: string;
1219
+ steps: {
1220
+ subject: string;
1221
+ delay_days: number;
1222
+ body_html?: string | undefined;
1223
+ body_text?: string | undefined;
1224
+ }[];
1225
+ description?: string | undefined;
1226
+ }>;
1227
+ export declare const emailSequenceEnroll: z.ZodObject<{
1228
+ sequence_id: z.ZodString;
1229
+ contact_id: z.ZodString;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ contact_id: string;
1232
+ sequence_id: string;
1233
+ }, {
1234
+ contact_id: string;
1235
+ sequence_id: string;
1236
+ }>;
1237
+ export declare const customFieldCreate: z.ZodObject<{
1238
+ object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1239
+ field_name: z.ZodString;
1240
+ field_type: z.ZodEnum<["text", "number", "boolean", "date", "select", "multi_select"]>;
1241
+ label: z.ZodString;
1242
+ description: z.ZodOptional<z.ZodString>;
1243
+ required: z.ZodDefault<z.ZodBoolean>;
1244
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1245
+ default_value: z.ZodOptional<z.ZodUnknown>;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1248
+ label: string;
1249
+ field_name: string;
1250
+ field_type: "number" | "boolean" | "text" | "date" | "select" | "multi_select";
1251
+ required: boolean;
1252
+ options?: string[] | undefined;
1253
+ description?: string | undefined;
1254
+ default_value?: unknown;
1255
+ }, {
1256
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1257
+ label: string;
1258
+ field_name: string;
1259
+ field_type: "number" | "boolean" | "text" | "date" | "select" | "multi_select";
1260
+ options?: string[] | undefined;
1261
+ description?: string | undefined;
1262
+ required?: boolean | undefined;
1263
+ default_value?: unknown;
1264
+ }>;
1265
+ export declare const customFieldUpdate: z.ZodObject<{
1266
+ id: z.ZodString;
1267
+ patch: z.ZodObject<{
1268
+ label: z.ZodOptional<z.ZodString>;
1269
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1270
+ required: z.ZodOptional<z.ZodBoolean>;
1271
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1272
+ default_value: z.ZodOptional<z.ZodUnknown>;
1273
+ sort_order: z.ZodOptional<z.ZodNumber>;
1274
+ }, "strip", z.ZodTypeAny, {
1275
+ options?: string[] | undefined;
1276
+ description?: string | null | undefined;
1277
+ label?: string | undefined;
1278
+ required?: boolean | undefined;
1279
+ default_value?: unknown;
1280
+ sort_order?: number | undefined;
1281
+ }, {
1282
+ options?: string[] | undefined;
1283
+ description?: string | null | undefined;
1284
+ label?: string | undefined;
1285
+ required?: boolean | undefined;
1286
+ default_value?: unknown;
1287
+ sort_order?: number | undefined;
1288
+ }>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ id: string;
1291
+ patch: {
1292
+ options?: string[] | undefined;
1293
+ description?: string | null | undefined;
1294
+ label?: string | undefined;
1295
+ required?: boolean | undefined;
1296
+ default_value?: unknown;
1297
+ sort_order?: number | undefined;
1298
+ };
1299
+ }, {
1300
+ id: string;
1301
+ patch: {
1302
+ options?: string[] | undefined;
1303
+ description?: string | null | undefined;
1304
+ label?: string | undefined;
1305
+ required?: boolean | undefined;
1306
+ default_value?: unknown;
1307
+ sort_order?: number | undefined;
1308
+ };
1309
+ }>;
1310
+ export declare const customFieldDelete: z.ZodObject<{
1311
+ id: z.ZodString;
1312
+ }, "strip", z.ZodTypeAny, {
1313
+ id: string;
1314
+ }, {
1315
+ id: string;
1316
+ }>;
1317
+ export declare const customFieldList: z.ZodObject<{
1318
+ object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1321
+ }, {
1322
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1323
+ }>;
1324
+ export declare const bulkImport: z.ZodObject<{
1325
+ object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1326
+ records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1329
+ records: Record<string, unknown>[];
1330
+ }, {
1331
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1332
+ records: Record<string, unknown>[];
1333
+ }>;
1334
+ export declare const bulkExport: z.ZodObject<{
1335
+ object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1336
+ filters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1339
+ filters: Record<string, unknown>;
1340
+ }, {
1341
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1342
+ filters?: Record<string, unknown> | undefined;
1343
+ }>;
1344
+ export declare const bulkJobGet: z.ZodObject<{
1345
+ id: z.ZodString;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ id: string;
1348
+ }, {
1349
+ id: string;
1350
+ }>;
1351
+ export declare const bulkJobList: z.ZodObject<{
1352
+ status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
1353
+ limit: z.ZodDefault<z.ZodNumber>;
1354
+ cursor: z.ZodOptional<z.ZodString>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ limit: number;
1357
+ status?: "pending" | "failed" | "completed" | "processing" | undefined;
1358
+ cursor?: string | undefined;
1359
+ }, {
1360
+ status?: "pending" | "failed" | "completed" | "processing" | undefined;
1361
+ limit?: number | undefined;
1362
+ cursor?: string | undefined;
1363
+ }>;
1364
+ export declare const noteCreate: z.ZodObject<{
1365
+ object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1366
+ object_id: z.ZodString;
1367
+ parent_id: z.ZodOptional<z.ZodString>;
1368
+ body: z.ZodString;
1369
+ visibility: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
1370
+ mentions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1371
+ pinned: z.ZodDefault<z.ZodBoolean>;
1372
+ }, "strip", z.ZodTypeAny, {
1373
+ body: string;
1374
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1375
+ object_id: string;
1376
+ visibility: "internal" | "external";
1377
+ mentions: string[];
1378
+ pinned: boolean;
1379
+ parent_id?: string | undefined;
1380
+ }, {
1381
+ body: string;
1382
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1383
+ object_id: string;
1384
+ parent_id?: string | undefined;
1385
+ visibility?: "internal" | "external" | undefined;
1386
+ mentions?: string[] | undefined;
1387
+ pinned?: boolean | undefined;
1388
+ }>;
1389
+ export declare const noteUpdate: z.ZodObject<{
1390
+ id: z.ZodString;
1391
+ patch: z.ZodObject<{
1392
+ body: z.ZodOptional<z.ZodString>;
1393
+ visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
1394
+ pinned: z.ZodOptional<z.ZodBoolean>;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ body?: string | undefined;
1397
+ visibility?: "internal" | "external" | undefined;
1398
+ pinned?: boolean | undefined;
1399
+ }, {
1400
+ body?: string | undefined;
1401
+ visibility?: "internal" | "external" | undefined;
1402
+ pinned?: boolean | undefined;
1403
+ }>;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ id: string;
1406
+ patch: {
1407
+ body?: string | undefined;
1408
+ visibility?: "internal" | "external" | undefined;
1409
+ pinned?: boolean | undefined;
1410
+ };
1411
+ }, {
1412
+ id: string;
1413
+ patch: {
1414
+ body?: string | undefined;
1415
+ visibility?: "internal" | "external" | undefined;
1416
+ pinned?: boolean | undefined;
1417
+ };
1418
+ }>;
1419
+ export declare const noteGet: z.ZodObject<{
1420
+ id: z.ZodString;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ id: string;
1423
+ }, {
1424
+ id: string;
1425
+ }>;
1426
+ export declare const noteDelete: z.ZodObject<{
1427
+ id: z.ZodString;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ id: string;
1430
+ }, {
1431
+ id: string;
1432
+ }>;
1433
+ export declare const noteList: z.ZodObject<{
1434
+ object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
1435
+ object_id: z.ZodString;
1436
+ visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
1437
+ pinned: z.ZodOptional<z.ZodBoolean>;
1438
+ limit: z.ZodDefault<z.ZodNumber>;
1439
+ cursor: z.ZodOptional<z.ZodString>;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ limit: number;
1442
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1443
+ object_id: string;
1444
+ cursor?: string | undefined;
1445
+ visibility?: "internal" | "external" | undefined;
1446
+ pinned?: boolean | undefined;
1447
+ }, {
1448
+ object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
1449
+ object_id: string;
1450
+ limit?: number | undefined;
1451
+ cursor?: string | undefined;
1452
+ visibility?: "internal" | "external" | undefined;
1453
+ pinned?: boolean | undefined;
1454
+ }>;
1455
+ export declare const workflowCreate: z.ZodObject<{
1456
+ name: z.ZodString;
1457
+ description: z.ZodOptional<z.ZodString>;
1458
+ trigger_event: z.ZodString;
1459
+ trigger_filter: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1460
+ actions: z.ZodArray<z.ZodObject<{
1461
+ type: z.ZodEnum<["send_notification", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_note", "webhook"]>;
1462
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1463
+ }, "strip", z.ZodTypeAny, {
1464
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1465
+ config: Record<string, unknown>;
1466
+ }, {
1467
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1468
+ config: Record<string, unknown>;
1469
+ }>, "many">;
1470
+ is_active: z.ZodDefault<z.ZodBoolean>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ name: string;
1473
+ trigger_event: string;
1474
+ trigger_filter: Record<string, unknown>;
1475
+ actions: {
1476
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1477
+ config: Record<string, unknown>;
1478
+ }[];
1479
+ is_active: boolean;
1480
+ description?: string | undefined;
1481
+ }, {
1482
+ name: string;
1483
+ trigger_event: string;
1484
+ actions: {
1485
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1486
+ config: Record<string, unknown>;
1487
+ }[];
1488
+ description?: string | undefined;
1489
+ trigger_filter?: Record<string, unknown> | undefined;
1490
+ is_active?: boolean | undefined;
1491
+ }>;
1492
+ export declare const workflowUpdate: z.ZodObject<{
1493
+ id: z.ZodString;
1494
+ patch: z.ZodObject<{
1495
+ name: z.ZodOptional<z.ZodString>;
1496
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ trigger_event: z.ZodOptional<z.ZodString>;
1498
+ trigger_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1499
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1500
+ type: z.ZodEnum<["send_notification", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_note", "webhook"]>;
1501
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1504
+ config: Record<string, unknown>;
1505
+ }, {
1506
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1507
+ config: Record<string, unknown>;
1508
+ }>, "many">>;
1509
+ is_active: z.ZodOptional<z.ZodBoolean>;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ name?: string | undefined;
1512
+ description?: string | null | undefined;
1513
+ trigger_event?: string | undefined;
1514
+ trigger_filter?: Record<string, unknown> | undefined;
1515
+ actions?: {
1516
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1517
+ config: Record<string, unknown>;
1518
+ }[] | undefined;
1519
+ is_active?: boolean | undefined;
1520
+ }, {
1521
+ name?: string | undefined;
1522
+ description?: string | null | undefined;
1523
+ trigger_event?: string | undefined;
1524
+ trigger_filter?: Record<string, unknown> | undefined;
1525
+ actions?: {
1526
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1527
+ config: Record<string, unknown>;
1528
+ }[] | undefined;
1529
+ is_active?: boolean | undefined;
1530
+ }>;
1531
+ }, "strip", z.ZodTypeAny, {
1532
+ id: string;
1533
+ patch: {
1534
+ name?: string | undefined;
1535
+ description?: string | null | undefined;
1536
+ trigger_event?: string | undefined;
1537
+ trigger_filter?: Record<string, unknown> | undefined;
1538
+ actions?: {
1539
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1540
+ config: Record<string, unknown>;
1541
+ }[] | undefined;
1542
+ is_active?: boolean | undefined;
1543
+ };
1544
+ }, {
1545
+ id: string;
1546
+ patch: {
1547
+ name?: string | undefined;
1548
+ description?: string | null | undefined;
1549
+ trigger_event?: string | undefined;
1550
+ trigger_filter?: Record<string, unknown> | undefined;
1551
+ actions?: {
1552
+ type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_note" | "webhook";
1553
+ config: Record<string, unknown>;
1554
+ }[] | undefined;
1555
+ is_active?: boolean | undefined;
1556
+ };
1557
+ }>;
1558
+ export declare const workflowGet: z.ZodObject<{
1559
+ id: z.ZodString;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ id: string;
1562
+ }, {
1563
+ id: string;
1564
+ }>;
1565
+ export declare const workflowDelete: z.ZodObject<{
1566
+ id: z.ZodString;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ id: string;
1569
+ }, {
1570
+ id: string;
1571
+ }>;
1572
+ export declare const workflowList: z.ZodObject<{
1573
+ trigger_event: z.ZodOptional<z.ZodString>;
1574
+ is_active: z.ZodOptional<z.ZodBoolean>;
1575
+ limit: z.ZodDefault<z.ZodNumber>;
1576
+ cursor: z.ZodOptional<z.ZodString>;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ limit: number;
1579
+ cursor?: string | undefined;
1580
+ trigger_event?: string | undefined;
1581
+ is_active?: boolean | undefined;
1582
+ }, {
1583
+ limit?: number | undefined;
1584
+ cursor?: string | undefined;
1585
+ trigger_event?: string | undefined;
1586
+ is_active?: boolean | undefined;
1587
+ }>;
1588
+ export declare const workflowRunList: z.ZodObject<{
1589
+ workflow_id: z.ZodString;
1590
+ status: z.ZodOptional<z.ZodEnum<["running", "completed", "failed"]>>;
1591
+ limit: z.ZodDefault<z.ZodNumber>;
1592
+ cursor: z.ZodOptional<z.ZodString>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ limit: number;
1595
+ workflow_id: string;
1596
+ status?: "failed" | "completed" | "running" | undefined;
1597
+ cursor?: string | undefined;
1598
+ }, {
1599
+ workflow_id: string;
1600
+ status?: "failed" | "completed" | "running" | undefined;
1601
+ limit?: number | undefined;
1602
+ cursor?: string | undefined;
1603
+ }>;
1604
+ export declare const actorType: z.ZodEnum<["human", "agent"]>;
1605
+ export declare const assignmentStatus: z.ZodEnum<["pending", "accepted", "in_progress", "blocked", "completed", "declined", "cancelled"]>;
1606
+ export declare const assignmentPriority: z.ZodEnum<["low", "normal", "high", "urgent"]>;
1607
+ export declare const activityTypeCategory: z.ZodEnum<["outreach", "meeting", "proposal", "contract", "internal", "lifecycle", "handoff"]>;
1608
+ export declare const activityTypeRegistryAdd: z.ZodObject<{
1609
+ type_name: z.ZodString;
1610
+ label: z.ZodString;
1611
+ description: z.ZodOptional<z.ZodString>;
1612
+ category: z.ZodEnum<["outreach", "meeting", "proposal", "contract", "internal", "lifecycle", "handoff"]>;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ label: string;
1615
+ type_name: string;
1616
+ category: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff";
1617
+ description?: string | undefined;
1618
+ }, {
1619
+ label: string;
1620
+ type_name: string;
1621
+ category: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff";
1622
+ description?: string | undefined;
1623
+ }>;
1624
+ export declare const activityTypeRegistryRemove: z.ZodObject<{
1625
+ type_name: z.ZodString;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ type_name: string;
1628
+ }, {
1629
+ type_name: string;
1630
+ }>;
1631
+ export declare const activityTypeRegistryList: z.ZodObject<{
1632
+ category: z.ZodOptional<z.ZodEnum<["outreach", "meeting", "proposal", "contract", "internal", "lifecycle", "handoff"]>>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ category?: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff" | undefined;
1635
+ }, {
1636
+ category?: "proposal" | "meeting" | "internal" | "outreach" | "contract" | "lifecycle" | "handoff" | undefined;
1637
+ }>;
1638
+ export declare const contextTypeRegistryAdd: z.ZodObject<{
1639
+ type_name: z.ZodString;
1640
+ label: z.ZodString;
1641
+ description: z.ZodOptional<z.ZodString>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ label: string;
1644
+ type_name: string;
1645
+ description?: string | undefined;
1646
+ }, {
1647
+ label: string;
1648
+ type_name: string;
1649
+ description?: string | undefined;
1650
+ }>;
1651
+ export declare const contextTypeRegistryRemove: z.ZodObject<{
1652
+ type_name: z.ZodString;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ type_name: string;
1655
+ }, {
1656
+ type_name: string;
1657
+ }>;
1658
+ export declare const contextTypeRegistryList: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1659
+ export declare const briefingGet: z.ZodObject<{
1660
+ subject_type: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
1661
+ subject_id: z.ZodString;
1662
+ since: z.ZodOptional<z.ZodString>;
1663
+ context_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1664
+ include_stale: z.ZodDefault<z.ZodBoolean>;
1665
+ format: z.ZodDefault<z.ZodEnum<["json", "text"]>>;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ subject_type: "contact" | "account" | "opportunity" | "use_case";
1668
+ subject_id: string;
1669
+ include_stale: boolean;
1670
+ format: "text" | "json";
1671
+ since?: string | undefined;
1672
+ context_types?: string[] | undefined;
1673
+ }, {
1674
+ subject_type: "contact" | "account" | "opportunity" | "use_case";
1675
+ subject_id: string;
1676
+ since?: string | undefined;
1677
+ context_types?: string[] | undefined;
1678
+ include_stale?: boolean | undefined;
1679
+ format?: "text" | "json" | undefined;
1680
+ }>;
1681
+ export declare const contextSearch: z.ZodObject<{
1682
+ query: z.ZodString;
1683
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
1684
+ subject_id: z.ZodOptional<z.ZodString>;
1685
+ context_type: z.ZodOptional<z.ZodString>;
1686
+ tag: z.ZodOptional<z.ZodString>;
1687
+ current_only: z.ZodDefault<z.ZodBoolean>;
1688
+ limit: z.ZodDefault<z.ZodNumber>;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ query: string;
1691
+ limit: number;
1692
+ current_only: boolean;
1693
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1694
+ subject_id?: string | undefined;
1695
+ context_type?: string | undefined;
1696
+ tag?: string | undefined;
1697
+ }, {
1698
+ query: string;
1699
+ limit?: number | undefined;
1700
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1701
+ subject_id?: string | undefined;
1702
+ context_type?: string | undefined;
1703
+ tag?: string | undefined;
1704
+ current_only?: boolean | undefined;
1705
+ }>;
1706
+ export declare const contextReview: z.ZodObject<{
1707
+ id: z.ZodString;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ id: string;
1710
+ }, {
1711
+ id: string;
1712
+ }>;
1713
+ export declare const contextStaleList: z.ZodObject<{
1714
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
1715
+ subject_id: z.ZodOptional<z.ZodString>;
1716
+ limit: z.ZodDefault<z.ZodNumber>;
1717
+ }, "strip", z.ZodTypeAny, {
1718
+ limit: number;
1719
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1720
+ subject_id?: string | undefined;
1721
+ }, {
1722
+ limit?: number | undefined;
1723
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1724
+ subject_id?: string | undefined;
1725
+ }>;
1726
+ export declare const actorCreate: z.ZodObject<{
1727
+ actor_type: z.ZodEnum<["human", "agent"]>;
1728
+ display_name: z.ZodString;
1729
+ email: z.ZodOptional<z.ZodString>;
1730
+ phone: z.ZodOptional<z.ZodString>;
1731
+ user_id: z.ZodOptional<z.ZodString>;
1732
+ role: z.ZodOptional<z.ZodString>;
1733
+ agent_identifier: z.ZodOptional<z.ZodString>;
1734
+ agent_model: z.ZodOptional<z.ZodString>;
1735
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1736
+ }, "strip", z.ZodTypeAny, {
1737
+ actor_type: "agent" | "human";
1738
+ display_name: string;
1739
+ metadata: Record<string, unknown>;
1740
+ email?: string | undefined;
1741
+ phone?: string | undefined;
1742
+ role?: string | undefined;
1743
+ user_id?: string | undefined;
1744
+ agent_identifier?: string | undefined;
1745
+ agent_model?: string | undefined;
1746
+ }, {
1747
+ actor_type: "agent" | "human";
1748
+ display_name: string;
1749
+ email?: string | undefined;
1750
+ phone?: string | undefined;
1751
+ role?: string | undefined;
1752
+ user_id?: string | undefined;
1753
+ agent_identifier?: string | undefined;
1754
+ agent_model?: string | undefined;
1755
+ metadata?: Record<string, unknown> | undefined;
1756
+ }>;
1757
+ export declare const actorUpdate: z.ZodObject<{
1758
+ id: z.ZodString;
1759
+ patch: z.ZodObject<{
1760
+ display_name: z.ZodOptional<z.ZodString>;
1761
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1762
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1763
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1764
+ agent_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1765
+ agent_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1766
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1767
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1768
+ is_active: z.ZodOptional<z.ZodBoolean>;
1769
+ }, "strip", z.ZodTypeAny, {
1770
+ email?: string | null | undefined;
1771
+ phone?: string | null | undefined;
1772
+ scopes?: string[] | undefined;
1773
+ role?: string | null | undefined;
1774
+ is_active?: boolean | undefined;
1775
+ display_name?: string | undefined;
1776
+ agent_identifier?: string | null | undefined;
1777
+ agent_model?: string | null | undefined;
1778
+ metadata?: Record<string, unknown> | undefined;
1779
+ }, {
1780
+ email?: string | null | undefined;
1781
+ phone?: string | null | undefined;
1782
+ scopes?: string[] | undefined;
1783
+ role?: string | null | undefined;
1784
+ is_active?: boolean | undefined;
1785
+ display_name?: string | undefined;
1786
+ agent_identifier?: string | null | undefined;
1787
+ agent_model?: string | null | undefined;
1788
+ metadata?: Record<string, unknown> | undefined;
1789
+ }>;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ id: string;
1792
+ patch: {
1793
+ email?: string | null | undefined;
1794
+ phone?: string | null | undefined;
1795
+ scopes?: string[] | undefined;
1796
+ role?: string | null | undefined;
1797
+ is_active?: boolean | undefined;
1798
+ display_name?: string | undefined;
1799
+ agent_identifier?: string | null | undefined;
1800
+ agent_model?: string | null | undefined;
1801
+ metadata?: Record<string, unknown> | undefined;
1802
+ };
1803
+ }, {
1804
+ id: string;
1805
+ patch: {
1806
+ email?: string | null | undefined;
1807
+ phone?: string | null | undefined;
1808
+ scopes?: string[] | undefined;
1809
+ role?: string | null | undefined;
1810
+ is_active?: boolean | undefined;
1811
+ display_name?: string | undefined;
1812
+ agent_identifier?: string | null | undefined;
1813
+ agent_model?: string | null | undefined;
1814
+ metadata?: Record<string, unknown> | undefined;
1815
+ };
1816
+ }>;
1817
+ export declare const actorGet: z.ZodObject<{
1818
+ id: z.ZodString;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ id: string;
1821
+ }, {
1822
+ id: string;
1823
+ }>;
1824
+ export declare const actorSearch: z.ZodObject<{
1825
+ actor_type: z.ZodOptional<z.ZodEnum<["human", "agent"]>>;
1826
+ query: z.ZodOptional<z.ZodString>;
1827
+ is_active: z.ZodOptional<z.ZodBoolean>;
1828
+ limit: z.ZodDefault<z.ZodNumber>;
1829
+ cursor: z.ZodOptional<z.ZodString>;
1830
+ }, "strip", z.ZodTypeAny, {
1831
+ limit: number;
1832
+ query?: string | undefined;
1833
+ cursor?: string | undefined;
1834
+ is_active?: boolean | undefined;
1835
+ actor_type?: "agent" | "human" | undefined;
1836
+ }, {
1837
+ query?: string | undefined;
1838
+ limit?: number | undefined;
1839
+ cursor?: string | undefined;
1840
+ is_active?: boolean | undefined;
1841
+ actor_type?: "agent" | "human" | undefined;
1842
+ }>;
1843
+ export declare const assignmentCreate: z.ZodObject<{
1844
+ title: z.ZodString;
1845
+ description: z.ZodOptional<z.ZodString>;
1846
+ assignment_type: z.ZodString;
1847
+ assigned_to: z.ZodString;
1848
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
1849
+ subject_id: z.ZodOptional<z.ZodString>;
1850
+ priority: z.ZodDefault<z.ZodEnum<["low", "normal", "high", "urgent"]>>;
1851
+ due_at: z.ZodOptional<z.ZodString>;
1852
+ context: z.ZodOptional<z.ZodString>;
1853
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ title: string;
1856
+ metadata: Record<string, unknown>;
1857
+ assignment_type: string;
1858
+ assigned_to: string;
1859
+ priority: "low" | "normal" | "high" | "urgent";
1860
+ description?: string | undefined;
1861
+ due_at?: string | undefined;
1862
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1863
+ subject_id?: string | undefined;
1864
+ context?: string | undefined;
1865
+ }, {
1866
+ title: string;
1867
+ assignment_type: string;
1868
+ assigned_to: string;
1869
+ description?: string | undefined;
1870
+ due_at?: string | undefined;
1871
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1872
+ subject_id?: string | undefined;
1873
+ metadata?: Record<string, unknown> | undefined;
1874
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
1875
+ context?: string | undefined;
1876
+ }>;
1877
+ export declare const assignmentUpdate: z.ZodObject<{
1878
+ id: z.ZodString;
1879
+ patch: z.ZodObject<{
1880
+ title: z.ZodOptional<z.ZodString>;
1881
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1882
+ priority: z.ZodOptional<z.ZodEnum<["low", "normal", "high", "urgent"]>>;
1883
+ due_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1884
+ status: z.ZodOptional<z.ZodEnum<["pending", "accepted", "in_progress", "blocked", "completed", "declined", "cancelled"]>>;
1885
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1886
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1889
+ title?: string | undefined;
1890
+ description?: string | null | undefined;
1891
+ due_at?: string | null | undefined;
1892
+ metadata?: Record<string, unknown> | undefined;
1893
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
1894
+ context?: string | null | undefined;
1895
+ }, {
1896
+ status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1897
+ title?: string | undefined;
1898
+ description?: string | null | undefined;
1899
+ due_at?: string | null | undefined;
1900
+ metadata?: Record<string, unknown> | undefined;
1901
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
1902
+ context?: string | null | undefined;
1903
+ }>;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ id: string;
1906
+ patch: {
1907
+ status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1908
+ title?: string | undefined;
1909
+ description?: string | null | undefined;
1910
+ due_at?: string | null | undefined;
1911
+ metadata?: Record<string, unknown> | undefined;
1912
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
1913
+ context?: string | null | undefined;
1914
+ };
1915
+ }, {
1916
+ id: string;
1917
+ patch: {
1918
+ status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1919
+ title?: string | undefined;
1920
+ description?: string | null | undefined;
1921
+ due_at?: string | null | undefined;
1922
+ metadata?: Record<string, unknown> | undefined;
1923
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
1924
+ context?: string | null | undefined;
1925
+ };
1926
+ }>;
1927
+ export declare const assignmentGet: z.ZodObject<{
1928
+ id: z.ZodString;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ id: string;
1931
+ }, {
1932
+ id: string;
1933
+ }>;
1934
+ export declare const assignmentSearch: z.ZodObject<{
1935
+ assigned_to: z.ZodOptional<z.ZodString>;
1936
+ assigned_by: z.ZodOptional<z.ZodString>;
1937
+ status: z.ZodOptional<z.ZodEnum<["pending", "accepted", "in_progress", "blocked", "completed", "declined", "cancelled"]>>;
1938
+ priority: z.ZodOptional<z.ZodEnum<["low", "normal", "high", "urgent"]>>;
1939
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
1940
+ subject_id: z.ZodOptional<z.ZodString>;
1941
+ limit: z.ZodDefault<z.ZodNumber>;
1942
+ cursor: z.ZodOptional<z.ZodString>;
1943
+ }, "strip", z.ZodTypeAny, {
1944
+ limit: number;
1945
+ status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1946
+ cursor?: string | undefined;
1947
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1948
+ subject_id?: string | undefined;
1949
+ assigned_to?: string | undefined;
1950
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
1951
+ assigned_by?: string | undefined;
1952
+ }, {
1953
+ status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
1954
+ limit?: number | undefined;
1955
+ cursor?: string | undefined;
1956
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
1957
+ subject_id?: string | undefined;
1958
+ assigned_to?: string | undefined;
1959
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
1960
+ assigned_by?: string | undefined;
1961
+ }>;
1962
+ export declare const assignmentAccept: z.ZodObject<{
1963
+ id: z.ZodString;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ id: string;
1966
+ }, {
1967
+ id: string;
1968
+ }>;
1969
+ export declare const assignmentComplete: z.ZodObject<{
1970
+ id: z.ZodString;
1971
+ completed_by_activity_id: z.ZodOptional<z.ZodString>;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ id: string;
1974
+ completed_by_activity_id?: string | undefined;
1975
+ }, {
1976
+ id: string;
1977
+ completed_by_activity_id?: string | undefined;
1978
+ }>;
1979
+ export declare const assignmentDecline: z.ZodObject<{
1980
+ id: z.ZodString;
1981
+ reason: z.ZodOptional<z.ZodString>;
1982
+ }, "strip", z.ZodTypeAny, {
1983
+ id: string;
1984
+ reason?: string | undefined;
1985
+ }, {
1986
+ id: string;
1987
+ reason?: string | undefined;
1988
+ }>;
1989
+ export declare const assignmentStart: z.ZodObject<{
1990
+ id: z.ZodString;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ id: string;
1993
+ }, {
1994
+ id: string;
1995
+ }>;
1996
+ export declare const assignmentBlock: z.ZodObject<{
1997
+ id: z.ZodString;
1998
+ reason: z.ZodOptional<z.ZodString>;
1999
+ }, "strip", z.ZodTypeAny, {
2000
+ id: string;
2001
+ reason?: string | undefined;
2002
+ }, {
2003
+ id: string;
2004
+ reason?: string | undefined;
2005
+ }>;
2006
+ export declare const assignmentCancel: z.ZodObject<{
2007
+ id: z.ZodString;
2008
+ reason: z.ZodOptional<z.ZodString>;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ id: string;
2011
+ reason?: string | undefined;
2012
+ }, {
2013
+ id: string;
2014
+ reason?: string | undefined;
2015
+ }>;
2016
+ export declare const contextEntryCreate: z.ZodObject<{
2017
+ subject_type: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
2018
+ subject_id: z.ZodString;
2019
+ context_type: z.ZodString;
2020
+ title: z.ZodOptional<z.ZodString>;
2021
+ body: z.ZodString;
2022
+ structured_data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2023
+ confidence: z.ZodOptional<z.ZodNumber>;
2024
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2025
+ source: z.ZodOptional<z.ZodString>;
2026
+ source_ref: z.ZodOptional<z.ZodString>;
2027
+ source_activity_id: z.ZodOptional<z.ZodString>;
2028
+ valid_until: z.ZodOptional<z.ZodString>;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ tags: string[];
2031
+ body: string;
2032
+ subject_type: "contact" | "account" | "opportunity" | "use_case";
2033
+ subject_id: string;
2034
+ context_type: string;
2035
+ structured_data: Record<string, unknown>;
2036
+ title?: string | undefined;
2037
+ source?: string | undefined;
2038
+ confidence?: number | undefined;
2039
+ source_ref?: string | undefined;
2040
+ source_activity_id?: string | undefined;
2041
+ valid_until?: string | undefined;
2042
+ }, {
2043
+ body: string;
2044
+ subject_type: "contact" | "account" | "opportunity" | "use_case";
2045
+ subject_id: string;
2046
+ context_type: string;
2047
+ title?: string | undefined;
2048
+ tags?: string[] | undefined;
2049
+ source?: string | undefined;
2050
+ structured_data?: Record<string, unknown> | undefined;
2051
+ confidence?: number | undefined;
2052
+ source_ref?: string | undefined;
2053
+ source_activity_id?: string | undefined;
2054
+ valid_until?: string | undefined;
2055
+ }>;
2056
+ export declare const contextEntryGet: z.ZodObject<{
2057
+ id: z.ZodString;
2058
+ }, "strip", z.ZodTypeAny, {
2059
+ id: string;
2060
+ }, {
2061
+ id: string;
2062
+ }>;
2063
+ export declare const contextEntrySearch: z.ZodObject<{
2064
+ subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
2065
+ subject_id: z.ZodOptional<z.ZodString>;
2066
+ context_type: z.ZodOptional<z.ZodString>;
2067
+ authored_by: z.ZodOptional<z.ZodString>;
2068
+ is_current: z.ZodOptional<z.ZodBoolean>;
2069
+ query: z.ZodOptional<z.ZodString>;
2070
+ limit: z.ZodDefault<z.ZodNumber>;
2071
+ cursor: z.ZodOptional<z.ZodString>;
2072
+ }, "strip", z.ZodTypeAny, {
2073
+ limit: number;
2074
+ query?: string | undefined;
2075
+ cursor?: string | undefined;
2076
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
2077
+ subject_id?: string | undefined;
2078
+ context_type?: string | undefined;
2079
+ authored_by?: string | undefined;
2080
+ is_current?: boolean | undefined;
2081
+ }, {
2082
+ query?: string | undefined;
2083
+ limit?: number | undefined;
2084
+ cursor?: string | undefined;
2085
+ subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
2086
+ subject_id?: string | undefined;
2087
+ context_type?: string | undefined;
2088
+ authored_by?: string | undefined;
2089
+ is_current?: boolean | undefined;
2090
+ }>;
2091
+ export declare const contextEntrySupersede: z.ZodObject<{
2092
+ id: z.ZodString;
2093
+ body: z.ZodString;
2094
+ title: z.ZodOptional<z.ZodString>;
2095
+ structured_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2096
+ confidence: z.ZodOptional<z.ZodNumber>;
2097
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ id: string;
2100
+ body: string;
2101
+ title?: string | undefined;
2102
+ tags?: string[] | undefined;
2103
+ structured_data?: Record<string, unknown> | undefined;
2104
+ confidence?: number | undefined;
2105
+ }, {
2106
+ id: string;
2107
+ body: string;
2108
+ title?: string | undefined;
2109
+ tags?: string[] | undefined;
2110
+ structured_data?: Record<string, unknown> | undefined;
2111
+ confidence?: number | undefined;
2112
+ }>;
2113
+ export declare const activityGetTimeline: z.ZodObject<{
2114
+ subject_type: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
2115
+ subject_id: z.ZodString;
2116
+ limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
2117
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ limit: number;
2120
+ subject_type: "contact" | "account" | "opportunity" | "use_case";
2121
+ subject_id: string;
2122
+ types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
2123
+ }, {
2124
+ subject_type: "contact" | "account" | "opportunity" | "use_case";
2125
+ subject_id: string;
2126
+ limit?: number | undefined;
2127
+ types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
2128
+ }>;
2129
+ //# sourceMappingURL=schemas.d.ts.map