@instantkom/mcp-server 1.0.0
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/LICENSE +21 -0
- package/README.md +274 -0
- package/dist/client/api-client.d.ts +76 -0
- package/dist/client/api-client.d.ts.map +1 -0
- package/dist/client/api-client.js +234 -0
- package/dist/client/api-client.js.map +1 -0
- package/dist/index.public.d.ts +23 -0
- package/dist/index.public.d.ts.map +1 -0
- package/dist/index.public.js +79 -0
- package/dist/index.public.js.map +1 -0
- package/dist/tools/app/account.d.ts +46 -0
- package/dist/tools/app/account.d.ts.map +1 -0
- package/dist/tools/app/account.js +69 -0
- package/dist/tools/app/account.js.map +1 -0
- package/dist/tools/app/analytics.d.ts +78 -0
- package/dist/tools/app/analytics.d.ts.map +1 -0
- package/dist/tools/app/analytics.js +158 -0
- package/dist/tools/app/analytics.js.map +1 -0
- package/dist/tools/app/api-keys.d.ts +195 -0
- package/dist/tools/app/api-keys.d.ts.map +1 -0
- package/dist/tools/app/api-keys.js +203 -0
- package/dist/tools/app/api-keys.js.map +1 -0
- package/dist/tools/app/billing.d.ts +78 -0
- package/dist/tools/app/billing.d.ts.map +1 -0
- package/dist/tools/app/billing.js +117 -0
- package/dist/tools/app/billing.js.map +1 -0
- package/dist/tools/app/bots.d.ts +641 -0
- package/dist/tools/app/bots.d.ts.map +1 -0
- package/dist/tools/app/bots.js +599 -0
- package/dist/tools/app/bots.js.map +1 -0
- package/dist/tools/app/broadcasts.d.ts +165 -0
- package/dist/tools/app/broadcasts.d.ts.map +1 -0
- package/dist/tools/app/broadcasts.js +219 -0
- package/dist/tools/app/broadcasts.js.map +1 -0
- package/dist/tools/app/channels.d.ts +126 -0
- package/dist/tools/app/channels.d.ts.map +1 -0
- package/dist/tools/app/channels.js +198 -0
- package/dist/tools/app/channels.js.map +1 -0
- package/dist/tools/app/chats.d.ts +90 -0
- package/dist/tools/app/chats.d.ts.map +1 -0
- package/dist/tools/app/chats.js +162 -0
- package/dist/tools/app/chats.js.map +1 -0
- package/dist/tools/app/contacts.d.ts +153 -0
- package/dist/tools/app/contacts.d.ts.map +1 -0
- package/dist/tools/app/contacts.js +186 -0
- package/dist/tools/app/contacts.js.map +1 -0
- package/dist/tools/app/coupons.d.ts +37 -0
- package/dist/tools/app/coupons.d.ts.map +1 -0
- package/dist/tools/app/coupons.js +70 -0
- package/dist/tools/app/coupons.js.map +1 -0
- package/dist/tools/app/custom-fields.d.ts +301 -0
- package/dist/tools/app/custom-fields.d.ts.map +1 -0
- package/dist/tools/app/custom-fields.js +265 -0
- package/dist/tools/app/custom-fields.js.map +1 -0
- package/dist/tools/app/dashboard-widgets.d.ts +121 -0
- package/dist/tools/app/dashboard-widgets.d.ts.map +1 -0
- package/dist/tools/app/dashboard-widgets.js +163 -0
- package/dist/tools/app/dashboard-widgets.js.map +1 -0
- package/dist/tools/app/dashboard.d.ts +18 -0
- package/dist/tools/app/dashboard.d.ts.map +1 -0
- package/dist/tools/app/dashboard.js +29 -0
- package/dist/tools/app/dashboard.js.map +1 -0
- package/dist/tools/app/ecommerce.d.ts +95 -0
- package/dist/tools/app/ecommerce.d.ts.map +1 -0
- package/dist/tools/app/ecommerce.js +109 -0
- package/dist/tools/app/ecommerce.js.map +1 -0
- package/dist/tools/app/events.d.ts +53 -0
- package/dist/tools/app/events.d.ts.map +1 -0
- package/dist/tools/app/events.js +66 -0
- package/dist/tools/app/events.js.map +1 -0
- package/dist/tools/app/exports.d.ts +81 -0
- package/dist/tools/app/exports.d.ts.map +1 -0
- package/dist/tools/app/exports.js +125 -0
- package/dist/tools/app/exports.js.map +1 -0
- package/dist/tools/app/feeds.d.ts +113 -0
- package/dist/tools/app/feeds.d.ts.map +1 -0
- package/dist/tools/app/feeds.js +166 -0
- package/dist/tools/app/feeds.js.map +1 -0
- package/dist/tools/app/flow-edges.d.ts +122 -0
- package/dist/tools/app/flow-edges.d.ts.map +1 -0
- package/dist/tools/app/flow-edges.js +130 -0
- package/dist/tools/app/flow-edges.js.map +1 -0
- package/dist/tools/app/flow-nodes.d.ts +122 -0
- package/dist/tools/app/flow-nodes.d.ts.map +1 -0
- package/dist/tools/app/flow-nodes.js +130 -0
- package/dist/tools/app/flow-nodes.js.map +1 -0
- package/dist/tools/app/flows.d.ts +136 -0
- package/dist/tools/app/flows.d.ts.map +1 -0
- package/dist/tools/app/flows.js +141 -0
- package/dist/tools/app/flows.js.map +1 -0
- package/dist/tools/app/funnels.d.ts +96 -0
- package/dist/tools/app/funnels.d.ts.map +1 -0
- package/dist/tools/app/funnels.js +127 -0
- package/dist/tools/app/funnels.js.map +1 -0
- package/dist/tools/app/index.d.ts +51 -0
- package/dist/tools/app/index.d.ts.map +1 -0
- package/dist/tools/app/index.js +121 -0
- package/dist/tools/app/index.js.map +1 -0
- package/dist/tools/app/media.d.ts +44 -0
- package/dist/tools/app/media.d.ts.map +1 -0
- package/dist/tools/app/media.js +183 -0
- package/dist/tools/app/media.js.map +1 -0
- package/dist/tools/app/message-events.d.ts +69 -0
- package/dist/tools/app/message-events.d.ts.map +1 -0
- package/dist/tools/app/message-events.js +72 -0
- package/dist/tools/app/message-events.js.map +1 -0
- package/dist/tools/app/messages.d.ts +380 -0
- package/dist/tools/app/messages.d.ts.map +1 -0
- package/dist/tools/app/messages.js +345 -0
- package/dist/tools/app/messages.js.map +1 -0
- package/dist/tools/app/object-folders.d.ts +82 -0
- package/dist/tools/app/object-folders.d.ts.map +1 -0
- package/dist/tools/app/object-folders.js +123 -0
- package/dist/tools/app/object-folders.js.map +1 -0
- package/dist/tools/app/plans.d.ts +53 -0
- package/dist/tools/app/plans.d.ts.map +1 -0
- package/dist/tools/app/plans.js +70 -0
- package/dist/tools/app/plans.js.map +1 -0
- package/dist/tools/app/polls.d.ts +227 -0
- package/dist/tools/app/polls.d.ts.map +1 -0
- package/dist/tools/app/polls.js +256 -0
- package/dist/tools/app/polls.js.map +1 -0
- package/dist/tools/app/qr-codes.d.ts +103 -0
- package/dist/tools/app/qr-codes.d.ts.map +1 -0
- package/dist/tools/app/qr-codes.js +160 -0
- package/dist/tools/app/qr-codes.js.map +1 -0
- package/dist/tools/app/segmentations.d.ts +132 -0
- package/dist/tools/app/segmentations.d.ts.map +1 -0
- package/dist/tools/app/segmentations.js +237 -0
- package/dist/tools/app/segmentations.js.map +1 -0
- package/dist/tools/app/settings.d.ts +75 -0
- package/dist/tools/app/settings.d.ts.map +1 -0
- package/dist/tools/app/settings.js +96 -0
- package/dist/tools/app/settings.js.map +1 -0
- package/dist/tools/app/shortlinks.d.ts +103 -0
- package/dist/tools/app/shortlinks.d.ts.map +1 -0
- package/dist/tools/app/shortlinks.js +158 -0
- package/dist/tools/app/shortlinks.js.map +1 -0
- package/dist/tools/app/super-widgets.d.ts +95 -0
- package/dist/tools/app/super-widgets.d.ts.map +1 -0
- package/dist/tools/app/super-widgets.js +124 -0
- package/dist/tools/app/super-widgets.js.map +1 -0
- package/dist/tools/app/tags.d.ts +267 -0
- package/dist/tools/app/tags.d.ts.map +1 -0
- package/dist/tools/app/tags.js +363 -0
- package/dist/tools/app/tags.js.map +1 -0
- package/dist/tools/app/team-members.d.ts +141 -0
- package/dist/tools/app/team-members.d.ts.map +1 -0
- package/dist/tools/app/team-members.js +195 -0
- package/dist/tools/app/team-members.js.map +1 -0
- package/dist/tools/app/templates.d.ts +212 -0
- package/dist/tools/app/templates.d.ts.map +1 -0
- package/dist/tools/app/templates.js +270 -0
- package/dist/tools/app/templates.js.map +1 -0
- package/dist/tools/app/tickets.d.ts +277 -0
- package/dist/tools/app/tickets.d.ts.map +1 -0
- package/dist/tools/app/tickets.js +266 -0
- package/dist/tools/app/tickets.js.map +1 -0
- package/dist/tools/app/users.d.ts +70 -0
- package/dist/tools/app/users.d.ts.map +1 -0
- package/dist/tools/app/users.js +72 -0
- package/dist/tools/app/users.js.map +1 -0
- package/dist/tools/app/webhooks.d.ts +61 -0
- package/dist/tools/app/webhooks.d.ts.map +1 -0
- package/dist/tools/app/webhooks.js +85 -0
- package/dist/tools/app/webhooks.js.map +1 -0
- package/dist/tools/app/widgets.d.ts +103 -0
- package/dist/tools/app/widgets.d.ts.map +1 -0
- package/dist/tools/app/widgets.js +128 -0
- package/dist/tools/app/widgets.js.map +1 -0
- package/dist/tools/public/health.d.ts +16 -0
- package/dist/tools/public/health.d.ts.map +1 -0
- package/dist/tools/public/health.js +27 -0
- package/dist/tools/public/health.js.map +1 -0
- package/dist/tools/public/index.d.ts +15 -0
- package/dist/tools/public/index.d.ts.map +1 -0
- package/dist/tools/public/index.js +10 -0
- package/dist/tools/public/index.js.map +1 -0
- package/dist/tools/tool-router.d.ts +21 -0
- package/dist/tools/tool-router.d.ts.map +1 -0
- package/dist/tools/tool-router.js +118 -0
- package/dist/tools/tool-router.js.map +1 -0
- package/dist/types/index.d.ts +73 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { ApiClient } from '../../client/api-client.js';
|
|
2
|
+
/**
|
|
3
|
+
* E-Commerce Tools
|
|
4
|
+
* Read-only access to e-commerce orders and contact order history
|
|
5
|
+
*/
|
|
6
|
+
export declare function listEcommerceOrders(apiClient: ApiClient, args: any): Promise<any>;
|
|
7
|
+
export declare function getEcommerceOrder(apiClient: ApiClient, args: {
|
|
8
|
+
id: number;
|
|
9
|
+
}): Promise<any>;
|
|
10
|
+
export declare function getContactOrders(apiClient: ApiClient, args: {
|
|
11
|
+
contactId: number;
|
|
12
|
+
limit?: number;
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
export declare function getContactOrderStats(apiClient: ApiClient, args: {
|
|
15
|
+
contactId: number;
|
|
16
|
+
}): Promise<any>;
|
|
17
|
+
export declare const ecommerceTools: ({
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: string;
|
|
22
|
+
properties: {
|
|
23
|
+
page: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
limit: {
|
|
28
|
+
type: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
search: {
|
|
32
|
+
type: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
id?: undefined;
|
|
36
|
+
contactId?: undefined;
|
|
37
|
+
};
|
|
38
|
+
required?: undefined;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: string;
|
|
45
|
+
properties: {
|
|
46
|
+
id: {
|
|
47
|
+
type: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
page?: undefined;
|
|
51
|
+
limit?: undefined;
|
|
52
|
+
search?: undefined;
|
|
53
|
+
contactId?: undefined;
|
|
54
|
+
};
|
|
55
|
+
required: string[];
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
name: string;
|
|
59
|
+
description: string;
|
|
60
|
+
inputSchema: {
|
|
61
|
+
type: string;
|
|
62
|
+
properties: {
|
|
63
|
+
contactId: {
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
limit: {
|
|
68
|
+
type: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
page?: undefined;
|
|
72
|
+
search?: undefined;
|
|
73
|
+
id?: undefined;
|
|
74
|
+
};
|
|
75
|
+
required: string[];
|
|
76
|
+
};
|
|
77
|
+
} | {
|
|
78
|
+
name: string;
|
|
79
|
+
description: string;
|
|
80
|
+
inputSchema: {
|
|
81
|
+
type: string;
|
|
82
|
+
properties: {
|
|
83
|
+
contactId: {
|
|
84
|
+
type: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
page?: undefined;
|
|
88
|
+
limit?: undefined;
|
|
89
|
+
search?: undefined;
|
|
90
|
+
id?: undefined;
|
|
91
|
+
};
|
|
92
|
+
required: string[];
|
|
93
|
+
};
|
|
94
|
+
})[];
|
|
95
|
+
//# sourceMappingURL=ecommerce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecommerce.d.ts","sourceRoot":"","sources":["../../../src/tools/app/ecommerce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;GAGG;AAEH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAiBvF;AAED,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAWhG;AAED,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAetH;AAED,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAW1G;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+C1B,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* E-Commerce Tools
|
|
3
|
+
* Read-only access to e-commerce orders and contact order history
|
|
4
|
+
*/
|
|
5
|
+
export async function listEcommerceOrders(apiClient, args) {
|
|
6
|
+
const params = new URLSearchParams();
|
|
7
|
+
if (args.page)
|
|
8
|
+
params.append('page', args.page.toString());
|
|
9
|
+
if (args.limit)
|
|
10
|
+
params.append('limit', args.limit.toString());
|
|
11
|
+
if (args.search)
|
|
12
|
+
params.append('search', args.search);
|
|
13
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
14
|
+
const response = await apiClient.get(`/v1/ecommerce/orders${query}`);
|
|
15
|
+
return {
|
|
16
|
+
content: [
|
|
17
|
+
{
|
|
18
|
+
type: 'text',
|
|
19
|
+
text: JSON.stringify(response, null, 2),
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export async function getEcommerceOrder(apiClient, args) {
|
|
25
|
+
const response = await apiClient.get(`/v1/ecommerce/orders/${args.id}`);
|
|
26
|
+
return {
|
|
27
|
+
content: [
|
|
28
|
+
{
|
|
29
|
+
type: 'text',
|
|
30
|
+
text: JSON.stringify(response, null, 2),
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export async function getContactOrders(apiClient, args) {
|
|
36
|
+
const params = new URLSearchParams();
|
|
37
|
+
if (args.limit)
|
|
38
|
+
params.append('limit', args.limit.toString());
|
|
39
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
40
|
+
const response = await apiClient.get(`/v1/contacts/${args.contactId}/orders${query}`);
|
|
41
|
+
return {
|
|
42
|
+
content: [
|
|
43
|
+
{
|
|
44
|
+
type: 'text',
|
|
45
|
+
text: JSON.stringify(response, null, 2),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export async function getContactOrderStats(apiClient, args) {
|
|
51
|
+
const response = await apiClient.get(`/v1/contacts/${args.contactId}/orders/stats`);
|
|
52
|
+
return {
|
|
53
|
+
content: [
|
|
54
|
+
{
|
|
55
|
+
type: 'text',
|
|
56
|
+
text: JSON.stringify(response, null, 2),
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export const ecommerceTools = [
|
|
62
|
+
{
|
|
63
|
+
name: 'list_ecommerce_orders',
|
|
64
|
+
description: 'List all e-commerce orders with optional pagination and search',
|
|
65
|
+
inputSchema: {
|
|
66
|
+
type: 'object',
|
|
67
|
+
properties: {
|
|
68
|
+
page: { type: 'number', description: 'Page number (default: 1)' },
|
|
69
|
+
limit: { type: 'number', description: 'Items per page (default: 20)' },
|
|
70
|
+
search: { type: 'string', description: 'Search orders' },
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'get_ecommerce_order',
|
|
76
|
+
description: 'Get a specific e-commerce order by ID',
|
|
77
|
+
inputSchema: {
|
|
78
|
+
type: 'object',
|
|
79
|
+
properties: {
|
|
80
|
+
id: { type: 'number', description: 'Order ID' },
|
|
81
|
+
},
|
|
82
|
+
required: ['id'],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'get_contact_orders',
|
|
87
|
+
description: 'Get all orders for a specific contact',
|
|
88
|
+
inputSchema: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
contactId: { type: 'number', description: 'Contact ID' },
|
|
92
|
+
limit: { type: 'number', description: 'Number of orders to return (default: 20)' },
|
|
93
|
+
},
|
|
94
|
+
required: ['contactId'],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'get_contact_order_stats',
|
|
99
|
+
description: 'Get order statistics for a specific contact',
|
|
100
|
+
inputSchema: {
|
|
101
|
+
type: 'object',
|
|
102
|
+
properties: {
|
|
103
|
+
contactId: { type: 'number', description: 'Contact ID' },
|
|
104
|
+
},
|
|
105
|
+
required: ['contactId'],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
//# sourceMappingURL=ecommerce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecommerce.js","sourceRoot":"","sources":["../../../src/tools/app/ecommerce.ts"],"names":[],"mappings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I,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;gBACtE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;aACzD;SACF;KACF;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE;aAChD;YACD,QAAQ,EAAE,CAAC,IAAI,CAAC;SACjB;KACF;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE;gBACxD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0CAA0C,EAAE;aACnF;YACD,QAAQ,EAAE,CAAC,WAAW,CAAC;SACxB;KACF;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,6CAA6C;QAC1D,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE;aACzD;YACD,QAAQ,EAAE,CAAC,WAAW,CAAC;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ApiClient } from '../../client/api-client.js';
|
|
2
|
+
/**
|
|
3
|
+
* Events Tools
|
|
4
|
+
* Event stream and real-time updates
|
|
5
|
+
*/
|
|
6
|
+
export declare function getEventStream(apiClient: ApiClient, args: any): Promise<any>;
|
|
7
|
+
export declare function getMessageEvents(apiClient: ApiClient, args: any): Promise<any>;
|
|
8
|
+
export declare const eventTools: ({
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
inputSchema: {
|
|
12
|
+
type: string;
|
|
13
|
+
properties: {
|
|
14
|
+
types: {
|
|
15
|
+
type: string;
|
|
16
|
+
items: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
since: {
|
|
22
|
+
type: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
messageId?: undefined;
|
|
26
|
+
page?: undefined;
|
|
27
|
+
limit?: undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
} | {
|
|
31
|
+
name: string;
|
|
32
|
+
description: string;
|
|
33
|
+
inputSchema: {
|
|
34
|
+
type: string;
|
|
35
|
+
properties: {
|
|
36
|
+
messageId: {
|
|
37
|
+
type: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
page: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
limit: {
|
|
45
|
+
type: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
types?: undefined;
|
|
49
|
+
since?: undefined;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
})[];
|
|
53
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/tools/app/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;GAGG;AAEH,wBAAsB,cAAc,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAgBlF;AAED,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAiBpF;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBtB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Events Tools
|
|
3
|
+
* Event stream and real-time updates
|
|
4
|
+
*/
|
|
5
|
+
export async function getEventStream(apiClient, args) {
|
|
6
|
+
const params = new URLSearchParams();
|
|
7
|
+
if (args.types)
|
|
8
|
+
params.append('types', args.types.join(','));
|
|
9
|
+
if (args.since)
|
|
10
|
+
params.append('since', args.since);
|
|
11
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
12
|
+
const response = await apiClient.get(`/v1/events${query}`);
|
|
13
|
+
return {
|
|
14
|
+
content: [
|
|
15
|
+
{
|
|
16
|
+
type: 'text',
|
|
17
|
+
text: JSON.stringify(response, null, 2),
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export async function getMessageEvents(apiClient, args) {
|
|
23
|
+
const params = new URLSearchParams();
|
|
24
|
+
if (args.messageId)
|
|
25
|
+
params.append('messageId', args.messageId.toString());
|
|
26
|
+
if (args.page)
|
|
27
|
+
params.append('page', args.page.toString());
|
|
28
|
+
if (args.limit)
|
|
29
|
+
params.append('limit', args.limit.toString());
|
|
30
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
31
|
+
const response = await apiClient.get(`/v1/message-events${query}`);
|
|
32
|
+
return {
|
|
33
|
+
content: [
|
|
34
|
+
{
|
|
35
|
+
type: 'text',
|
|
36
|
+
text: JSON.stringify(response, null, 2),
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export const eventTools = [
|
|
42
|
+
{
|
|
43
|
+
name: 'get_event_stream',
|
|
44
|
+
description: 'Get event stream with real-time updates',
|
|
45
|
+
inputSchema: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
properties: {
|
|
48
|
+
types: { type: 'array', items: { type: 'string' }, description: 'Event types to filter' },
|
|
49
|
+
since: { type: 'string', description: 'Get events since this timestamp' },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'get_message_events',
|
|
55
|
+
description: 'Get message delivery events and status updates',
|
|
56
|
+
inputSchema: {
|
|
57
|
+
type: 'object',
|
|
58
|
+
properties: {
|
|
59
|
+
messageId: { type: 'number', description: 'Filter by message ID' },
|
|
60
|
+
page: { type: 'number', description: 'Page number (default: 1)' },
|
|
61
|
+
limit: { type: 'number', description: 'Items per page (default: 10)' },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/tools/app/events.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,SAAoB,EAAE,IAAS;IAClE,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,IAAI,IAAI,CAAC,KAAK;QAAE,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7D,IAAI,IAAI,CAAC,KAAK;QAAE,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAEnD,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/D,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,GAAG,CAAC,aAAa,KAAK,EAAE,CAAC,CAAC;IAE3D,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CA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,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE;aAC1E;SACF;KACF;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,gDAAgD;QAC7D,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAsB,EAAE;gBAClE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0BAA0B,EAAE;gBACjE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;aACvE;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ApiClient } from '../../client/api-client.js';
|
|
2
|
+
/**
|
|
3
|
+
* Exports Tools
|
|
4
|
+
* Data export operations
|
|
5
|
+
*/
|
|
6
|
+
export declare function listExports(apiClient: ApiClient, args: any): Promise<any>;
|
|
7
|
+
export declare function getExport(apiClient: ApiClient, args: {
|
|
8
|
+
id: number;
|
|
9
|
+
}): Promise<any>;
|
|
10
|
+
export declare function createExport(apiClient: ApiClient, args: any): Promise<any>;
|
|
11
|
+
export declare function downloadExport(apiClient: ApiClient, args: {
|
|
12
|
+
id: number;
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
export declare function deleteExport(apiClient: ApiClient, args: {
|
|
15
|
+
id: number;
|
|
16
|
+
}): Promise<any>;
|
|
17
|
+
export declare const exportTools: ({
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: string;
|
|
22
|
+
properties: {
|
|
23
|
+
page: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
limit: {
|
|
28
|
+
type: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
id?: undefined;
|
|
32
|
+
type?: undefined;
|
|
33
|
+
format?: undefined;
|
|
34
|
+
filters?: undefined;
|
|
35
|
+
};
|
|
36
|
+
required?: undefined;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
inputSchema: {
|
|
42
|
+
type: string;
|
|
43
|
+
properties: {
|
|
44
|
+
id: {
|
|
45
|
+
type: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
page?: undefined;
|
|
49
|
+
limit?: undefined;
|
|
50
|
+
type?: undefined;
|
|
51
|
+
format?: undefined;
|
|
52
|
+
filters?: undefined;
|
|
53
|
+
};
|
|
54
|
+
required: string[];
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: string;
|
|
61
|
+
properties: {
|
|
62
|
+
type: {
|
|
63
|
+
type: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
format: {
|
|
67
|
+
type: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
filters: {
|
|
71
|
+
type: string;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
page?: undefined;
|
|
75
|
+
limit?: undefined;
|
|
76
|
+
id?: undefined;
|
|
77
|
+
};
|
|
78
|
+
required: string[];
|
|
79
|
+
};
|
|
80
|
+
})[];
|
|
81
|
+
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/tools/app/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;GAGG;AAEH,wBAAsB,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAgB/E;AAED,wBAAsB,SAAS,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAWxF;AAED,wBAAsB,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAWhF;AAED,wBAAsB,cAAc,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAW7F;AAED,wBAAsB,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAW3F;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0DvB,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exports Tools
|
|
3
|
+
* Data export operations
|
|
4
|
+
*/
|
|
5
|
+
export async function listExports(apiClient, args) {
|
|
6
|
+
const params = new URLSearchParams();
|
|
7
|
+
if (args.page)
|
|
8
|
+
params.append('page', args.page.toString());
|
|
9
|
+
if (args.limit)
|
|
10
|
+
params.append('limit', args.limit.toString());
|
|
11
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
12
|
+
const response = await apiClient.get(`/v1/exports${query}`);
|
|
13
|
+
return {
|
|
14
|
+
content: [
|
|
15
|
+
{
|
|
16
|
+
type: 'text',
|
|
17
|
+
text: JSON.stringify(response, null, 2),
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export async function getExport(apiClient, args) {
|
|
23
|
+
const response = await apiClient.get(`/v1/exports/${args.id}`);
|
|
24
|
+
return {
|
|
25
|
+
content: [
|
|
26
|
+
{
|
|
27
|
+
type: 'text',
|
|
28
|
+
text: JSON.stringify(response, null, 2),
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export async function createExport(apiClient, args) {
|
|
34
|
+
const response = await apiClient.post('/v1/exports', args);
|
|
35
|
+
return {
|
|
36
|
+
content: [
|
|
37
|
+
{
|
|
38
|
+
type: 'text',
|
|
39
|
+
text: JSON.stringify(response, null, 2),
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export async function downloadExport(apiClient, args) {
|
|
45
|
+
const response = await apiClient.get(`/v1/exports/${args.id}/download`);
|
|
46
|
+
return {
|
|
47
|
+
content: [
|
|
48
|
+
{
|
|
49
|
+
type: 'text',
|
|
50
|
+
text: JSON.stringify(response, null, 2),
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export async function deleteExport(apiClient, args) {
|
|
56
|
+
await apiClient.delete(`/v1/exports/${args.id}`);
|
|
57
|
+
return {
|
|
58
|
+
content: [
|
|
59
|
+
{
|
|
60
|
+
type: 'text',
|
|
61
|
+
text: 'Export deleted successfully',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export const exportTools = [
|
|
67
|
+
{
|
|
68
|
+
name: 'list_exports',
|
|
69
|
+
description: 'List all data exports',
|
|
70
|
+
inputSchema: {
|
|
71
|
+
type: 'object',
|
|
72
|
+
properties: {
|
|
73
|
+
page: { type: 'number', description: 'Page number (default: 1)' },
|
|
74
|
+
limit: { type: 'number', description: 'Items per page (default: 10)' },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'get_export',
|
|
80
|
+
description: 'Get export status and details',
|
|
81
|
+
inputSchema: {
|
|
82
|
+
type: 'object',
|
|
83
|
+
properties: {
|
|
84
|
+
id: { type: 'number', description: 'Export ID' },
|
|
85
|
+
},
|
|
86
|
+
required: ['id'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'create_export',
|
|
91
|
+
description: 'Create a new data export',
|
|
92
|
+
inputSchema: {
|
|
93
|
+
type: 'object',
|
|
94
|
+
properties: {
|
|
95
|
+
type: { type: 'string', description: 'Export type (contacts, messages, broadcasts)' },
|
|
96
|
+
format: { type: 'string', description: 'Export format (csv, json, xlsx)' },
|
|
97
|
+
filters: { type: 'object', description: 'Optional filters' },
|
|
98
|
+
},
|
|
99
|
+
required: ['type', 'format'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'download_export',
|
|
104
|
+
description: 'Download an export file',
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
id: { type: 'number', description: 'Export ID' },
|
|
109
|
+
},
|
|
110
|
+
required: ['id'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'delete_export',
|
|
115
|
+
description: 'Delete an export',
|
|
116
|
+
inputSchema: {
|
|
117
|
+
type: 'object',
|
|
118
|
+
properties: {
|
|
119
|
+
id: { type: 'number', description: 'Export ID' },
|
|
120
|
+
},
|
|
121
|
+
required: ['id'],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
];
|
|
125
|
+
//# sourceMappingURL=exports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/tools/app/exports.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,SAAoB,EAAE,IAAS;IAC/D,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,IAAI,IAAI,CAAC,IAAI;QAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CA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BACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8CAA8C,EAAE;gBACrF,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE;gBAC1E,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE;aAC7D;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SAC7B;KACF;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,yBAAyB;QACtC,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE;aACjD;YACD,QAAQ,EAAE,CAAC,IAAI,CAAC;SACjB;KACF;IACD;QACE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE;aACjD;YACD,QAAQ,EAAE,CAAC,IAAI,CAAC;SACjB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { ApiClient } from '../../client/api-client.js';
|
|
2
|
+
/**
|
|
3
|
+
* Feeds Tools
|
|
4
|
+
* CRUD operations for RSS/Atom feed monitoring and automation
|
|
5
|
+
*/
|
|
6
|
+
export declare function listFeeds(apiClient: ApiClient, args: any): Promise<any>;
|
|
7
|
+
export declare function getFeed(apiClient: ApiClient, args: {
|
|
8
|
+
id: number;
|
|
9
|
+
}): Promise<any>;
|
|
10
|
+
export declare function createFeed(apiClient: ApiClient, args: any): Promise<any>;
|
|
11
|
+
export declare function updateFeed(apiClient: ApiClient, args: any): Promise<any>;
|
|
12
|
+
export declare function deleteFeed(apiClient: ApiClient, args: {
|
|
13
|
+
id: number;
|
|
14
|
+
}): Promise<any>;
|
|
15
|
+
export declare const feedTools: ({
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: string;
|
|
20
|
+
properties: {
|
|
21
|
+
page: {
|
|
22
|
+
type: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
limit: {
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
id?: undefined;
|
|
30
|
+
url?: undefined;
|
|
31
|
+
name?: undefined;
|
|
32
|
+
channelId?: undefined;
|
|
33
|
+
interval?: undefined;
|
|
34
|
+
};
|
|
35
|
+
required?: undefined;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
inputSchema: {
|
|
41
|
+
type: string;
|
|
42
|
+
properties: {
|
|
43
|
+
id: {
|
|
44
|
+
type: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
page?: undefined;
|
|
48
|
+
limit?: undefined;
|
|
49
|
+
url?: undefined;
|
|
50
|
+
name?: undefined;
|
|
51
|
+
channelId?: undefined;
|
|
52
|
+
interval?: undefined;
|
|
53
|
+
};
|
|
54
|
+
required: string[];
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: string;
|
|
61
|
+
properties: {
|
|
62
|
+
url: {
|
|
63
|
+
type: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
name: {
|
|
67
|
+
type: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
channelId: {
|
|
71
|
+
type: string;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
interval: {
|
|
75
|
+
type: string;
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
page?: undefined;
|
|
79
|
+
limit?: undefined;
|
|
80
|
+
id?: undefined;
|
|
81
|
+
};
|
|
82
|
+
required: string[];
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
85
|
+
name: string;
|
|
86
|
+
description: string;
|
|
87
|
+
inputSchema: {
|
|
88
|
+
type: string;
|
|
89
|
+
properties: {
|
|
90
|
+
id: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
url: {
|
|
95
|
+
type: string;
|
|
96
|
+
description: string;
|
|
97
|
+
};
|
|
98
|
+
name: {
|
|
99
|
+
type: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
interval: {
|
|
103
|
+
type: string;
|
|
104
|
+
description: string;
|
|
105
|
+
};
|
|
106
|
+
page?: undefined;
|
|
107
|
+
limit?: undefined;
|
|
108
|
+
channelId?: undefined;
|
|
109
|
+
};
|
|
110
|
+
required: string[];
|
|
111
|
+
};
|
|
112
|
+
})[];
|
|
113
|
+
//# sourceMappingURL=feeds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feeds.d.ts","sourceRoot":"","sources":["../../../src/tools/app/feeds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;GAGG;AAEH,wBAAsB,SAAS,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAgB7E;AAED,wBAAsB,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAWtF;AAED,wBAAsB,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAW9E;AAED,wBAAsB,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAY9E;AAED,wBAAsB,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAWzF;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkGrB,CAAC"}
|