@seven.io/mcp 1.0.7 → 1.0.10
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 +4 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/tools/account.d.ts +16 -1
- package/dist/tools/account.d.ts.map +1 -1
- package/dist/tools/account.js +11 -2
- package/dist/tools/account.js.map +1 -1
- package/dist/tools/contacts.d.ts +88 -8
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/contacts.js +72 -8
- package/dist/tools/contacts.js.map +1 -1
- package/dist/tools/groups.d.ts +25 -1
- package/dist/tools/groups.d.ts.map +1 -1
- package/dist/tools/groups.js +6 -2
- package/dist/tools/groups.js.map +1 -1
- package/dist/tools/numbers.d.ts +125 -6
- package/dist/tools/numbers.d.ts.map +1 -1
- package/dist/tools/numbers.js +42 -7
- package/dist/tools/numbers.js.map +1 -1
- package/dist/tools/rcs.d.ts +50 -4
- package/dist/tools/rcs.d.ts.map +1 -1
- package/dist/tools/rcs.js +56 -6
- package/dist/tools/rcs.js.map +1 -1
- package/dist/tools/sms.d.ts +37 -0
- package/dist/tools/sms.d.ts.map +1 -1
- package/dist/tools/sms.js +37 -1
- package/dist/tools/sms.js.map +1 -1
- package/dist/tools/status.d.ts +14 -11
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/status.js +9 -8
- package/dist/tools/status.js.map +1 -1
- package/dist/tools/subaccounts.d.ts +9 -9
- package/dist/tools/subaccounts.js +11 -11
- package/dist/tools/subaccounts.js.map +1 -1
- package/dist/tools/voice.d.ts +10 -0
- package/dist/tools/voice.d.ts.map +1 -1
- package/dist/tools/voice.js +8 -0
- package/dist/tools/voice.js.map +1 -1
- package/dist/tools/webhooks.d.ts +12 -0
- package/dist/tools/webhooks.d.ts.map +1 -1
- package/dist/tools/webhooks.js +9 -1
- package/dist/tools/webhooks.js.map +1 -1
- package/dist/types.d.ts +34 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/tools/numbers.d.ts
CHANGED
|
@@ -3,11 +3,19 @@ import type { NumberParams } from '../types.js';
|
|
|
3
3
|
export declare function getAvailableNumbers(client: SevenClient, params?: NumberParams): Promise<unknown>;
|
|
4
4
|
export declare function orderNumber(client: SevenClient, params: {
|
|
5
5
|
number: string;
|
|
6
|
+
payment_interval?: 'monthly' | 'annually';
|
|
6
7
|
}): Promise<unknown>;
|
|
7
8
|
export declare function getActiveNumbers(client: SevenClient): Promise<unknown>;
|
|
8
9
|
export declare function getNumber(client: SevenClient, number: string): Promise<unknown>;
|
|
9
|
-
export declare function updateNumber(client: SevenClient, number: string, params:
|
|
10
|
-
|
|
10
|
+
export declare function updateNumber(client: SevenClient, number: string, params: {
|
|
11
|
+
friendly_name?: string;
|
|
12
|
+
sms_forward?: string[];
|
|
13
|
+
email_forward?: string[];
|
|
14
|
+
slack_forward?: string;
|
|
15
|
+
}): Promise<unknown>;
|
|
16
|
+
export declare function deleteNumber(client: SevenClient, number: string, params?: {
|
|
17
|
+
delete_immediately?: boolean;
|
|
18
|
+
}): Promise<unknown>;
|
|
11
19
|
export declare const numbersTools: ({
|
|
12
20
|
name: string;
|
|
13
21
|
description: string;
|
|
@@ -22,8 +30,25 @@ export declare const numbersTools: ({
|
|
|
22
30
|
type: string;
|
|
23
31
|
description: string;
|
|
24
32
|
};
|
|
33
|
+
features_sms: {
|
|
34
|
+
type: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
features_a2p_sms: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
features_voice: {
|
|
42
|
+
type: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
25
45
|
number?: undefined;
|
|
26
|
-
|
|
46
|
+
payment_interval?: undefined;
|
|
47
|
+
friendly_name?: undefined;
|
|
48
|
+
sms_forward?: undefined;
|
|
49
|
+
email_forward?: undefined;
|
|
50
|
+
slack_forward?: undefined;
|
|
51
|
+
delete_immediately?: undefined;
|
|
27
52
|
};
|
|
28
53
|
required?: undefined;
|
|
29
54
|
};
|
|
@@ -37,9 +62,21 @@ export declare const numbersTools: ({
|
|
|
37
62
|
type: string;
|
|
38
63
|
description: string;
|
|
39
64
|
};
|
|
65
|
+
payment_interval: {
|
|
66
|
+
type: string;
|
|
67
|
+
enum: string[];
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
40
70
|
country?: undefined;
|
|
41
71
|
type?: undefined;
|
|
42
|
-
|
|
72
|
+
features_sms?: undefined;
|
|
73
|
+
features_a2p_sms?: undefined;
|
|
74
|
+
features_voice?: undefined;
|
|
75
|
+
friendly_name?: undefined;
|
|
76
|
+
sms_forward?: undefined;
|
|
77
|
+
email_forward?: undefined;
|
|
78
|
+
slack_forward?: undefined;
|
|
79
|
+
delete_immediately?: undefined;
|
|
43
80
|
};
|
|
44
81
|
required: string[];
|
|
45
82
|
};
|
|
@@ -51,8 +88,16 @@ export declare const numbersTools: ({
|
|
|
51
88
|
properties: {
|
|
52
89
|
country?: undefined;
|
|
53
90
|
type?: undefined;
|
|
91
|
+
features_sms?: undefined;
|
|
92
|
+
features_a2p_sms?: undefined;
|
|
93
|
+
features_voice?: undefined;
|
|
54
94
|
number?: undefined;
|
|
55
|
-
|
|
95
|
+
payment_interval?: undefined;
|
|
96
|
+
friendly_name?: undefined;
|
|
97
|
+
sms_forward?: undefined;
|
|
98
|
+
email_forward?: undefined;
|
|
99
|
+
slack_forward?: undefined;
|
|
100
|
+
delete_immediately?: undefined;
|
|
56
101
|
};
|
|
57
102
|
required?: undefined;
|
|
58
103
|
};
|
|
@@ -66,12 +111,86 @@ export declare const numbersTools: ({
|
|
|
66
111
|
type: string;
|
|
67
112
|
description: string;
|
|
68
113
|
};
|
|
69
|
-
|
|
114
|
+
country?: undefined;
|
|
115
|
+
type?: undefined;
|
|
116
|
+
features_sms?: undefined;
|
|
117
|
+
features_a2p_sms?: undefined;
|
|
118
|
+
features_voice?: undefined;
|
|
119
|
+
payment_interval?: undefined;
|
|
120
|
+
friendly_name?: undefined;
|
|
121
|
+
sms_forward?: undefined;
|
|
122
|
+
email_forward?: undefined;
|
|
123
|
+
slack_forward?: undefined;
|
|
124
|
+
delete_immediately?: undefined;
|
|
125
|
+
};
|
|
126
|
+
required: string[];
|
|
127
|
+
};
|
|
128
|
+
} | {
|
|
129
|
+
name: string;
|
|
130
|
+
description: string;
|
|
131
|
+
inputSchema: {
|
|
132
|
+
type: string;
|
|
133
|
+
properties: {
|
|
134
|
+
number: {
|
|
135
|
+
type: string;
|
|
136
|
+
description: string;
|
|
137
|
+
};
|
|
138
|
+
friendly_name: {
|
|
139
|
+
type: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
sms_forward: {
|
|
143
|
+
type: string;
|
|
144
|
+
description: string;
|
|
145
|
+
items: {
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
email_forward: {
|
|
150
|
+
type: string;
|
|
151
|
+
description: string;
|
|
152
|
+
items: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
slack_forward: {
|
|
157
|
+
type: string;
|
|
158
|
+
description: string;
|
|
159
|
+
};
|
|
160
|
+
country?: undefined;
|
|
161
|
+
type?: undefined;
|
|
162
|
+
features_sms?: undefined;
|
|
163
|
+
features_a2p_sms?: undefined;
|
|
164
|
+
features_voice?: undefined;
|
|
165
|
+
payment_interval?: undefined;
|
|
166
|
+
delete_immediately?: undefined;
|
|
167
|
+
};
|
|
168
|
+
required: string[];
|
|
169
|
+
};
|
|
170
|
+
} | {
|
|
171
|
+
name: string;
|
|
172
|
+
description: string;
|
|
173
|
+
inputSchema: {
|
|
174
|
+
type: string;
|
|
175
|
+
properties: {
|
|
176
|
+
number: {
|
|
177
|
+
type: string;
|
|
178
|
+
description: string;
|
|
179
|
+
};
|
|
180
|
+
delete_immediately: {
|
|
70
181
|
type: string;
|
|
71
182
|
description: string;
|
|
72
183
|
};
|
|
73
184
|
country?: undefined;
|
|
74
185
|
type?: undefined;
|
|
186
|
+
features_sms?: undefined;
|
|
187
|
+
features_a2p_sms?: undefined;
|
|
188
|
+
features_voice?: undefined;
|
|
189
|
+
payment_interval?: undefined;
|
|
190
|
+
friendly_name?: undefined;
|
|
191
|
+
sms_forward?: undefined;
|
|
192
|
+
email_forward?: undefined;
|
|
193
|
+
slack_forward?: undefined;
|
|
75
194
|
};
|
|
76
195
|
required: string[];
|
|
77
196
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/tools/numbers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,YAAY,oBAEnF;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/tools/numbers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,YAAY,oBAEnF;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;CAAE,oBAE3H;AAED,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,WAAW,oBAEzD;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,oBAElE;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,oBAEnL;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;IAAE,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAE,oBAEhH;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyHxB,CAAC"}
|
package/dist/tools/numbers.js
CHANGED
|
@@ -13,8 +13,8 @@ export async function getNumber(client, number) {
|
|
|
13
13
|
export async function updateNumber(client, number, params) {
|
|
14
14
|
return await client.patch(`/numbers/active/${number}`, params);
|
|
15
15
|
}
|
|
16
|
-
export async function deleteNumber(client, number) {
|
|
17
|
-
return await client.delete(`/numbers/active/${number}
|
|
16
|
+
export async function deleteNumber(client, number, params) {
|
|
17
|
+
return await client.delete(`/numbers/active/${number}`, params);
|
|
18
18
|
}
|
|
19
19
|
export const numbersTools = [
|
|
20
20
|
{
|
|
@@ -31,6 +31,18 @@ export const numbersTools = [
|
|
|
31
31
|
type: 'string',
|
|
32
32
|
description: 'Number type (e.g., mobile, landline)',
|
|
33
33
|
},
|
|
34
|
+
features_sms: {
|
|
35
|
+
type: 'boolean',
|
|
36
|
+
description: 'Filter numbers supporting SMS',
|
|
37
|
+
},
|
|
38
|
+
features_a2p_sms: {
|
|
39
|
+
type: 'boolean',
|
|
40
|
+
description: 'Filter numbers supporting A2P SMS',
|
|
41
|
+
},
|
|
42
|
+
features_voice: {
|
|
43
|
+
type: 'boolean',
|
|
44
|
+
description: 'Filter numbers supporting voice calls',
|
|
45
|
+
},
|
|
34
46
|
},
|
|
35
47
|
},
|
|
36
48
|
},
|
|
@@ -44,6 +56,11 @@ export const numbersTools = [
|
|
|
44
56
|
type: 'string',
|
|
45
57
|
description: 'Phone number to purchase',
|
|
46
58
|
},
|
|
59
|
+
payment_interval: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
enum: ['monthly', 'annually'],
|
|
62
|
+
description: 'Payment interval for the number (default: annually)',
|
|
63
|
+
},
|
|
47
64
|
},
|
|
48
65
|
required: ['number'],
|
|
49
66
|
},
|
|
@@ -72,7 +89,7 @@ export const numbersTools = [
|
|
|
72
89
|
},
|
|
73
90
|
{
|
|
74
91
|
name: 'update_number',
|
|
75
|
-
description: 'Update phone number configuration',
|
|
92
|
+
description: 'Update phone number configuration including friendly name and forwarding settings',
|
|
76
93
|
inputSchema: {
|
|
77
94
|
type: 'object',
|
|
78
95
|
properties: {
|
|
@@ -80,12 +97,26 @@ export const numbersTools = [
|
|
|
80
97
|
type: 'string',
|
|
81
98
|
description: 'Phone number to update',
|
|
82
99
|
},
|
|
83
|
-
|
|
84
|
-
type: '
|
|
85
|
-
description: '
|
|
100
|
+
friendly_name: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: 'Custom friendly name for the number',
|
|
103
|
+
},
|
|
104
|
+
sms_forward: {
|
|
105
|
+
type: 'array',
|
|
106
|
+
description: 'Phone numbers to forward incoming SMS to',
|
|
107
|
+
items: { type: 'string' },
|
|
108
|
+
},
|
|
109
|
+
email_forward: {
|
|
110
|
+
type: 'array',
|
|
111
|
+
description: 'Email addresses to forward incoming SMS to',
|
|
112
|
+
items: { type: 'string' },
|
|
113
|
+
},
|
|
114
|
+
slack_forward: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
description: 'Slack webhook URL to forward incoming SMS to',
|
|
86
117
|
},
|
|
87
118
|
},
|
|
88
|
-
required: ['number'
|
|
119
|
+
required: ['number'],
|
|
89
120
|
},
|
|
90
121
|
},
|
|
91
122
|
{
|
|
@@ -98,6 +129,10 @@ export const numbersTools = [
|
|
|
98
129
|
type: 'string',
|
|
99
130
|
description: 'Phone number to delete',
|
|
100
131
|
},
|
|
132
|
+
delete_immediately: {
|
|
133
|
+
type: 'boolean',
|
|
134
|
+
description: 'Delete immediately instead of at end of billing period',
|
|
135
|
+
},
|
|
101
136
|
},
|
|
102
137
|
required: ['number'],
|
|
103
138
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../src/tools/numbers.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,MAAmB,EAAE,MAAqB;IAClF,OAAO,MAAM,MAAM,CAAC,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../src/tools/numbers.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,MAAmB,EAAE,MAAqB;IAClF,OAAO,MAAM,MAAM,CAAC,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAmB,EAAE,MAAqE;IAC1H,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;AACrD,CAAC;AA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;oBACb,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8CAA8C;iBAC5D;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;IACD;QACE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,8BAA8B;QAC3C,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,wBAAwB;iBACtC;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,wDAAwD;iBACtE;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
package/dist/tools/rcs.d.ts
CHANGED
|
@@ -49,8 +49,27 @@ export declare const rcsTools: ({
|
|
|
49
49
|
type: string;
|
|
50
50
|
description: string;
|
|
51
51
|
};
|
|
52
|
+
delay: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
ttl: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
label: {
|
|
61
|
+
type: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
performance_tracking: {
|
|
65
|
+
type: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
52
68
|
id?: undefined;
|
|
53
|
-
|
|
69
|
+
event_type?: undefined;
|
|
70
|
+
phone?: undefined;
|
|
71
|
+
message_id?: undefined;
|
|
72
|
+
msg_id?: undefined;
|
|
54
73
|
};
|
|
55
74
|
required: string[];
|
|
56
75
|
};
|
|
@@ -71,7 +90,14 @@ export declare const rcsTools: ({
|
|
|
71
90
|
orientation?: undefined;
|
|
72
91
|
from?: undefined;
|
|
73
92
|
foreign_id?: undefined;
|
|
74
|
-
|
|
93
|
+
delay?: undefined;
|
|
94
|
+
ttl?: undefined;
|
|
95
|
+
label?: undefined;
|
|
96
|
+
performance_tracking?: undefined;
|
|
97
|
+
event_type?: undefined;
|
|
98
|
+
phone?: undefined;
|
|
99
|
+
message_id?: undefined;
|
|
100
|
+
msg_id?: undefined;
|
|
75
101
|
};
|
|
76
102
|
required: string[];
|
|
77
103
|
};
|
|
@@ -81,17 +107,37 @@ export declare const rcsTools: ({
|
|
|
81
107
|
inputSchema: {
|
|
82
108
|
type: string;
|
|
83
109
|
properties: {
|
|
84
|
-
|
|
110
|
+
event_type: {
|
|
111
|
+
type: string;
|
|
112
|
+
description: string;
|
|
113
|
+
enum: string[];
|
|
114
|
+
};
|
|
115
|
+
phone: {
|
|
116
|
+
type: string;
|
|
117
|
+
description: string;
|
|
118
|
+
};
|
|
119
|
+
to: {
|
|
120
|
+
type: string;
|
|
121
|
+
description: string;
|
|
122
|
+
};
|
|
123
|
+
message_id: {
|
|
124
|
+
type: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
msg_id: {
|
|
85
128
|
type: string;
|
|
86
129
|
description: string;
|
|
87
130
|
};
|
|
88
|
-
to?: undefined;
|
|
89
131
|
text?: undefined;
|
|
90
132
|
media?: undefined;
|
|
91
133
|
suggestions?: undefined;
|
|
92
134
|
orientation?: undefined;
|
|
93
135
|
from?: undefined;
|
|
94
136
|
foreign_id?: undefined;
|
|
137
|
+
delay?: undefined;
|
|
138
|
+
ttl?: undefined;
|
|
139
|
+
label?: undefined;
|
|
140
|
+
performance_tracking?: undefined;
|
|
95
141
|
id?: undefined;
|
|
96
142
|
};
|
|
97
143
|
required: string[];
|
package/dist/tools/rcs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rcs.d.ts","sourceRoot":"","sources":["../../src/tools/rcs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAsB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,oBAEnE;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,oBAE9D;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"rcs.d.ts","sourceRoot":"","sources":["../../src/tools/rcs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAsB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,oBAEnE;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,oBAE9D;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,oBAuB/D;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4GpB,CAAC"}
|
package/dist/tools/rcs.js
CHANGED
|
@@ -5,7 +5,24 @@ export async function deleteRCS(client, id) {
|
|
|
5
5
|
return await client.delete(`/rcs/messages/${id}`);
|
|
6
6
|
}
|
|
7
7
|
export async function rcsEvents(client, params) {
|
|
8
|
-
|
|
8
|
+
// Transform property names based on event type
|
|
9
|
+
const payload = { ...params };
|
|
10
|
+
// Rename event_type to event (correct API parameter name)
|
|
11
|
+
if (payload.event_type) {
|
|
12
|
+
payload.event = payload.event_type;
|
|
13
|
+
delete payload.event_type;
|
|
14
|
+
}
|
|
15
|
+
// For IS_TYPING events, use 'to' property instead of 'phone'
|
|
16
|
+
if (payload.phone && payload.event === 'IS_TYPING') {
|
|
17
|
+
payload.to = payload.phone;
|
|
18
|
+
delete payload.phone;
|
|
19
|
+
}
|
|
20
|
+
// For READ events, use 'msg_id' instead of 'message_id'
|
|
21
|
+
if (payload.message_id && payload.event === 'READ') {
|
|
22
|
+
payload.msg_id = payload.message_id;
|
|
23
|
+
delete payload.message_id;
|
|
24
|
+
}
|
|
25
|
+
return await client.post('/rcs/events', payload);
|
|
9
26
|
}
|
|
10
27
|
export const rcsTools = [
|
|
11
28
|
{
|
|
@@ -50,6 +67,22 @@ export const rcsTools = [
|
|
|
50
67
|
type: 'string',
|
|
51
68
|
description: 'Custom ID for tracking',
|
|
52
69
|
},
|
|
70
|
+
delay: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'Delayed sending timestamp (Unix timestamp or ISO 8601)',
|
|
73
|
+
},
|
|
74
|
+
ttl: {
|
|
75
|
+
type: 'number',
|
|
76
|
+
description: 'Time to live in minutes',
|
|
77
|
+
},
|
|
78
|
+
label: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
description: 'Custom label for the message',
|
|
81
|
+
},
|
|
82
|
+
performance_tracking: {
|
|
83
|
+
type: 'boolean',
|
|
84
|
+
description: 'Enable performance tracking',
|
|
85
|
+
},
|
|
53
86
|
},
|
|
54
87
|
required: ['to'],
|
|
55
88
|
},
|
|
@@ -70,16 +103,33 @@ export const rcsTools = [
|
|
|
70
103
|
},
|
|
71
104
|
{
|
|
72
105
|
name: 'rcs_events',
|
|
73
|
-
description: 'Handle RCS events (delivery reports, read receipts, etc.)',
|
|
106
|
+
description: 'Handle RCS events (delivery reports, read receipts, IS_TYPING, etc.)',
|
|
74
107
|
inputSchema: {
|
|
75
108
|
type: 'object',
|
|
76
109
|
properties: {
|
|
77
|
-
|
|
78
|
-
type: '
|
|
79
|
-
description: 'Event
|
|
110
|
+
event_type: {
|
|
111
|
+
type: 'string',
|
|
112
|
+
description: 'Event type (IS_TYPING, READ, DELIVERED, etc.)',
|
|
113
|
+
enum: ['IS_TYPING', 'READ', 'DELIVERED'],
|
|
114
|
+
},
|
|
115
|
+
phone: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
description: 'Phone number (for IS_TYPING events)',
|
|
118
|
+
},
|
|
119
|
+
to: {
|
|
120
|
+
type: 'string',
|
|
121
|
+
description: 'Recipient phone number',
|
|
122
|
+
},
|
|
123
|
+
message_id: {
|
|
124
|
+
type: 'string',
|
|
125
|
+
description: 'Message ID (for READ events)',
|
|
126
|
+
},
|
|
127
|
+
msg_id: {
|
|
128
|
+
type: 'string',
|
|
129
|
+
description: 'Message ID (alternative)',
|
|
80
130
|
},
|
|
81
131
|
},
|
|
82
|
-
required: ['
|
|
132
|
+
required: ['event_type'],
|
|
83
133
|
},
|
|
84
134
|
},
|
|
85
135
|
];
|
package/dist/tools/rcs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rcs.js","sourceRoot":"","sources":["../../src/tools/rcs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAAmB,EAAE,MAAiB;IAClE,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,MAAmB,EAAE,EAAU;IAC7D,OAAO,MAAM,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,MAAmB,EAAE,MAAW;IAC9D,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"rcs.js","sourceRoot":"","sources":["../../src/tools/rcs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAAmB,EAAE,MAAiB;IAClE,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AACpD,C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,YAAY;QAClB,WAAW,EAAE,sEAAsE;QACnF,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,+CAA+C;oBAC5D,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC;iBACzC;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,qCAAqC;iBACnD;gBACD,EAAE,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,wBAAwB;iBACtC;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8BAA8B;iBAC5C;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,0BAA0B;iBACxC;aACF;YACD,QAAQ,EAAE,CAAC,YAAY,CAAC;SACzB;KACF;CACF,CAAC"}
|
package/dist/tools/sms.d.ts
CHANGED
|
@@ -71,6 +71,40 @@ export declare const smsTools: ({
|
|
|
71
71
|
type: string;
|
|
72
72
|
description: string;
|
|
73
73
|
};
|
|
74
|
+
udh: {
|
|
75
|
+
type: string;
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
is_binary: {
|
|
79
|
+
type: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
files: {
|
|
83
|
+
type: string;
|
|
84
|
+
description: string;
|
|
85
|
+
items: {
|
|
86
|
+
type: string;
|
|
87
|
+
properties: {
|
|
88
|
+
name: {
|
|
89
|
+
type: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
contents: {
|
|
93
|
+
type: string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
validity: {
|
|
97
|
+
type: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
password: {
|
|
101
|
+
type: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
required: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
74
108
|
ids?: undefined;
|
|
75
109
|
};
|
|
76
110
|
required: string[];
|
|
@@ -103,6 +137,9 @@ export declare const smsTools: ({
|
|
|
103
137
|
label?: undefined;
|
|
104
138
|
foreign_id?: undefined;
|
|
105
139
|
ttl?: undefined;
|
|
140
|
+
udh?: undefined;
|
|
141
|
+
is_binary?: undefined;
|
|
142
|
+
files?: undefined;
|
|
106
143
|
};
|
|
107
144
|
required: string[];
|
|
108
145
|
};
|
package/dist/tools/sms.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms.d.ts","sourceRoot":"","sources":["../../src/tools/sms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAsB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,oBAEnE;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"sms.d.ts","sourceRoot":"","sources":["../../src/tools/sms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAsB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,oBAEnE;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,oBAI1E;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyHpB,CAAC"}
|
package/dist/tools/sms.js
CHANGED
|
@@ -2,7 +2,9 @@ export async function sendSMS(client, params) {
|
|
|
2
2
|
return await client.post('/sms', params);
|
|
3
3
|
}
|
|
4
4
|
export async function deleteSMS(client, ids) {
|
|
5
|
-
|
|
5
|
+
// Convert ids to array format for query params
|
|
6
|
+
const idsArray = Array.isArray(ids) ? ids : [ids];
|
|
7
|
+
return await client.delete('/sms', { ids: idsArray });
|
|
6
8
|
}
|
|
7
9
|
export const smsTools = [
|
|
8
10
|
{
|
|
@@ -72,6 +74,40 @@ export const smsTools = [
|
|
|
72
74
|
type: 'number',
|
|
73
75
|
description: 'Time to live in minutes',
|
|
74
76
|
},
|
|
77
|
+
udh: {
|
|
78
|
+
type: 'string',
|
|
79
|
+
description: 'User Data Header for binary SMS',
|
|
80
|
+
},
|
|
81
|
+
is_binary: {
|
|
82
|
+
type: 'boolean',
|
|
83
|
+
description: 'Send as binary SMS',
|
|
84
|
+
},
|
|
85
|
+
files: {
|
|
86
|
+
type: 'array',
|
|
87
|
+
description: 'File attachments for SMS',
|
|
88
|
+
items: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
name: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: 'File name',
|
|
94
|
+
},
|
|
95
|
+
contents: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
description: 'Base64 encoded file content',
|
|
98
|
+
},
|
|
99
|
+
validity: {
|
|
100
|
+
type: 'number',
|
|
101
|
+
description: 'File deletion period in days',
|
|
102
|
+
},
|
|
103
|
+
password: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
description: 'Password to access the file',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
required: ['name', 'contents'],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
75
111
|
},
|
|
76
112
|
required: ['to', 'text'],
|
|
77
113
|
},
|
package/dist/tools/sms.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/tools/sms.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAAmB,EAAE,MAAiB;IAClE,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,MAAmB,EAAE,GAAsB;IACzE,
|
|
1
|
+
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/tools/sms.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAAmB,EAAE,MAAiB;IAClE,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,MAAmB,EAAE,GAAsB;IACzE,+CAA+C;IAC/C,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAClD,OAAO,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;QACE,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,mDAAmD;QAChE,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE;oBACF,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;oBACzB,WAAW,EAAE,2BAA2B;oBACxC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC1B;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ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;oBACb,WAAW,EAAE,0BAA0B;oBACvC,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,IAAI,EAAE;gCACJ,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,WAAW;6BACzB;4BACD,QAAQ,EAAE;gCACR,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,6BAA6B;6BAC3C;4BACD,QAAQ,EAAE;gCACR,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,8BAA8B;6BAC5C;4BACD,QAAQ,EAAE;gCACR,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,6BAA6B;6BAC3C;yBACF;wBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;qBAC/B;iBACF;aACF;YACD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;SACzB;KACF;IACD;QACE,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE;oBACH,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;oBACzB,WAAW,EAAE,6BAA6B;oBAC1C,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC1B;aACF;YACD,QAAQ,EAAE,CAAC,KAAK,CAAC;SAClB;KACF;CACF,CAAC"}
|
package/dist/tools/status.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SevenClient } from '../client.js';
|
|
2
2
|
export declare function getStatus(client: SevenClient, params: {
|
|
3
|
-
|
|
4
|
-
date?: string;
|
|
3
|
+
id: string;
|
|
5
4
|
}): Promise<unknown>;
|
|
6
5
|
export declare function getLogbookSent(client: SevenClient, params?: {
|
|
7
6
|
date_from?: string;
|
|
8
7
|
date_to?: string;
|
|
9
8
|
state?: string;
|
|
9
|
+
limit?: number;
|
|
10
10
|
}): Promise<unknown>;
|
|
11
11
|
export declare function getLogbookReceived(client: SevenClient, params?: {
|
|
12
12
|
date_from?: string;
|
|
@@ -22,18 +22,16 @@ export declare const statusTools: ({
|
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: string;
|
|
24
24
|
properties: {
|
|
25
|
-
|
|
26
|
-
type: string;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
date: {
|
|
25
|
+
id: {
|
|
30
26
|
type: string;
|
|
31
27
|
description: string;
|
|
32
28
|
};
|
|
33
29
|
date_from?: undefined;
|
|
34
30
|
date_to?: undefined;
|
|
35
31
|
state?: undefined;
|
|
32
|
+
limit?: undefined;
|
|
36
33
|
};
|
|
34
|
+
required: string[];
|
|
37
35
|
};
|
|
38
36
|
} | {
|
|
39
37
|
name: string;
|
|
@@ -54,9 +52,13 @@ export declare const statusTools: ({
|
|
|
54
52
|
description: string;
|
|
55
53
|
enum: string[];
|
|
56
54
|
};
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
limit: {
|
|
56
|
+
type: string;
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
id?: undefined;
|
|
59
60
|
};
|
|
61
|
+
required?: undefined;
|
|
60
62
|
};
|
|
61
63
|
} | {
|
|
62
64
|
name: string;
|
|
@@ -72,10 +74,11 @@ export declare const statusTools: ({
|
|
|
72
74
|
type: string;
|
|
73
75
|
description: string;
|
|
74
76
|
};
|
|
75
|
-
|
|
76
|
-
date?: undefined;
|
|
77
|
+
id?: undefined;
|
|
77
78
|
state?: undefined;
|
|
79
|
+
limit?: undefined;
|
|
78
80
|
};
|
|
81
|
+
required?: undefined;
|
|
79
82
|
};
|
|
80
83
|
})[];
|
|
81
84
|
//# sourceMappingURL=status.d.ts.map
|