terse-types 0.0.64 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApiRouteBuilder.d.ts +1 -0
- package/dist/ApiRoutes.json +2 -1
- package/dist/AttioRecordFlatten.d.ts +19 -0
- package/dist/AttioRecordFlatten.js +71 -0
- package/dist/OrganizationMetadata.d.ts +6 -0
- package/dist/OrganizationMetadata.js +10 -0
- package/dist/ToolDisplayUtils.js +19 -6
- package/dist/Tools.d.ts +147 -147
- package/dist/Tools.js +54 -43
- package/dist/json-schema/terse-types.schema.json +15994 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.js +11 -0
- package/package.json +1 -1
- package/dist/Events.d.ts +0 -112
- package/dist/Events.js +0 -32
- package/dist/TriggerProjections.d.ts +0 -20
- package/dist/TriggerProjections.js +0 -119
package/dist/ApiRoutes.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collapses a single Attio value entry (or nested structure) toward primitives /
|
|
3
|
+
* simple objects, matching the shape produced for generated Attio tool outputs.
|
|
4
|
+
*/
|
|
5
|
+
export declare function flattenAttioLeafValue(value: unknown): unknown;
|
|
6
|
+
/**
|
|
7
|
+
* Flattens one attribute’s raw value (often an array of interaction rows from the REST API).
|
|
8
|
+
* @param preferArray When true, keep all entries as an array; when false, use the first entry only.
|
|
9
|
+
*/
|
|
10
|
+
export declare function flattenAttioAttributeValue(rawValue: unknown, preferArray: boolean): unknown;
|
|
11
|
+
/**
|
|
12
|
+
* Flattens `record.values` from Attio’s GET record / webhook enrichment payload.
|
|
13
|
+
*/
|
|
14
|
+
export declare function flattenAttioRecordValues(values: Record<string, unknown>, isMultiValueAttribute: (attributeSlug: string) => boolean): Record<string, unknown>;
|
|
15
|
+
/**
|
|
16
|
+
* Slug-only heuristic when object attribute metadata is unavailable (e.g. Attio webhook triggers).
|
|
17
|
+
* Prefer {@link flattenAttioRecordValues} with object-aware multi-value info from codegen when possible.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isProbablyAttioMultiValueAttributeSlug(attributeSlug: string): boolean;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/** Keys Attio nests on attribute timeline entries (not the semantic payload). */
|
|
2
|
+
const ATTIO_VALUE_METADATA_KEYS = new Set([
|
|
3
|
+
"active_from",
|
|
4
|
+
"active_until",
|
|
5
|
+
"attribute_type",
|
|
6
|
+
"created_by_actor"
|
|
7
|
+
]);
|
|
8
|
+
/**
|
|
9
|
+
* Collapses a single Attio value entry (or nested structure) toward primitives /
|
|
10
|
+
* simple objects, matching the shape produced for generated Attio tool outputs.
|
|
11
|
+
*/
|
|
12
|
+
export function flattenAttioLeafValue(value) {
|
|
13
|
+
if (value === null || value === undefined)
|
|
14
|
+
return value;
|
|
15
|
+
if (Array.isArray(value))
|
|
16
|
+
return value.map(entry => flattenAttioLeafValue(entry));
|
|
17
|
+
if (typeof value !== "object")
|
|
18
|
+
return value;
|
|
19
|
+
const rawObject = value;
|
|
20
|
+
if (typeof rawObject.full_name === "string")
|
|
21
|
+
return rawObject.full_name;
|
|
22
|
+
if (typeof rawObject.email_address === "string")
|
|
23
|
+
return rawObject.email_address;
|
|
24
|
+
if (typeof rawObject.domain === "string")
|
|
25
|
+
return rawObject.domain;
|
|
26
|
+
if (typeof rawObject.phone_number === "string")
|
|
27
|
+
return rawObject.phone_number;
|
|
28
|
+
if ("value" in rawObject)
|
|
29
|
+
return flattenAttioLeafValue(rawObject.value);
|
|
30
|
+
const dataEntries = Object.entries(rawObject).filter(([key]) => !ATTIO_VALUE_METADATA_KEYS.has(key));
|
|
31
|
+
if (dataEntries.length === 0)
|
|
32
|
+
return rawObject;
|
|
33
|
+
if (dataEntries.length === 1)
|
|
34
|
+
return flattenAttioLeafValue(dataEntries[0][1]);
|
|
35
|
+
return Object.fromEntries(dataEntries.map(([key, entryValue]) => [key, flattenAttioLeafValue(entryValue)]));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Flattens one attribute’s raw value (often an array of interaction rows from the REST API).
|
|
39
|
+
* @param preferArray When true, keep all entries as an array; when false, use the first entry only.
|
|
40
|
+
*/
|
|
41
|
+
export function flattenAttioAttributeValue(rawValue, preferArray) {
|
|
42
|
+
if (!Array.isArray(rawValue))
|
|
43
|
+
return flattenAttioLeafValue(rawValue);
|
|
44
|
+
const flattened = rawValue.map(entry => flattenAttioLeafValue(entry)).filter(entry => entry !== undefined);
|
|
45
|
+
return preferArray ? flattened : flattened[0];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Flattens `record.values` from Attio’s GET record / webhook enrichment payload.
|
|
49
|
+
*/
|
|
50
|
+
export function flattenAttioRecordValues(values, isMultiValueAttribute) {
|
|
51
|
+
const flattenedValues = {};
|
|
52
|
+
for (const [attributeSlug, rawValue] of Object.entries(values)) {
|
|
53
|
+
flattenedValues[attributeSlug] = flattenAttioAttributeValue(rawValue, isMultiValueAttribute(attributeSlug));
|
|
54
|
+
}
|
|
55
|
+
return flattenedValues;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Slug-only heuristic when object attribute metadata is unavailable (e.g. Attio webhook triggers).
|
|
59
|
+
* Prefer {@link flattenAttioRecordValues} with object-aware multi-value info from codegen when possible.
|
|
60
|
+
*/
|
|
61
|
+
export function isProbablyAttioMultiValueAttributeSlug(attributeSlug) {
|
|
62
|
+
const slug = attributeSlug.toLowerCase();
|
|
63
|
+
return (slug === "email_addresses" ||
|
|
64
|
+
slug === "domains" ||
|
|
65
|
+
slug === "phone_numbers" ||
|
|
66
|
+
slug === "social_profiles" ||
|
|
67
|
+
slug === "links" ||
|
|
68
|
+
slug === "tags" ||
|
|
69
|
+
slug.endsWith("_addresses") ||
|
|
70
|
+
slug.endsWith("_ids"));
|
|
71
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const organizationMetadataSchema: z.ZodObject<{
|
|
3
|
+
stripeCustomerId: z.ZodString;
|
|
4
|
+
runExecutionBlocked: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean | undefined>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type OrganizationMetadata = z.infer<typeof organizationMetadataSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Can be serialized a string, supports deserialization
|
|
3
|
+
const booleanMetadataSchema = z
|
|
4
|
+
.union([z.boolean(), z.string()])
|
|
5
|
+
.optional()
|
|
6
|
+
.transform(value => value === true || value === "true");
|
|
7
|
+
export const organizationMetadataSchema = z.object({
|
|
8
|
+
stripeCustomerId: z.string(),
|
|
9
|
+
runExecutionBlocked: booleanMetadataSchema
|
|
10
|
+
});
|
package/dist/ToolDisplayUtils.js
CHANGED
|
@@ -541,24 +541,37 @@ const TOOL_DISPLAY_CONFIG = {
|
|
|
541
541
|
return total !== undefined ? `Loaded ${total} visit update${total !== 1 ? "s" : ""}` : "Visit details loaded";
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
|
+
listPosthogEventNames: {
|
|
545
|
+
preparing: "Listing event types",
|
|
546
|
+
executing: params => {
|
|
547
|
+
const distinctId = params?.distinctId;
|
|
548
|
+
if (distinctId)
|
|
549
|
+
return `Listing event types for ${truncate(distinctId, 30)}`;
|
|
550
|
+
return "Listing event types";
|
|
551
|
+
},
|
|
552
|
+
complete: (params, result) => {
|
|
553
|
+
const parsed = safeParseResult(result);
|
|
554
|
+
const totalEventTypes = parsed?.totalEventTypes;
|
|
555
|
+
if (totalEventTypes !== undefined)
|
|
556
|
+
return `Found ${totalEventTypes} event type${totalEventTypes !== 1 ? "s" : ""}`;
|
|
557
|
+
return "Event types listed";
|
|
558
|
+
}
|
|
559
|
+
},
|
|
544
560
|
searchPosthogEvents: {
|
|
545
561
|
preparing: "Looking through events",
|
|
546
562
|
executing: params => {
|
|
547
563
|
const eventName = params?.eventName;
|
|
548
|
-
const
|
|
564
|
+
const distinctId = params?.distinctId;
|
|
549
565
|
if (eventName)
|
|
550
566
|
return `Looking for "${truncate(eventName)}" events`;
|
|
551
|
-
if (
|
|
552
|
-
return `Looking for events from ${truncate(
|
|
567
|
+
if (distinctId)
|
|
568
|
+
return `Looking for events from ${truncate(distinctId, 30)}`;
|
|
553
569
|
return "Looking through events";
|
|
554
570
|
},
|
|
555
571
|
complete: (params, result) => {
|
|
556
572
|
const parsed = safeParseResult(result);
|
|
557
|
-
const totalEventTypes = parsed?.totalEventTypes;
|
|
558
573
|
const totalEvents = parsed?.totalEvents;
|
|
559
574
|
const eventName = params?.eventName;
|
|
560
|
-
if (totalEventTypes !== undefined)
|
|
561
|
-
return `Found ${totalEventTypes} event type${totalEventTypes !== 1 ? "s" : ""}`;
|
|
562
575
|
if (totalEvents !== undefined && eventName)
|
|
563
576
|
return `Found ${totalEvents} "${truncate(eventName, 25)}" event${totalEvents !== 1 ? "s" : ""}`;
|
|
564
577
|
if (totalEvents !== undefined)
|
package/dist/Tools.d.ts
CHANGED
|
@@ -1606,10 +1606,14 @@ export declare const posthogPropertyFilterOperatorSchema: z.ZodEnum<{
|
|
|
1606
1606
|
gte: "gte";
|
|
1607
1607
|
lte: "lte";
|
|
1608
1608
|
}>;
|
|
1609
|
+
export declare const posthogPropertyFilterTypeSchema: z.ZodEnum<{
|
|
1610
|
+
event: "event";
|
|
1611
|
+
person: "person";
|
|
1612
|
+
}>;
|
|
1609
1613
|
export declare const posthogPropertyFilterSchema: z.ZodObject<{
|
|
1610
1614
|
key: z.ZodString;
|
|
1611
1615
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1612
|
-
operator: z.
|
|
1616
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
1613
1617
|
exact: "exact";
|
|
1614
1618
|
is_not: "is_not";
|
|
1615
1619
|
icontains: "icontains";
|
|
@@ -1619,18 +1623,48 @@ export declare const posthogPropertyFilterSchema: z.ZodObject<{
|
|
|
1619
1623
|
gte: "gte";
|
|
1620
1624
|
lte: "lte";
|
|
1621
1625
|
}>>;
|
|
1626
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1627
|
+
event: "event";
|
|
1628
|
+
person: "person";
|
|
1629
|
+
}>>;
|
|
1630
|
+
}, z.core.$strip>;
|
|
1631
|
+
export type PosthogPropertyFilter = z.infer<typeof posthogPropertyFilterSchema>;
|
|
1632
|
+
export declare const listPosthogEventNamesInputSchema: z.ZodObject<{
|
|
1633
|
+
integrationId: z.ZodString;
|
|
1634
|
+
projectId: z.ZodString;
|
|
1635
|
+
customEventsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1636
|
+
distinctId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1637
|
+
propertyFilters: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1638
|
+
key: z.ZodString;
|
|
1639
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1640
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
1641
|
+
exact: "exact";
|
|
1642
|
+
is_not: "is_not";
|
|
1643
|
+
icontains: "icontains";
|
|
1644
|
+
not_icontains: "not_icontains";
|
|
1645
|
+
gt: "gt";
|
|
1646
|
+
lt: "lt";
|
|
1647
|
+
gte: "gte";
|
|
1648
|
+
lte: "lte";
|
|
1649
|
+
}>>;
|
|
1650
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1651
|
+
event: "event";
|
|
1652
|
+
person: "person";
|
|
1653
|
+
}>>;
|
|
1654
|
+
}, z.core.$strip>>, z.ZodNull]>>;
|
|
1655
|
+
dateFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1656
|
+
dateTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1622
1657
|
}, z.core.$strip>;
|
|
1623
1658
|
export declare const searchPosthogEventsInputSchema: z.ZodObject<{
|
|
1624
1659
|
integrationId: z.ZodString;
|
|
1625
1660
|
projectId: z.ZodString;
|
|
1626
|
-
countByEventNameOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1627
|
-
customEventsOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1628
|
-
userEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1629
1661
|
eventName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1662
|
+
customEventsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1663
|
+
distinctId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1630
1664
|
propertyFilters: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1631
1665
|
key: z.ZodString;
|
|
1632
1666
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1633
|
-
operator: z.
|
|
1667
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
1634
1668
|
exact: "exact";
|
|
1635
1669
|
is_not: "is_not";
|
|
1636
1670
|
icontains: "icontains";
|
|
@@ -1640,12 +1674,15 @@ export declare const searchPosthogEventsInputSchema: z.ZodObject<{
|
|
|
1640
1674
|
gte: "gte";
|
|
1641
1675
|
lte: "lte";
|
|
1642
1676
|
}>>;
|
|
1677
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1678
|
+
event: "event";
|
|
1679
|
+
person: "person";
|
|
1680
|
+
}>>;
|
|
1643
1681
|
}, z.core.$strip>>, z.ZodNull]>>;
|
|
1644
|
-
limit: z.
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
dateTo: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
1682
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1683
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1684
|
+
dateFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1685
|
+
dateTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1649
1686
|
}, z.core.$strip>;
|
|
1650
1687
|
export declare const linearCreateTicketTool: {
|
|
1651
1688
|
name: "linear_create_ticket";
|
|
@@ -3641,96 +3678,17 @@ export declare const getPosthogSessionEventsTool: {
|
|
|
3641
3678
|
message: z.ZodString;
|
|
3642
3679
|
}, z.core.$strip>;
|
|
3643
3680
|
};
|
|
3644
|
-
export declare const
|
|
3645
|
-
|
|
3646
|
-
action: z.ZodString;
|
|
3647
|
-
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
3648
|
-
target: z.ZodString;
|
|
3649
|
-
details: z.ZodString;
|
|
3650
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3651
|
-
step_id: z.ZodOptional<z.ZodString>;
|
|
3652
|
-
type: z.ZodEnum<{
|
|
3653
|
-
error: "error";
|
|
3654
|
-
approve: "approve";
|
|
3655
|
-
create: "create";
|
|
3656
|
-
update: "update";
|
|
3657
|
-
delete: "delete";
|
|
3658
|
-
read: "read";
|
|
3659
|
-
}>;
|
|
3660
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3661
|
-
output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3662
|
-
output_item_id: z.ZodString;
|
|
3663
|
-
output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
|
|
3664
|
-
}, z.core.$strip>>>;
|
|
3665
|
-
}, z.core.$strip>>>;
|
|
3666
|
-
success: z.ZodLiteral<true>;
|
|
3667
|
-
countByEventNameOnly: z.ZodLiteral<true>;
|
|
3668
|
-
customEventsOnly: z.ZodBoolean;
|
|
3669
|
-
eventCounts: z.ZodArray<z.ZodObject<{
|
|
3670
|
-
eventName: z.ZodString;
|
|
3671
|
-
count: z.ZodNumber;
|
|
3672
|
-
}, z.core.$strip>>;
|
|
3673
|
-
totalEventTypes: z.ZodNumber;
|
|
3674
|
-
eventsLink: z.ZodString;
|
|
3675
|
-
message: z.ZodString;
|
|
3676
|
-
}, z.core.$strip>;
|
|
3677
|
-
export declare const searchPosthogEventsEventListSchema: z.ZodObject<{
|
|
3678
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3679
|
-
action: z.ZodString;
|
|
3680
|
-
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
3681
|
-
target: z.ZodString;
|
|
3682
|
-
details: z.ZodString;
|
|
3683
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3684
|
-
step_id: z.ZodOptional<z.ZodString>;
|
|
3685
|
-
type: z.ZodEnum<{
|
|
3686
|
-
error: "error";
|
|
3687
|
-
approve: "approve";
|
|
3688
|
-
create: "create";
|
|
3689
|
-
update: "update";
|
|
3690
|
-
delete: "delete";
|
|
3691
|
-
read: "read";
|
|
3692
|
-
}>;
|
|
3693
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3694
|
-
output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3695
|
-
output_item_id: z.ZodString;
|
|
3696
|
-
output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
|
|
3697
|
-
}, z.core.$strip>>>;
|
|
3698
|
-
}, z.core.$strip>>>;
|
|
3699
|
-
success: z.ZodLiteral<true>;
|
|
3700
|
-
userEmail: z.ZodNullable<z.ZodString>;
|
|
3701
|
-
eventName: z.ZodNullable<z.ZodString>;
|
|
3702
|
-
projectId: z.ZodString;
|
|
3703
|
-
totalEvents: z.ZodNumber;
|
|
3704
|
-
events: z.ZodArray<z.ZodObject<{
|
|
3705
|
-
id: z.ZodString;
|
|
3706
|
-
event: z.ZodString;
|
|
3707
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
3708
|
-
distinctId: z.ZodOptional<z.ZodString>;
|
|
3709
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3710
|
-
}, z.core.$strip>>;
|
|
3711
|
-
eventsLink: z.ZodString;
|
|
3712
|
-
pagination: z.ZodObject<{
|
|
3713
|
-
limit: z.ZodNumber;
|
|
3714
|
-
offset: z.ZodNumber;
|
|
3715
|
-
hasMore: z.ZodBoolean;
|
|
3716
|
-
nextOffset: z.ZodNullable<z.ZodNumber>;
|
|
3717
|
-
showing: z.ZodString;
|
|
3718
|
-
}, z.core.$strip>;
|
|
3719
|
-
message: z.ZodString;
|
|
3720
|
-
}, z.core.$strip>;
|
|
3721
|
-
export declare const searchPosthogEventsTool: {
|
|
3722
|
-
name: "searchPosthogEvents";
|
|
3681
|
+
export declare const listPosthogEventNamesTool: {
|
|
3682
|
+
name: "listPosthogEventNames";
|
|
3723
3683
|
inputSchema: z.ZodObject<{
|
|
3724
3684
|
integrationId: z.ZodString;
|
|
3725
3685
|
projectId: z.ZodString;
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
userEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3729
|
-
eventName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3686
|
+
customEventsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3687
|
+
distinctId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3730
3688
|
propertyFilters: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
3731
3689
|
key: z.ZodString;
|
|
3732
3690
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
3733
|
-
operator: z.
|
|
3691
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
3734
3692
|
exact: "exact";
|
|
3735
3693
|
is_not: "is_not";
|
|
3736
3694
|
icontains: "icontains";
|
|
@@ -3740,14 +3698,15 @@ export declare const searchPosthogEventsTool: {
|
|
|
3740
3698
|
gte: "gte";
|
|
3741
3699
|
lte: "lte";
|
|
3742
3700
|
}>>;
|
|
3701
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3702
|
+
event: "event";
|
|
3703
|
+
person: "person";
|
|
3704
|
+
}>>;
|
|
3743
3705
|
}, z.core.$strip>>, z.ZodNull]>>;
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
last7Days: z.ZodDefault<z.ZodBoolean>;
|
|
3747
|
-
dateFrom: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
3748
|
-
dateTo: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
3706
|
+
dateFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3707
|
+
dateTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3749
3708
|
}, z.core.$strip>;
|
|
3750
|
-
outputSchema: z.
|
|
3709
|
+
outputSchema: z.ZodObject<{
|
|
3751
3710
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3752
3711
|
action: z.ZodString;
|
|
3753
3712
|
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
@@ -3770,16 +3729,46 @@ export declare const searchPosthogEventsTool: {
|
|
|
3770
3729
|
}, z.core.$strip>>>;
|
|
3771
3730
|
}, z.core.$strip>>>;
|
|
3772
3731
|
success: z.ZodLiteral<true>;
|
|
3773
|
-
countByEventNameOnly: z.ZodLiteral<true>;
|
|
3774
|
-
customEventsOnly: z.ZodBoolean;
|
|
3775
3732
|
eventCounts: z.ZodArray<z.ZodObject<{
|
|
3776
3733
|
eventName: z.ZodString;
|
|
3777
3734
|
count: z.ZodNumber;
|
|
3778
3735
|
}, z.core.$strip>>;
|
|
3779
3736
|
totalEventTypes: z.ZodNumber;
|
|
3780
3737
|
eventsLink: z.ZodString;
|
|
3781
|
-
|
|
3782
|
-
|
|
3738
|
+
}, z.core.$strip>;
|
|
3739
|
+
};
|
|
3740
|
+
export declare const searchPosthogEventsTool: {
|
|
3741
|
+
name: "searchPosthogEvents";
|
|
3742
|
+
inputSchema: z.ZodObject<{
|
|
3743
|
+
integrationId: z.ZodString;
|
|
3744
|
+
projectId: z.ZodString;
|
|
3745
|
+
eventName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3746
|
+
customEventsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3747
|
+
distinctId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3748
|
+
propertyFilters: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
3749
|
+
key: z.ZodString;
|
|
3750
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
3751
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
3752
|
+
exact: "exact";
|
|
3753
|
+
is_not: "is_not";
|
|
3754
|
+
icontains: "icontains";
|
|
3755
|
+
not_icontains: "not_icontains";
|
|
3756
|
+
gt: "gt";
|
|
3757
|
+
lt: "lt";
|
|
3758
|
+
gte: "gte";
|
|
3759
|
+
lte: "lte";
|
|
3760
|
+
}>>;
|
|
3761
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3762
|
+
event: "event";
|
|
3763
|
+
person: "person";
|
|
3764
|
+
}>>;
|
|
3765
|
+
}, z.core.$strip>>, z.ZodNull]>>;
|
|
3766
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
3767
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3768
|
+
dateFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3769
|
+
dateTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3770
|
+
}, z.core.$strip>;
|
|
3771
|
+
outputSchema: z.ZodObject<{
|
|
3783
3772
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3784
3773
|
action: z.ZodString;
|
|
3785
3774
|
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
@@ -3802,10 +3791,6 @@ export declare const searchPosthogEventsTool: {
|
|
|
3802
3791
|
}, z.core.$strip>>>;
|
|
3803
3792
|
}, z.core.$strip>>>;
|
|
3804
3793
|
success: z.ZodLiteral<true>;
|
|
3805
|
-
userEmail: z.ZodNullable<z.ZodString>;
|
|
3806
|
-
eventName: z.ZodNullable<z.ZodString>;
|
|
3807
|
-
projectId: z.ZodString;
|
|
3808
|
-
totalEvents: z.ZodNumber;
|
|
3809
3794
|
events: z.ZodArray<z.ZodObject<{
|
|
3810
3795
|
id: z.ZodString;
|
|
3811
3796
|
event: z.ZodString;
|
|
@@ -3813,16 +3798,11 @@ export declare const searchPosthogEventsTool: {
|
|
|
3813
3798
|
distinctId: z.ZodOptional<z.ZodString>;
|
|
3814
3799
|
url: z.ZodOptional<z.ZodString>;
|
|
3815
3800
|
}, z.core.$strip>>;
|
|
3801
|
+
totalEvents: z.ZodNumber;
|
|
3802
|
+
hasMore: z.ZodBoolean;
|
|
3803
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
3816
3804
|
eventsLink: z.ZodString;
|
|
3817
|
-
|
|
3818
|
-
limit: z.ZodNumber;
|
|
3819
|
-
offset: z.ZodNumber;
|
|
3820
|
-
hasMore: z.ZodBoolean;
|
|
3821
|
-
nextOffset: z.ZodNullable<z.ZodNumber>;
|
|
3822
|
-
showing: z.ZodString;
|
|
3823
|
-
}, z.core.$strip>;
|
|
3824
|
-
message: z.ZodString;
|
|
3825
|
-
}, z.core.$strip>]>;
|
|
3805
|
+
}, z.core.$strip>;
|
|
3826
3806
|
};
|
|
3827
3807
|
export declare const datadogLogEntrySchema: z.ZodObject<{
|
|
3828
3808
|
id: z.ZodString;
|
|
@@ -7471,19 +7451,17 @@ export declare const ToolDefinitions: {
|
|
|
7471
7451
|
message: z.ZodString;
|
|
7472
7452
|
}, z.core.$strip>;
|
|
7473
7453
|
};
|
|
7474
|
-
readonly
|
|
7475
|
-
name: "
|
|
7454
|
+
readonly listPosthogEventNames: {
|
|
7455
|
+
name: "listPosthogEventNames";
|
|
7476
7456
|
inputSchema: z.ZodObject<{
|
|
7477
7457
|
integrationId: z.ZodString;
|
|
7478
7458
|
projectId: z.ZodString;
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
userEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7482
|
-
eventName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7459
|
+
customEventsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
7460
|
+
distinctId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7483
7461
|
propertyFilters: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
7484
7462
|
key: z.ZodString;
|
|
7485
7463
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
7486
|
-
operator: z.
|
|
7464
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
7487
7465
|
exact: "exact";
|
|
7488
7466
|
is_not: "is_not";
|
|
7489
7467
|
icontains: "icontains";
|
|
@@ -7493,14 +7471,15 @@ export declare const ToolDefinitions: {
|
|
|
7493
7471
|
gte: "gte";
|
|
7494
7472
|
lte: "lte";
|
|
7495
7473
|
}>>;
|
|
7474
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
7475
|
+
event: "event";
|
|
7476
|
+
person: "person";
|
|
7477
|
+
}>>;
|
|
7496
7478
|
}, z.core.$strip>>, z.ZodNull]>>;
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
last7Days: z.ZodDefault<z.ZodBoolean>;
|
|
7500
|
-
dateFrom: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
7501
|
-
dateTo: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
7479
|
+
dateFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7480
|
+
dateTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7502
7481
|
}, z.core.$strip>;
|
|
7503
|
-
outputSchema: z.
|
|
7482
|
+
outputSchema: z.ZodObject<{
|
|
7504
7483
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7505
7484
|
action: z.ZodString;
|
|
7506
7485
|
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
@@ -7523,16 +7502,46 @@ export declare const ToolDefinitions: {
|
|
|
7523
7502
|
}, z.core.$strip>>>;
|
|
7524
7503
|
}, z.core.$strip>>>;
|
|
7525
7504
|
success: z.ZodLiteral<true>;
|
|
7526
|
-
countByEventNameOnly: z.ZodLiteral<true>;
|
|
7527
|
-
customEventsOnly: z.ZodBoolean;
|
|
7528
7505
|
eventCounts: z.ZodArray<z.ZodObject<{
|
|
7529
7506
|
eventName: z.ZodString;
|
|
7530
7507
|
count: z.ZodNumber;
|
|
7531
7508
|
}, z.core.$strip>>;
|
|
7532
7509
|
totalEventTypes: z.ZodNumber;
|
|
7533
7510
|
eventsLink: z.ZodString;
|
|
7534
|
-
|
|
7535
|
-
|
|
7511
|
+
}, z.core.$strip>;
|
|
7512
|
+
};
|
|
7513
|
+
readonly searchPosthogEvents: {
|
|
7514
|
+
name: "searchPosthogEvents";
|
|
7515
|
+
inputSchema: z.ZodObject<{
|
|
7516
|
+
integrationId: z.ZodString;
|
|
7517
|
+
projectId: z.ZodString;
|
|
7518
|
+
eventName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7519
|
+
customEventsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
7520
|
+
distinctId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7521
|
+
propertyFilters: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
7522
|
+
key: z.ZodString;
|
|
7523
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
7524
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
7525
|
+
exact: "exact";
|
|
7526
|
+
is_not: "is_not";
|
|
7527
|
+
icontains: "icontains";
|
|
7528
|
+
not_icontains: "not_icontains";
|
|
7529
|
+
gt: "gt";
|
|
7530
|
+
lt: "lt";
|
|
7531
|
+
gte: "gte";
|
|
7532
|
+
lte: "lte";
|
|
7533
|
+
}>>;
|
|
7534
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
7535
|
+
event: "event";
|
|
7536
|
+
person: "person";
|
|
7537
|
+
}>>;
|
|
7538
|
+
}, z.core.$strip>>, z.ZodNull]>>;
|
|
7539
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7540
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7541
|
+
dateFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7542
|
+
dateTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7543
|
+
}, z.core.$strip>;
|
|
7544
|
+
outputSchema: z.ZodObject<{
|
|
7536
7545
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7537
7546
|
action: z.ZodString;
|
|
7538
7547
|
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
@@ -7555,10 +7564,6 @@ export declare const ToolDefinitions: {
|
|
|
7555
7564
|
}, z.core.$strip>>>;
|
|
7556
7565
|
}, z.core.$strip>>>;
|
|
7557
7566
|
success: z.ZodLiteral<true>;
|
|
7558
|
-
userEmail: z.ZodNullable<z.ZodString>;
|
|
7559
|
-
eventName: z.ZodNullable<z.ZodString>;
|
|
7560
|
-
projectId: z.ZodString;
|
|
7561
|
-
totalEvents: z.ZodNumber;
|
|
7562
7567
|
events: z.ZodArray<z.ZodObject<{
|
|
7563
7568
|
id: z.ZodString;
|
|
7564
7569
|
event: z.ZodString;
|
|
@@ -7566,16 +7571,11 @@ export declare const ToolDefinitions: {
|
|
|
7566
7571
|
distinctId: z.ZodOptional<z.ZodString>;
|
|
7567
7572
|
url: z.ZodOptional<z.ZodString>;
|
|
7568
7573
|
}, z.core.$strip>>;
|
|
7574
|
+
totalEvents: z.ZodNumber;
|
|
7575
|
+
hasMore: z.ZodBoolean;
|
|
7576
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
7569
7577
|
eventsLink: z.ZodString;
|
|
7570
|
-
|
|
7571
|
-
limit: z.ZodNumber;
|
|
7572
|
-
offset: z.ZodNumber;
|
|
7573
|
-
hasMore: z.ZodBoolean;
|
|
7574
|
-
nextOffset: z.ZodNullable<z.ZodNumber>;
|
|
7575
|
-
showing: z.ZodString;
|
|
7576
|
-
}, z.core.$strip>;
|
|
7577
|
-
message: z.ZodString;
|
|
7578
|
-
}, z.core.$strip>]>;
|
|
7578
|
+
}, z.core.$strip>;
|
|
7579
7579
|
};
|
|
7580
7580
|
readonly attio_list_objects: {
|
|
7581
7581
|
name: "attio_list_objects";
|