@outlit/tools 0.2.1 → 0.3.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/README.md +28 -0
- package/dist/index.cjs +129 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +154 -41
- package/dist/index.d.ts +154 -41
- package/dist/index.js +127 -42
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
type JsonSchema = {
|
|
2
2
|
readonly [key: string]: unknown;
|
|
3
3
|
};
|
|
4
|
-
declare const customerToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_list_sources", "outlit_search_customer_context", "outlit_query", "outlit_schema", "outlit_send_notification"];
|
|
5
|
-
declare const customerSourceTypes: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY"];
|
|
4
|
+
declare const customerToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_list_workspace_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_list_sources", "outlit_search_customer_context", "outlit_query", "outlit_schema", "outlit_send_notification"];
|
|
5
|
+
declare const customerSourceTypes: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "SLACK"];
|
|
6
6
|
declare const customerSourceTypeAliases: readonly ["CRM", "CRM_OPPORTUNITY"];
|
|
7
|
-
declare const customerSourceTypeInputs: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "CRM", "CRM_OPPORTUNITY"];
|
|
7
|
+
declare const customerSourceTypeInputs: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "SLACK", "CRM", "CRM_OPPORTUNITY"];
|
|
8
8
|
declare const customerToolContracts: {
|
|
9
9
|
readonly outlit_list_customers: {
|
|
10
10
|
readonly toolName: "outlit_list_customers";
|
|
11
|
+
readonly title: "List Customers";
|
|
11
12
|
readonly description: "Browse and filter customers. Use this to find customers by billing status, activity recency, revenue, or name. Returns a paginated list with summary info (MRR, last activity, status).";
|
|
12
13
|
readonly inputSchema: {
|
|
13
14
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
14
15
|
readonly type: "object";
|
|
15
16
|
readonly properties: {
|
|
17
|
+
readonly activatedSince: {
|
|
18
|
+
readonly description: "Filter customers activated at or after this ISO-8601 datetime";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly format: "date-time";
|
|
21
|
+
readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
|
|
22
|
+
};
|
|
16
23
|
readonly billingStatus: {
|
|
17
24
|
readonly description: "Filter by billing status";
|
|
18
25
|
readonly type: "string";
|
|
@@ -61,6 +68,20 @@ declare const customerToolContracts: {
|
|
|
61
68
|
readonly type: "string";
|
|
62
69
|
readonly maxLength: 500;
|
|
63
70
|
};
|
|
71
|
+
readonly ownerId: {
|
|
72
|
+
readonly description: "Filter customers by internal owner user ID";
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
readonly maxLength: 500;
|
|
75
|
+
};
|
|
76
|
+
readonly ownerEmail: {
|
|
77
|
+
readonly description: "Filter customers by internal owner email address";
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
readonly maxLength: 500;
|
|
80
|
+
};
|
|
81
|
+
readonly hasOwner: {
|
|
82
|
+
readonly description: "Filter customers by whether they have an owner";
|
|
83
|
+
readonly type: "boolean";
|
|
84
|
+
};
|
|
64
85
|
readonly limit: {
|
|
65
86
|
readonly description: "Results per page (max 1000)";
|
|
66
87
|
readonly default: 50;
|
|
@@ -90,6 +111,7 @@ declare const customerToolContracts: {
|
|
|
90
111
|
};
|
|
91
112
|
readonly outlit_list_users: {
|
|
92
113
|
readonly toolName: "outlit_list_users";
|
|
114
|
+
readonly title: "List Users";
|
|
93
115
|
readonly description: "Browse and filter users. Use this to find users by journey stage, activity recency, customer, or email/name. Returns a paginated list with activity info.";
|
|
94
116
|
readonly inputSchema: {
|
|
95
117
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -165,8 +187,63 @@ declare const customerToolContracts: {
|
|
|
165
187
|
readonly additionalProperties: false;
|
|
166
188
|
};
|
|
167
189
|
};
|
|
190
|
+
readonly outlit_list_workspace_users: {
|
|
191
|
+
readonly toolName: "outlit_list_workspace_users";
|
|
192
|
+
readonly title: "List Workspace Users";
|
|
193
|
+
readonly description: "Browse internal workspace users such as CSMs, managers, account owners, and admins. Use this to discover who owns customers before composing dynamic reports across account books.";
|
|
194
|
+
readonly inputSchema: {
|
|
195
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
196
|
+
readonly type: "object";
|
|
197
|
+
readonly properties: {
|
|
198
|
+
readonly search: {
|
|
199
|
+
readonly description: "Search internal workspace users by name, email, title, role, or territory";
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly maxLength: 500;
|
|
202
|
+
};
|
|
203
|
+
readonly role: {
|
|
204
|
+
readonly description: "Filter internal workspace users by role metadata when available";
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly maxLength: 100;
|
|
207
|
+
};
|
|
208
|
+
readonly managerEmail: {
|
|
209
|
+
readonly description: "Filter internal workspace users by manager email metadata when available";
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
readonly maxLength: 500;
|
|
212
|
+
};
|
|
213
|
+
readonly hasOwnedCustomers: {
|
|
214
|
+
readonly description: "When true, return only workspace users who own at least one customer";
|
|
215
|
+
readonly type: "boolean";
|
|
216
|
+
};
|
|
217
|
+
readonly limit: {
|
|
218
|
+
readonly description: "Results per page (max 1000)";
|
|
219
|
+
readonly default: 50;
|
|
220
|
+
readonly type: "number";
|
|
221
|
+
readonly minimum: 1;
|
|
222
|
+
readonly maximum: 1000;
|
|
223
|
+
};
|
|
224
|
+
readonly cursor: {
|
|
225
|
+
readonly description: "Pagination cursor from previous response";
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
};
|
|
228
|
+
readonly orderBy: {
|
|
229
|
+
readonly description: "Field to order workspace users by";
|
|
230
|
+
readonly default: "owned_customer_count";
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly enum: readonly ["name", "email", "owned_customer_count"];
|
|
233
|
+
};
|
|
234
|
+
readonly orderDirection: {
|
|
235
|
+
readonly description: "Sort direction";
|
|
236
|
+
readonly default: "desc";
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly enum: readonly ["asc", "desc"];
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
readonly additionalProperties: false;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
168
244
|
readonly outlit_get_customer: {
|
|
169
245
|
readonly toolName: "outlit_get_customer";
|
|
246
|
+
readonly title: "Get Customer";
|
|
170
247
|
readonly description: "Get full details for a single customer. Use this when you already know which customer you want to inspect. Optionally include related data (users, revenue, recent activity, engagement metrics).";
|
|
171
248
|
readonly inputSchema: {
|
|
172
249
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -197,6 +274,7 @@ declare const customerToolContracts: {
|
|
|
197
274
|
};
|
|
198
275
|
readonly outlit_get_timeline: {
|
|
199
276
|
readonly toolName: "outlit_get_timeline";
|
|
277
|
+
readonly title: "Get Customer Timeline";
|
|
200
278
|
readonly description: "Get the chronological activity timeline for a customer. Use this to see what happened and when — emails, calls, Slack messages, billing events, etc. Supports channel and date filtering.";
|
|
201
279
|
readonly inputSchema: {
|
|
202
280
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -207,11 +285,11 @@ declare const customerToolContracts: {
|
|
|
207
285
|
readonly description: "Customer ID or domain";
|
|
208
286
|
};
|
|
209
287
|
readonly channels: {
|
|
210
|
-
readonly description: "Filter by event channel
|
|
288
|
+
readonly description: "Filter by event channel. Use values such as PRODUCT, COMMUNICATION, MEETING, CRM, BILLING, SUPPORT, IDENTITY, DOCUMENT, or SYSTEM.";
|
|
211
289
|
readonly type: "array";
|
|
212
290
|
readonly items: {
|
|
213
291
|
readonly type: "string";
|
|
214
|
-
readonly enum: readonly ["
|
|
292
|
+
readonly enum: readonly ["PRODUCT", "COMMUNICATION", "MEETING", "CRM", "BILLING", "SUPPORT", "IDENTITY", "DOCUMENT", "SYSTEM"];
|
|
215
293
|
};
|
|
216
294
|
};
|
|
217
295
|
readonly eventTypes: {
|
|
@@ -256,6 +334,7 @@ declare const customerToolContracts: {
|
|
|
256
334
|
};
|
|
257
335
|
readonly outlit_list_facts: {
|
|
258
336
|
readonly toolName: "outlit_list_facts";
|
|
337
|
+
readonly title: "List Customer Facts";
|
|
259
338
|
readonly description: "List structured facts known about a customer. Use filters like status, sourceTypes, factTypes, factCategories, and date bounds to narrow the result set. For topic-specific retrieval, use outlit_search_customer_context instead.";
|
|
260
339
|
readonly inputSchema: {
|
|
261
340
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -278,7 +357,7 @@ declare const customerToolContracts: {
|
|
|
278
357
|
readonly type: "array";
|
|
279
358
|
readonly items: {
|
|
280
359
|
readonly type: "string";
|
|
281
|
-
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "CRM", "CRM_OPPORTUNITY"];
|
|
360
|
+
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "SLACK", "CRM", "CRM_OPPORTUNITY"];
|
|
282
361
|
};
|
|
283
362
|
};
|
|
284
363
|
readonly factTypes: {
|
|
@@ -327,6 +406,7 @@ declare const customerToolContracts: {
|
|
|
327
406
|
};
|
|
328
407
|
readonly outlit_get_fact: {
|
|
329
408
|
readonly toolName: "outlit_get_fact";
|
|
409
|
+
readonly title: "Get Customer Fact";
|
|
330
410
|
readonly description: "Get one exact fact by ID. Returns the canonical fact shape and optionally expands requested related data such as evidence.";
|
|
331
411
|
readonly inputSchema: {
|
|
332
412
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -354,6 +434,7 @@ declare const customerToolContracts: {
|
|
|
354
434
|
};
|
|
355
435
|
readonly outlit_get_source: {
|
|
356
436
|
readonly toolName: "outlit_get_source";
|
|
437
|
+
readonly title: "Get Source";
|
|
357
438
|
readonly description: "Get one exact source record by generic sourceType and sourceId. Use this when you already know the concrete underlying source you want to inspect.";
|
|
358
439
|
readonly inputSchema: {
|
|
359
440
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -361,13 +442,25 @@ declare const customerToolContracts: {
|
|
|
361
442
|
readonly properties: {
|
|
362
443
|
readonly sourceType: {
|
|
363
444
|
readonly type: "string";
|
|
364
|
-
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "CRM", "CRM_OPPORTUNITY"];
|
|
445
|
+
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "SLACK", "CRM", "CRM_OPPORTUNITY"];
|
|
365
446
|
};
|
|
366
447
|
readonly sourceId: {
|
|
367
448
|
readonly type: "string";
|
|
368
449
|
readonly minLength: 1;
|
|
369
450
|
readonly maxLength: 500;
|
|
370
451
|
};
|
|
452
|
+
readonly limit: {
|
|
453
|
+
readonly description: "Slack replies per page (default 50, maximum 100). Ignored for other source types.";
|
|
454
|
+
readonly type: "integer";
|
|
455
|
+
readonly minimum: 1;
|
|
456
|
+
readonly maximum: 100;
|
|
457
|
+
};
|
|
458
|
+
readonly cursor: {
|
|
459
|
+
readonly description: "Opaque Slack reply cursor returned by a previous exact lookup.";
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly minLength: 1;
|
|
462
|
+
readonly maxLength: 2000;
|
|
463
|
+
};
|
|
371
464
|
};
|
|
372
465
|
readonly required: readonly ["sourceType", "sourceId"];
|
|
373
466
|
readonly additionalProperties: false;
|
|
@@ -375,6 +468,7 @@ declare const customerToolContracts: {
|
|
|
375
468
|
};
|
|
376
469
|
readonly outlit_list_sources: {
|
|
377
470
|
readonly toolName: "outlit_list_sources";
|
|
471
|
+
readonly title: "List Sources";
|
|
378
472
|
readonly description: "List concrete source records deterministically. Use this instead of semantic search when you need enumerated calls, emails, calendar events, support tickets, or opportunities.";
|
|
379
473
|
readonly inputSchema: {
|
|
380
474
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -383,7 +477,7 @@ declare const customerToolContracts: {
|
|
|
383
477
|
readonly sourceType: {
|
|
384
478
|
readonly description: "Generic source type to list.";
|
|
385
479
|
readonly type: "string";
|
|
386
|
-
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "CRM", "CRM_OPPORTUNITY"];
|
|
480
|
+
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "SLACK", "CRM", "CRM_OPPORTUNITY"];
|
|
387
481
|
};
|
|
388
482
|
readonly customer: {
|
|
389
483
|
readonly description: "Customer ID, domain, or name to scope source listing.";
|
|
@@ -438,7 +532,8 @@ declare const customerToolContracts: {
|
|
|
438
532
|
};
|
|
439
533
|
readonly outlit_search_customer_context: {
|
|
440
534
|
readonly toolName: "outlit_search_customer_context";
|
|
441
|
-
readonly
|
|
535
|
+
readonly title: "Search Customer Context";
|
|
536
|
+
readonly description: "Search across all known customer context using a natural-language query. Returns ranked artifact-level discovery previews with at most two matching excerpts per source or fact. Use outlit_get_source with a returned sourceType and sourceId when you need the canonical source contents. Omit customer to search across all customers in the organization.";
|
|
442
537
|
readonly inputSchema: {
|
|
443
538
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
444
539
|
readonly type: "object";
|
|
@@ -482,7 +577,7 @@ declare const customerToolContracts: {
|
|
|
482
577
|
readonly type: "array";
|
|
483
578
|
readonly items: {
|
|
484
579
|
readonly type: "string";
|
|
485
|
-
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "CRM", "CRM_OPPORTUNITY"];
|
|
580
|
+
readonly enum: readonly ["EMAIL", "CALL", "CALENDAR_EVENT", "SUPPORT_TICKET", "OPPORTUNITY", "SLACK", "CRM", "CRM_OPPORTUNITY"];
|
|
486
581
|
};
|
|
487
582
|
};
|
|
488
583
|
};
|
|
@@ -492,6 +587,7 @@ declare const customerToolContracts: {
|
|
|
492
587
|
};
|
|
493
588
|
readonly outlit_query: {
|
|
494
589
|
readonly toolName: "outlit_query";
|
|
590
|
+
readonly title: "Run SQL Query";
|
|
495
591
|
readonly description: "Execute read-only SQL queries against your analytics views.\n\nAvailable views:\n- activity: Customer activity events (event_name, event_type, event_channel, customer_id, occurred_at, properties, ...)\n- customers: Customer attributes (customer_id, domain, name, billing_status, plan, mrr_cents, traits, ...)\n- users: User attributes (user_id, email, name, customer_id, traits, ...)\n- revenue: Revenue snapshots over time (customer_id, snapshot_date, mrr_cents, ...)\n\nAll queries are automatically filtered to your organization's data.\nOnly SELECT queries are allowed.\nProperties and traits are JSON strings; inspect schemas and examples before filtering nested values.\n\nExample queries:\n- SELECT event_name, count(*) FROM activity GROUP BY 1 ORDER BY 2 DESC LIMIT 10\n- SELECT billing_status, sum(mrr_cents)/100 as mrr FROM customers GROUP BY 1\n- SELECT * FROM activity WHERE customer_id = 'cust_123' ORDER BY occurred_at DESC LIMIT 50";
|
|
496
592
|
readonly inputSchema: {
|
|
497
593
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -515,6 +611,7 @@ declare const customerToolContracts: {
|
|
|
515
611
|
};
|
|
516
612
|
readonly outlit_schema: {
|
|
517
613
|
readonly toolName: "outlit_schema";
|
|
614
|
+
readonly title: "Get SQL Schema";
|
|
518
615
|
readonly description: "Get schemas for available analytics views.\n\nUse this to discover column names, types, and descriptions before writing SQL queries.\nReturns column definitions and example queries for each view.";
|
|
519
616
|
readonly inputSchema: {
|
|
520
617
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -531,6 +628,7 @@ declare const customerToolContracts: {
|
|
|
531
628
|
};
|
|
532
629
|
readonly outlit_send_notification: {
|
|
533
630
|
readonly toolName: "outlit_send_notification";
|
|
631
|
+
readonly title: "Send Notification";
|
|
534
632
|
readonly description: "Send or post a notification. Use only when the user explicitly asks you to send, post, or notify. Slack is the default notifier when destinations are omitted.";
|
|
535
633
|
readonly inputSchema: {
|
|
536
634
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -575,34 +673,15 @@ declare const customerToolContracts: {
|
|
|
575
673
|
readonly minLength: 1;
|
|
576
674
|
readonly maxLength: 240;
|
|
577
675
|
};
|
|
578
|
-
readonly
|
|
579
|
-
readonly description: "Optional
|
|
676
|
+
readonly destinationIds: {
|
|
677
|
+
readonly description: "Optional NotificationDestination ids. Omit to use the default notifier.";
|
|
580
678
|
readonly minItems: 1;
|
|
581
679
|
readonly maxItems: 10;
|
|
582
680
|
readonly type: "array";
|
|
583
681
|
readonly items: {
|
|
584
|
-
readonly type: "
|
|
585
|
-
readonly
|
|
586
|
-
|
|
587
|
-
readonly description: "Notification provider";
|
|
588
|
-
readonly type: "string";
|
|
589
|
-
readonly enum: readonly ["slack"];
|
|
590
|
-
};
|
|
591
|
-
readonly channelId: {
|
|
592
|
-
readonly description: "Provider-specific destination channel ID";
|
|
593
|
-
readonly type: "string";
|
|
594
|
-
readonly minLength: 1;
|
|
595
|
-
readonly maxLength: 240;
|
|
596
|
-
};
|
|
597
|
-
readonly label: {
|
|
598
|
-
readonly description: "Optional destination label";
|
|
599
|
-
readonly type: "string";
|
|
600
|
-
readonly minLength: 1;
|
|
601
|
-
readonly maxLength: 120;
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
readonly required: readonly ["provider"];
|
|
605
|
-
readonly additionalProperties: false;
|
|
682
|
+
readonly type: "string";
|
|
683
|
+
readonly format: "uuid";
|
|
684
|
+
readonly pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$";
|
|
606
685
|
};
|
|
607
686
|
};
|
|
608
687
|
};
|
|
@@ -649,17 +728,19 @@ declare const customerIncludeSections: readonly ["users", "revenue", "recentTime
|
|
|
649
728
|
declare const customerTimeframes: readonly ["7d", "14d", "30d", "90d"];
|
|
650
729
|
declare const notificationProviderValues: readonly ["slack"];
|
|
651
730
|
declare const notificationSeverityValues: readonly ["low", "medium", "high"];
|
|
652
|
-
declare const timelineChannels: readonly ["
|
|
731
|
+
declare const timelineChannels: readonly ["PRODUCT", "COMMUNICATION", "MEETING", "CRM", "BILLING", "SUPPORT", "IDENTITY", "DOCUMENT", "SYSTEM"];
|
|
653
732
|
declare const timelineTimeframes: readonly ["7d", "14d", "30d", "90d", "all"];
|
|
654
733
|
declare const userJourneyStages: readonly ["DISCOVERED", "SIGNED_UP", "ACTIVATED", "ENGAGED", "INACTIVE"];
|
|
655
734
|
declare const userListOrderFields: readonly ["last_activity_at", "first_seen_at", "email"];
|
|
735
|
+
declare const workspaceUserListOrderFields: readonly ["name", "email", "owned_customer_count"];
|
|
656
736
|
declare const schemaTables: readonly ["activity", "customers", "users", "revenue"];
|
|
657
|
-
declare const customerToolContractHash: "
|
|
737
|
+
declare const customerToolContractHash: "ce2f91d56dfb0d42b8730b03431f2a7be5399739c365360bae8102e3000f091d";
|
|
658
738
|
type CustomerToolName = (typeof customerToolNames)[number];
|
|
659
739
|
type CustomerSourceType = (typeof customerSourceTypes)[number];
|
|
660
740
|
type CustomerSourceTypeInput = (typeof customerSourceTypeInputs)[number];
|
|
661
741
|
type CustomerToolContract = {
|
|
662
742
|
toolName: CustomerToolName;
|
|
743
|
+
title: string;
|
|
663
744
|
description: string;
|
|
664
745
|
inputSchema: JsonSchema;
|
|
665
746
|
};
|
|
@@ -690,6 +771,37 @@ declare function resolveCustomerContextSearchInput(value: SearchArgsLike): {
|
|
|
690
771
|
message: string;
|
|
691
772
|
};
|
|
692
773
|
|
|
774
|
+
interface CustomerListItem {
|
|
775
|
+
id: string;
|
|
776
|
+
name: string | null;
|
|
777
|
+
domain: string | null;
|
|
778
|
+
activatedAt: string | null;
|
|
779
|
+
[key: string]: unknown;
|
|
780
|
+
}
|
|
781
|
+
interface CustomerDetail {
|
|
782
|
+
id: string;
|
|
783
|
+
name: string | null;
|
|
784
|
+
domain: string | null;
|
|
785
|
+
activatedAt: string | null;
|
|
786
|
+
[key: string]: unknown;
|
|
787
|
+
}
|
|
788
|
+
interface CustomerDetailResult {
|
|
789
|
+
customer: CustomerDetail;
|
|
790
|
+
[key: string]: unknown;
|
|
791
|
+
}
|
|
792
|
+
interface CustomerListResult {
|
|
793
|
+
items: CustomerListItem[];
|
|
794
|
+
pagination: {
|
|
795
|
+
hasMore: boolean;
|
|
796
|
+
nextCursor: string | null;
|
|
797
|
+
total?: number;
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
interface CustomerAnalyticsRow {
|
|
801
|
+
activated_at: string | null;
|
|
802
|
+
[column: string]: unknown;
|
|
803
|
+
}
|
|
804
|
+
|
|
693
805
|
declare const DEFAULT_OUTLIT_API_URL = "https://app.outlit.ai";
|
|
694
806
|
type OutlitToolsFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
695
807
|
type OutlitToolsClientOptions = {
|
|
@@ -697,17 +809,18 @@ type OutlitToolsClientOptions = {
|
|
|
697
809
|
baseUrl?: string;
|
|
698
810
|
fetch?: OutlitToolsFetch;
|
|
699
811
|
};
|
|
812
|
+
type CustomerToolResult<TToolName extends CustomerToolName> = TToolName extends "outlit_list_customers" ? CustomerListResult : TToolName extends "outlit_get_customer" ? CustomerDetailResult : unknown;
|
|
700
813
|
type OutlitToolsClient = {
|
|
701
814
|
key: string;
|
|
702
815
|
baseUrl: string;
|
|
703
|
-
callTool(toolName:
|
|
816
|
+
callTool<TToolName extends CustomerToolName>(toolName: TToolName, input?: Record<string, unknown>): Promise<CustomerToolResult<TToolName>>;
|
|
704
817
|
};
|
|
705
818
|
declare function createOutlitClient(options: OutlitToolsClientOptions): OutlitToolsClient;
|
|
706
819
|
|
|
707
820
|
declare const actionToolNames: readonly ["outlit_send_notification"];
|
|
708
|
-
declare const defaultAgentToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_search_customer_context", "outlit_send_notification"];
|
|
821
|
+
declare const defaultAgentToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_list_workspace_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_search_customer_context", "outlit_send_notification"];
|
|
709
822
|
declare const sqlToolNames: readonly ["outlit_schema", "outlit_query"];
|
|
710
|
-
declare const analyticalAgentToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_search_customer_context", "outlit_send_notification", "outlit_schema", "outlit_query"];
|
|
711
|
-
declare const allCustomerToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_list_sources", "outlit_search_customer_context", "outlit_query", "outlit_schema", "outlit_send_notification"];
|
|
823
|
+
declare const analyticalAgentToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_list_workspace_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_search_customer_context", "outlit_send_notification", "outlit_schema", "outlit_query"];
|
|
824
|
+
declare const allCustomerToolNames: readonly ["outlit_list_customers", "outlit_list_users", "outlit_list_workspace_users", "outlit_get_customer", "outlit_get_timeline", "outlit_list_facts", "outlit_get_fact", "outlit_get_source", "outlit_list_sources", "outlit_search_customer_context", "outlit_query", "outlit_schema", "outlit_send_notification"];
|
|
712
825
|
|
|
713
|
-
export { type CustomerContextSearchInput, type CustomerSourceType, type CustomerSourceTypeInput, type CustomerToolContract, type CustomerToolName, DEFAULT_OUTLIT_API_URL, type JsonSchema, type OutlitToolsClient, type OutlitToolsClientOptions, type OutlitToolsFetch, type SearchArgsLike, actionToolNames, allCustomerToolNames, analyticalAgentToolNames, createOutlitClient, customerActivityWindows, customerBillingStatuses, customerFactCategories, customerFactIncludes, customerFactStatuses, customerFactTypes, customerIncludeSections, customerListOrderFields, customerSourceTypeAliases, customerSourceTypeInputs, customerSourceTypes, customerTimeframes, customerToolContractHash, customerToolContracts, customerToolNames, defaultAgentToolNames, getCustomerToolContract, isCustomerToolName, normalizeCustomerSourceType, notificationProviderValues, notificationSeverityValues, resolveCustomerContextSearchInput, schemaTables, sqlToolNames, timelineChannels, timelineTimeframes, unsupportedCustomerFactTypes, userJourneyStages, userListOrderFields };
|
|
826
|
+
export { type CustomerAnalyticsRow, type CustomerContextSearchInput, type CustomerDetail, type CustomerDetailResult, type CustomerListItem, type CustomerListResult, type CustomerSourceType, type CustomerSourceTypeInput, type CustomerToolContract, type CustomerToolName, type CustomerToolResult, DEFAULT_OUTLIT_API_URL, type JsonSchema, type OutlitToolsClient, type OutlitToolsClientOptions, type OutlitToolsFetch, type SearchArgsLike, actionToolNames, allCustomerToolNames, analyticalAgentToolNames, createOutlitClient, customerActivityWindows, customerBillingStatuses, customerFactCategories, customerFactIncludes, customerFactStatuses, customerFactTypes, customerIncludeSections, customerListOrderFields, customerSourceTypeAliases, customerSourceTypeInputs, customerSourceTypes, customerTimeframes, customerToolContractHash, customerToolContracts, customerToolNames, defaultAgentToolNames, getCustomerToolContract, isCustomerToolName, normalizeCustomerSourceType, notificationProviderValues, notificationSeverityValues, resolveCustomerContextSearchInput, schemaTables, sqlToolNames, timelineChannels, timelineTimeframes, unsupportedCustomerFactTypes, userJourneyStages, userListOrderFields, workspaceUserListOrderFields };
|