@rnsk/toolkits 0.0.8 → 0.0.9
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +17 -1
- package/dist/toolkits/bitbucket/icon.d.ts +5 -0
- package/dist/toolkits/bitbucket/icon.js +6 -0
- package/dist/toolkits/bitbucket/manifest.d.ts +3 -0
- package/dist/toolkits/bitbucket/manifest.js +56 -0
- package/dist/toolkits/bitbucket/tools/client.d.ts +38 -0
- package/dist/toolkits/bitbucket/tools/client.js +87 -0
- package/dist/toolkits/bitbucket/tools/commits.d.ts +149 -0
- package/dist/toolkits/bitbucket/tools/commits.js +444 -0
- package/dist/toolkits/bitbucket/tools/index.d.ts +1093 -0
- package/dist/toolkits/bitbucket/tools/index.js +770 -0
- package/dist/toolkits/bitbucket/tools/issues.d.ts +73 -0
- package/dist/toolkits/bitbucket/tools/issues.js +234 -0
- package/dist/toolkits/bitbucket/tools/pipelines.d.ts +124 -0
- package/dist/toolkits/bitbucket/tools/pipelines.js +446 -0
- package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +174 -0
- package/dist/toolkits/bitbucket/tools/pull-requests.js +541 -0
- package/dist/toolkits/bitbucket/tools/reports.d.ts +84 -0
- package/dist/toolkits/bitbucket/tools/reports.js +213 -0
- package/dist/toolkits/bitbucket/tools/repositories.d.ts +156 -0
- package/dist/toolkits/bitbucket/tools/repositories.js +531 -0
- package/dist/toolkits/bitbucket/tools/search.d.ts +17 -0
- package/dist/toolkits/bitbucket/tools/search.js +67 -0
- package/dist/toolkits/bitbucket/tools/snippets.d.ts +34 -0
- package/dist/toolkits/bitbucket/tools/snippets.js +122 -0
- package/dist/toolkits/bitbucket/tools/users-workspaces.d.ts +65 -0
- package/dist/toolkits/bitbucket/tools/users-workspaces.js +294 -0
- package/dist/toolkits/discord/icon.d.ts +5 -0
- package/dist/toolkits/discord/icon.js +12 -0
- package/dist/toolkits/discord/manifest.d.ts +3 -0
- package/dist/toolkits/discord/manifest.js +52 -0
- package/dist/toolkits/discord/tools/applications.d.ts +79 -0
- package/dist/toolkits/discord/tools/applications.js +216 -0
- package/dist/toolkits/discord/tools/client.d.ts +22 -0
- package/dist/toolkits/discord/tools/client.js +69 -0
- package/dist/toolkits/discord/tools/guilds.d.ts +39 -0
- package/dist/toolkits/discord/tools/guilds.js +123 -0
- package/dist/toolkits/discord/tools/index.d.ts +222 -0
- package/dist/toolkits/discord/tools/index.js +170 -0
- package/dist/toolkits/discord/tools/misc.d.ts +7 -0
- package/dist/toolkits/discord/tools/misc.js +40 -0
- package/dist/toolkits/discord/tools/users.d.ts +28 -0
- package/dist/toolkits/discord/tools/users.js +128 -0
- package/dist/toolkits/figma/tools/index.d.ts +1 -1
- package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
- package/dist/toolkits/gitlab/icon.d.ts +5 -0
- package/dist/toolkits/gitlab/icon.js +6 -0
- package/dist/toolkits/gitlab/manifest.d.ts +3 -0
- package/dist/toolkits/gitlab/manifest.js +36 -0
- package/dist/toolkits/gitlab/tools/client.d.ts +7 -0
- package/dist/toolkits/gitlab/tools/client.js +45 -0
- package/dist/toolkits/gitlab/tools/index.d.ts +306 -0
- package/dist/toolkits/gitlab/tools/index.js +36 -0
- package/dist/toolkits/gitlab/tools/issues.d.ts +45 -0
- package/dist/toolkits/gitlab/tools/issues.js +103 -0
- package/dist/toolkits/gitlab/tools/merge-requests.d.ts +35 -0
- package/dist/toolkits/gitlab/tools/merge-requests.js +91 -0
- package/dist/toolkits/gitlab/tools/pipelines.d.ts +30 -0
- package/dist/toolkits/gitlab/tools/pipelines.js +66 -0
- package/dist/toolkits/gitlab/tools/projects.d.ts +36 -0
- package/dist/toolkits/gitlab/tools/projects.js +94 -0
- package/dist/toolkits/gitlab/tools/repository.d.ts +21 -0
- package/dist/toolkits/gitlab/tools/repository.js +53 -0
- package/dist/toolkits/gitlab/tools/users-groups.d.ts +11 -0
- package/dist/toolkits/gitlab/tools/users-groups.js +30 -0
- package/dist/toolkits/google-ads/tools/get-rmf-report.d.ts +2 -2
- package/dist/toolkits/google-ads/tools/index.d.ts +2 -2
- package/dist/toolkits/google-analytics/icon.d.ts +5 -0
- package/dist/toolkits/google-analytics/icon.js +11 -0
- package/dist/toolkits/google-analytics/manifest.d.ts +3 -0
- package/dist/toolkits/google-analytics/manifest.js +48 -0
- package/dist/toolkits/google-analytics/tools/admin.d.ts +73 -0
- package/dist/toolkits/google-analytics/tools/admin.js +238 -0
- package/dist/toolkits/google-analytics/tools/audiences.d.ts +81 -0
- package/dist/toolkits/google-analytics/tools/audiences.js +190 -0
- package/dist/toolkits/google-analytics/tools/client.d.ts +47 -0
- package/dist/toolkits/google-analytics/tools/client.js +74 -0
- package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +62 -0
- package/dist/toolkits/google-analytics/tools/custom-definitions.js +106 -0
- package/dist/toolkits/google-analytics/tools/index.d.ts +16 -0
- package/dist/toolkits/google-analytics/tools/index.js +88 -0
- package/dist/toolkits/google-analytics/tools/links.d.ts +22 -0
- package/dist/toolkits/google-analytics/tools/links.js +56 -0
- package/dist/toolkits/google-analytics/tools/measurement.d.ts +3 -0
- package/dist/toolkits/google-analytics/tools/measurement.js +55 -0
- package/dist/toolkits/google-analytics/tools/reports.d.ts +136 -0
- package/dist/toolkits/google-analytics/tools/reports.js +200 -0
- package/dist/toolkits/google-contacts/icon.d.ts +5 -0
- package/dist/toolkits/google-contacts/icon.js +6 -0
- package/dist/toolkits/google-contacts/manifest.d.ts +3 -0
- package/dist/toolkits/google-contacts/manifest.js +48 -0
- package/dist/toolkits/google-contacts/tools/client.d.ts +19 -0
- package/dist/toolkits/google-contacts/tools/client.js +44 -0
- package/dist/toolkits/google-contacts/tools/contacts.d.ts +94 -0
- package/dist/toolkits/google-contacts/tools/contacts.js +273 -0
- package/dist/toolkits/google-contacts/tools/directory.d.ts +36 -0
- package/dist/toolkits/google-contacts/tools/directory.js +99 -0
- package/dist/toolkits/google-contacts/tools/groups.d.ts +68 -0
- package/dist/toolkits/google-contacts/tools/groups.js +169 -0
- package/dist/toolkits/google-contacts/tools/index.d.ts +347 -0
- package/dist/toolkits/google-contacts/tools/index.js +34 -0
- package/dist/toolkits/google-contacts/tools/photos.d.ts +26 -0
- package/dist/toolkits/google-contacts/tools/photos.js +52 -0
- package/dist/toolkits/google-maps/icon.d.ts +5 -0
- package/dist/toolkits/google-maps/icon.js +39 -0
- package/dist/toolkits/google-maps/manifest.d.ts +3 -0
- package/dist/toolkits/google-maps/manifest.js +55 -0
- package/dist/toolkits/google-maps/tools/client.d.ts +27 -0
- package/dist/toolkits/google-maps/tools/client.js +72 -0
- package/dist/toolkits/google-maps/tools/geocode.d.ts +49 -0
- package/dist/toolkits/google-maps/tools/geocode.js +168 -0
- package/dist/toolkits/google-maps/tools/index.d.ts +432 -0
- package/dist/toolkits/google-maps/tools/index.js +31 -0
- package/dist/toolkits/google-maps/tools/misc.d.ts +70 -0
- package/dist/toolkits/google-maps/tools/misc.js +158 -0
- package/dist/toolkits/google-maps/tools/places.d.ts +112 -0
- package/dist/toolkits/google-maps/tools/places.js +185 -0
- package/dist/toolkits/google-maps/tools/routes.d.ts +48 -0
- package/dist/toolkits/google-maps/tools/routes.js +97 -0
- package/dist/toolkits/google-maps/tools/tiles.d.ts +51 -0
- package/dist/toolkits/google-maps/tools/tiles.js +84 -0
- package/dist/toolkits/google-photos/icon.d.ts +5 -0
- package/dist/toolkits/google-photos/icon.js +6 -0
- package/dist/toolkits/google-photos/manifest.d.ts +3 -0
- package/dist/toolkits/google-photos/manifest.js +47 -0
- package/dist/toolkits/google-photos/tools/albums.d.ts +83 -0
- package/dist/toolkits/google-photos/tools/albums.js +180 -0
- package/dist/toolkits/google-photos/tools/client.d.ts +24 -0
- package/dist/toolkits/google-photos/tools/client.js +77 -0
- package/dist/toolkits/google-photos/tools/index.d.ts +261 -0
- package/dist/toolkits/google-photos/tools/index.js +22 -0
- package/dist/toolkits/google-photos/tools/media.d.ts +52 -0
- package/dist/toolkits/google-photos/tools/media.js +142 -0
- package/dist/toolkits/google-photos/tools/uploads.d.ts +58 -0
- package/dist/toolkits/google-photos/tools/uploads.js +107 -0
- package/dist/toolkits/google-tasks/tools/index.d.ts +1 -1
- package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
- package/dist/toolkits/groww/tools/index.d.ts +1 -1
- package/dist/toolkits/groww/tools/instruments.d.ts +1 -1
- package/dist/toolkits/reddit/tools/index.d.ts +1 -1
- package/dist/toolkits/reddit/tools/search-across-subreddits.d.ts +1 -1
- package/dist/toolkits/slack/icon.d.ts +5 -0
- package/dist/toolkits/slack/icon.js +20 -0
- package/dist/toolkits/slack/manifest.d.ts +3 -0
- package/dist/toolkits/slack/manifest.js +93 -0
- package/dist/toolkits/slack/tools/admin-apps.d.ts +32 -0
- package/dist/toolkits/slack/tools/admin-apps.js +116 -0
- package/dist/toolkits/slack/tools/admin-conversations.d.ts +62 -0
- package/dist/toolkits/slack/tools/admin-conversations.js +246 -0
- package/dist/toolkits/slack/tools/admin-invites.d.ts +19 -0
- package/dist/toolkits/slack/tools/admin-invites.js +75 -0
- package/dist/toolkits/slack/tools/admin-users.d.ts +52 -0
- package/dist/toolkits/slack/tools/admin-users.js +182 -0
- package/dist/toolkits/slack/tools/audit.d.ts +20 -0
- package/dist/toolkits/slack/tools/audit.js +81 -0
- package/dist/toolkits/slack/tools/calls.d.ts +38 -0
- package/dist/toolkits/slack/tools/calls.js +141 -0
- package/dist/toolkits/slack/tools/canvas.d.ts +24 -0
- package/dist/toolkits/slack/tools/canvas.js +102 -0
- package/dist/toolkits/slack/tools/client.d.ts +22 -0
- package/dist/toolkits/slack/tools/client.js +73 -0
- package/dist/toolkits/slack/tools/conversations.d.ts +131 -0
- package/dist/toolkits/slack/tools/conversations.js +463 -0
- package/dist/toolkits/slack/tools/emoji.d.ts +29 -0
- package/dist/toolkits/slack/tools/emoji.js +118 -0
- package/dist/toolkits/slack/tools/files.d.ts +113 -0
- package/dist/toolkits/slack/tools/files.js +368 -0
- package/dist/toolkits/slack/tools/index.d.ts +28 -0
- package/dist/toolkits/slack/tools/index.js +187 -0
- package/dist/toolkits/slack/tools/messages.d.ts +106 -0
- package/dist/toolkits/slack/tools/messages.js +340 -0
- package/dist/toolkits/slack/tools/misc.d.ts +42 -0
- package/dist/toolkits/slack/tools/misc.js +127 -0
- package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +69 -0
- package/dist/toolkits/slack/tools/reactions-stars-pins.js +236 -0
- package/dist/toolkits/slack/tools/reminders.d.ts +22 -0
- package/dist/toolkits/slack/tools/reminders.js +83 -0
- package/dist/toolkits/slack/tools/search.d.ts +49 -0
- package/dist/toolkits/slack/tools/search.js +155 -0
- package/dist/toolkits/slack/tools/slack-lists.d.ts +65 -0
- package/dist/toolkits/slack/tools/slack-lists.js +282 -0
- package/dist/toolkits/slack/tools/teams.d.ts +75 -0
- package/dist/toolkits/slack/tools/teams.js +285 -0
- package/dist/toolkits/slack/tools/usergroups.d.ts +56 -0
- package/dist/toolkits/slack/tools/usergroups.js +194 -0
- package/dist/toolkits/slack/tools/users.d.ts +87 -0
- package/dist/toolkits/slack/tools/users.js +396 -0
- package/dist/toolkits/youtube/tools/add-video-to-playlist.d.ts +1 -1
- package/dist/toolkits/youtube/tools/delete-video.d.ts +1 -1
- package/dist/toolkits/youtube/tools/index.d.ts +10 -10
- package/dist/toolkits/youtube/tools/list-caption-track.d.ts +1 -1
- package/dist/toolkits/youtube/tools/list-playlist-items.d.ts +1 -1
- package/dist/toolkits/youtube/tools/list-video-categories.d.ts +1 -1
- package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
- package/dist/toolkits/youtube/tools/report-video-abuse.d.ts +1 -1
- package/dist/toolkits/youtube/tools/search-youtube.d.ts +1 -1
- package/dist/toolkits/youtube/tools/update-thumbnail.d.ts +1 -1
- package/dist/toolkits/youtube/tools/update-video.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { batchCreateContacts, batchDeleteContacts, batchGetPeople, batchUpdateContacts, copyOtherContactToMyContacts, createContact, deleteContact, getPerson, listConnections, searchContacts, updateContact } from './contacts.js';
|
|
2
|
+
import { batchGetContactGroups, createContactGroup, deleteContactGroup, getContactGroup, listContactGroups, modifyContactGroupMembers, updateContactGroup } from './groups.js';
|
|
3
|
+
import { deleteContactPhoto, updateContactPhoto } from './photos.js';
|
|
4
|
+
import { listDirectoryPeople, listOtherContacts, searchDirectoryPeople, searchOtherContacts } from './directory.js';
|
|
5
|
+
export { batchCreateContacts, batchDeleteContacts, batchGetPeople, copyOtherContactToMyContacts, createContact, deleteContact, getPerson, listConnections, searchContacts, updateContact, batchUpdateContacts, batchGetContactGroups, createContactGroup, deleteContactGroup, getContactGroup, listContactGroups, modifyContactGroupMembers, updateContactGroup, deleteContactPhoto, updateContactPhoto, listDirectoryPeople, listOtherContacts, searchDirectoryPeople, searchOtherContacts, };
|
|
6
|
+
export declare const googleContactsTools: ({
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
tool: import("ai").Tool<{
|
|
10
|
+
personFields: string;
|
|
11
|
+
googleContactsToken: string;
|
|
12
|
+
sources?: string[] | undefined;
|
|
13
|
+
person?: Record<string, any> | undefined;
|
|
14
|
+
names?: Record<string, any>[] | undefined;
|
|
15
|
+
emailAddresses?: Record<string, any>[] | undefined;
|
|
16
|
+
phoneNumbers?: Record<string, any>[] | undefined;
|
|
17
|
+
}, any>;
|
|
18
|
+
requiredAuth: "googleContactsToken";
|
|
19
|
+
scope: "write";
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
tool: import("ai").Tool<{
|
|
24
|
+
readMask: string;
|
|
25
|
+
googleContactsToken: string;
|
|
26
|
+
contacts: Record<string, any>[];
|
|
27
|
+
sources?: string[] | undefined;
|
|
28
|
+
}, any>;
|
|
29
|
+
requiredAuth: "googleContactsToken";
|
|
30
|
+
scope: "write";
|
|
31
|
+
} | {
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
tool: import("ai").Tool<{
|
|
35
|
+
resourceName: string;
|
|
36
|
+
googleContactsToken: string;
|
|
37
|
+
person: Record<string, any>;
|
|
38
|
+
updatePersonFields: string;
|
|
39
|
+
personFields?: string | undefined;
|
|
40
|
+
sources?: string[] | undefined;
|
|
41
|
+
}, any>;
|
|
42
|
+
requiredAuth: "googleContactsToken";
|
|
43
|
+
scope: "write";
|
|
44
|
+
} | {
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
tool: import("ai").Tool<{
|
|
48
|
+
readMask: string;
|
|
49
|
+
googleContactsToken: string;
|
|
50
|
+
contacts: Record<string, any>;
|
|
51
|
+
updateMask: string;
|
|
52
|
+
sources?: string[] | undefined;
|
|
53
|
+
}, any>;
|
|
54
|
+
requiredAuth: "googleContactsToken";
|
|
55
|
+
scope: "write";
|
|
56
|
+
} | {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
tool: import("ai").Tool<{
|
|
60
|
+
resourceName: string;
|
|
61
|
+
googleContactsToken: string;
|
|
62
|
+
}, any>;
|
|
63
|
+
requiredAuth: "googleContactsToken";
|
|
64
|
+
scope: "delete";
|
|
65
|
+
} | {
|
|
66
|
+
name: string;
|
|
67
|
+
description: string;
|
|
68
|
+
tool: import("ai").Tool<{
|
|
69
|
+
googleContactsToken: string;
|
|
70
|
+
resourceNames: string[];
|
|
71
|
+
}, {
|
|
72
|
+
error: string;
|
|
73
|
+
details: any;
|
|
74
|
+
success?: undefined;
|
|
75
|
+
deletedCount?: undefined;
|
|
76
|
+
message?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
success: boolean;
|
|
79
|
+
deletedCount: number;
|
|
80
|
+
error?: undefined;
|
|
81
|
+
details?: undefined;
|
|
82
|
+
message?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
error: string;
|
|
85
|
+
message: string;
|
|
86
|
+
details?: undefined;
|
|
87
|
+
success?: undefined;
|
|
88
|
+
deletedCount?: undefined;
|
|
89
|
+
}>;
|
|
90
|
+
requiredAuth: "googleContactsToken";
|
|
91
|
+
scope: "delete";
|
|
92
|
+
} | {
|
|
93
|
+
name: string;
|
|
94
|
+
description: string;
|
|
95
|
+
tool: import("ai").Tool<{
|
|
96
|
+
resourceName: string;
|
|
97
|
+
personFields: string;
|
|
98
|
+
googleContactsToken: string;
|
|
99
|
+
sources?: string[] | undefined;
|
|
100
|
+
requestMaskIncludeField?: string | undefined;
|
|
101
|
+
}, any>;
|
|
102
|
+
requiredAuth: "googleContactsToken";
|
|
103
|
+
scope: "read";
|
|
104
|
+
} | {
|
|
105
|
+
name: string;
|
|
106
|
+
description: string;
|
|
107
|
+
tool: import("ai").Tool<{
|
|
108
|
+
personFields: string;
|
|
109
|
+
googleContactsToken: string;
|
|
110
|
+
resourceNames: string[];
|
|
111
|
+
sources?: string[] | undefined;
|
|
112
|
+
}, any>;
|
|
113
|
+
requiredAuth: "googleContactsToken";
|
|
114
|
+
scope: "read";
|
|
115
|
+
} | {
|
|
116
|
+
name: string;
|
|
117
|
+
description: string;
|
|
118
|
+
tool: import("ai").Tool<{
|
|
119
|
+
googleContactsToken: string;
|
|
120
|
+
pageToken?: string | undefined;
|
|
121
|
+
personFields?: string | undefined;
|
|
122
|
+
pageSize?: number | undefined;
|
|
123
|
+
personId?: string | undefined;
|
|
124
|
+
syncToken?: string | undefined;
|
|
125
|
+
requestSyncToken?: boolean | undefined;
|
|
126
|
+
sortOrder?: "LAST_MODIFIED_ASCENDING" | "LAST_MODIFIED_DESCENDING" | "FIRST_NAME_ASCENDING" | "LAST_NAME_ASCENDING" | undefined;
|
|
127
|
+
}, any>;
|
|
128
|
+
requiredAuth: "googleContactsToken";
|
|
129
|
+
scope: "read";
|
|
130
|
+
} | {
|
|
131
|
+
name: string;
|
|
132
|
+
description: string;
|
|
133
|
+
tool: import("ai").Tool<{
|
|
134
|
+
query: string;
|
|
135
|
+
googleContactsToken: string;
|
|
136
|
+
readMask?: string | undefined;
|
|
137
|
+
sources?: ("CONTACT" | "PROFILE")[] | undefined;
|
|
138
|
+
pageSize?: number | undefined;
|
|
139
|
+
}, any>;
|
|
140
|
+
requiredAuth: "googleContactsToken";
|
|
141
|
+
scope: "read";
|
|
142
|
+
} | {
|
|
143
|
+
name: string;
|
|
144
|
+
description: string;
|
|
145
|
+
tool: import("ai").Tool<{
|
|
146
|
+
googleContactsToken: string;
|
|
147
|
+
otherContactsId: string;
|
|
148
|
+
copyMask: ("names" | "emailAddresses" | "phoneNumbers")[];
|
|
149
|
+
readMask?: string | undefined;
|
|
150
|
+
sources?: string[] | undefined;
|
|
151
|
+
}, any>;
|
|
152
|
+
requiredAuth: "googleContactsToken";
|
|
153
|
+
scope: "write";
|
|
154
|
+
} | {
|
|
155
|
+
name: string;
|
|
156
|
+
description: string;
|
|
157
|
+
tool: import("ai").Tool<{
|
|
158
|
+
name: string;
|
|
159
|
+
googleContactsToken: string;
|
|
160
|
+
clientData?: {
|
|
161
|
+
value: string;
|
|
162
|
+
key: string;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
readGroupFields?: string | undefined;
|
|
165
|
+
}, any>;
|
|
166
|
+
requiredAuth: "googleContactsToken";
|
|
167
|
+
scope: "write";
|
|
168
|
+
} | {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
tool: import("ai").Tool<{
|
|
172
|
+
googleContactsToken: string;
|
|
173
|
+
contactGroupId: string;
|
|
174
|
+
groupFields?: string | undefined;
|
|
175
|
+
maxMembers?: number | undefined;
|
|
176
|
+
}, any>;
|
|
177
|
+
requiredAuth: "googleContactsToken";
|
|
178
|
+
scope: "read";
|
|
179
|
+
} | {
|
|
180
|
+
name: string;
|
|
181
|
+
description: string;
|
|
182
|
+
tool: import("ai").Tool<{
|
|
183
|
+
googleContactsToken: string;
|
|
184
|
+
resourceNames: string[];
|
|
185
|
+
groupFields?: string | undefined;
|
|
186
|
+
maxMembers?: number | undefined;
|
|
187
|
+
}, any>;
|
|
188
|
+
requiredAuth: "googleContactsToken";
|
|
189
|
+
scope: "read";
|
|
190
|
+
} | {
|
|
191
|
+
name: string;
|
|
192
|
+
description: string;
|
|
193
|
+
tool: import("ai").Tool<{
|
|
194
|
+
googleContactsToken: string;
|
|
195
|
+
pageToken?: string | undefined;
|
|
196
|
+
pageSize?: number | undefined;
|
|
197
|
+
syncToken?: string | undefined;
|
|
198
|
+
groupFields?: string | undefined;
|
|
199
|
+
}, any>;
|
|
200
|
+
requiredAuth: "googleContactsToken";
|
|
201
|
+
scope: "read";
|
|
202
|
+
} | {
|
|
203
|
+
name: string;
|
|
204
|
+
description: string;
|
|
205
|
+
tool: import("ai").Tool<{
|
|
206
|
+
resourceName: string;
|
|
207
|
+
name: string;
|
|
208
|
+
googleContactsToken: string;
|
|
209
|
+
etag: string;
|
|
210
|
+
clientData?: {
|
|
211
|
+
value: string;
|
|
212
|
+
key: string;
|
|
213
|
+
}[] | undefined;
|
|
214
|
+
readGroupFields?: string | undefined;
|
|
215
|
+
groupType?: string | undefined;
|
|
216
|
+
updateGroupFields?: string | undefined;
|
|
217
|
+
}, any>;
|
|
218
|
+
requiredAuth: "googleContactsToken";
|
|
219
|
+
scope: "write";
|
|
220
|
+
} | {
|
|
221
|
+
name: string;
|
|
222
|
+
description: string;
|
|
223
|
+
tool: import("ai").Tool<{
|
|
224
|
+
googleContactsToken: string;
|
|
225
|
+
contactGroupId: string;
|
|
226
|
+
deleteContacts?: boolean | undefined;
|
|
227
|
+
}, {
|
|
228
|
+
error: string;
|
|
229
|
+
details: any;
|
|
230
|
+
success?: undefined;
|
|
231
|
+
message?: undefined;
|
|
232
|
+
} | {
|
|
233
|
+
success: boolean;
|
|
234
|
+
error?: undefined;
|
|
235
|
+
details?: undefined;
|
|
236
|
+
message?: undefined;
|
|
237
|
+
} | {
|
|
238
|
+
error: string;
|
|
239
|
+
message: string;
|
|
240
|
+
details?: undefined;
|
|
241
|
+
success?: undefined;
|
|
242
|
+
}>;
|
|
243
|
+
requiredAuth: "googleContactsToken";
|
|
244
|
+
scope: "delete";
|
|
245
|
+
} | {
|
|
246
|
+
name: string;
|
|
247
|
+
description: string;
|
|
248
|
+
tool: import("ai").Tool<{
|
|
249
|
+
googleContactsToken: string;
|
|
250
|
+
contactGroupId: string;
|
|
251
|
+
resourceNamesToAdd?: string[] | undefined;
|
|
252
|
+
resourceNamesToRemove?: string[] | undefined;
|
|
253
|
+
}, any>;
|
|
254
|
+
requiredAuth: "googleContactsToken";
|
|
255
|
+
scope: "write";
|
|
256
|
+
} | {
|
|
257
|
+
name: string;
|
|
258
|
+
description: string;
|
|
259
|
+
tool: import("ai").Tool<{
|
|
260
|
+
resourceName: string;
|
|
261
|
+
googleContactsToken: string;
|
|
262
|
+
photoBytes: string;
|
|
263
|
+
personFields?: string | undefined;
|
|
264
|
+
}, any>;
|
|
265
|
+
requiredAuth: "googleContactsToken";
|
|
266
|
+
scope: "write";
|
|
267
|
+
} | {
|
|
268
|
+
name: string;
|
|
269
|
+
description: string;
|
|
270
|
+
tool: import("ai").Tool<{
|
|
271
|
+
resourceName: string;
|
|
272
|
+
googleContactsToken: string;
|
|
273
|
+
personFields?: string | undefined;
|
|
274
|
+
sources?: string[] | undefined;
|
|
275
|
+
}, {
|
|
276
|
+
error: string;
|
|
277
|
+
details: any;
|
|
278
|
+
message?: undefined;
|
|
279
|
+
} | {
|
|
280
|
+
success: boolean;
|
|
281
|
+
error?: undefined;
|
|
282
|
+
details?: undefined;
|
|
283
|
+
message?: undefined;
|
|
284
|
+
} | {
|
|
285
|
+
error: string;
|
|
286
|
+
message: string;
|
|
287
|
+
details?: undefined;
|
|
288
|
+
}>;
|
|
289
|
+
requiredAuth: "googleContactsToken";
|
|
290
|
+
scope: "delete";
|
|
291
|
+
} | {
|
|
292
|
+
name: string;
|
|
293
|
+
description: string;
|
|
294
|
+
tool: import("ai").Tool<{
|
|
295
|
+
readMask: string;
|
|
296
|
+
sources: string[];
|
|
297
|
+
googleContactsToken: string;
|
|
298
|
+
pageToken?: string | undefined;
|
|
299
|
+
pageSize?: number | undefined;
|
|
300
|
+
syncToken?: string | undefined;
|
|
301
|
+
requestSyncToken?: boolean | undefined;
|
|
302
|
+
mergeSources?: string[] | undefined;
|
|
303
|
+
}, any>;
|
|
304
|
+
requiredAuth: "googleContactsToken";
|
|
305
|
+
scope: "read";
|
|
306
|
+
} | {
|
|
307
|
+
name: string;
|
|
308
|
+
description: string;
|
|
309
|
+
tool: import("ai").Tool<{
|
|
310
|
+
query: string;
|
|
311
|
+
readMask: string;
|
|
312
|
+
sources: ("DIRECTORY_SOURCE_TYPE_DOMAIN_CONTACT" | "DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE")[];
|
|
313
|
+
googleContactsToken: string;
|
|
314
|
+
pageToken?: string | undefined;
|
|
315
|
+
pageSize?: number | undefined;
|
|
316
|
+
mergeSources?: string[] | undefined;
|
|
317
|
+
}, any>;
|
|
318
|
+
requiredAuth: "googleContactsToken";
|
|
319
|
+
scope: "read";
|
|
320
|
+
} | {
|
|
321
|
+
name: string;
|
|
322
|
+
description: string;
|
|
323
|
+
tool: import("ai").Tool<{
|
|
324
|
+
readMask: string;
|
|
325
|
+
googleContactsToken: string;
|
|
326
|
+
pageToken?: string | undefined;
|
|
327
|
+
sources?: string[] | undefined;
|
|
328
|
+
pageSize?: number | undefined;
|
|
329
|
+
syncToken?: string | undefined;
|
|
330
|
+
requestSyncToken?: boolean | undefined;
|
|
331
|
+
}, any>;
|
|
332
|
+
requiredAuth: "googleContactsToken";
|
|
333
|
+
scope: "read";
|
|
334
|
+
} | {
|
|
335
|
+
name: string;
|
|
336
|
+
description: string;
|
|
337
|
+
tool: import("ai").Tool<{
|
|
338
|
+
query: string;
|
|
339
|
+
readMask: string;
|
|
340
|
+
googleContactsToken: string;
|
|
341
|
+
pageToken?: string | undefined;
|
|
342
|
+
pageSize?: number | undefined;
|
|
343
|
+
}, any>;
|
|
344
|
+
requiredAuth: "googleContactsToken";
|
|
345
|
+
scope: "read";
|
|
346
|
+
})[];
|
|
347
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { batchCreateContacts, batchDeleteContacts, batchGetPeople, batchUpdateContacts, copyOtherContactToMyContacts, createContact, deleteContact, getPerson, listConnections, searchContacts, updateContact, } from './contacts.js';
|
|
3
|
+
import { batchGetContactGroups, createContactGroup, deleteContactGroup, getContactGroup, listContactGroups, modifyContactGroupMembers, updateContactGroup, } from './groups.js';
|
|
4
|
+
import { deleteContactPhoto, updateContactPhoto } from './photos.js';
|
|
5
|
+
import { listDirectoryPeople, listOtherContacts, searchDirectoryPeople, searchOtherContacts, } from './directory.js';
|
|
6
|
+
export { batchCreateContacts, batchDeleteContacts, batchGetPeople, copyOtherContactToMyContacts, createContact, deleteContact, getPerson, listConnections, searchContacts, updateContact, batchUpdateContacts, batchGetContactGroups, createContactGroup, deleteContactGroup, getContactGroup, listContactGroups, modifyContactGroupMembers, updateContactGroup, deleteContactPhoto, updateContactPhoto, listDirectoryPeople, listOtherContacts, searchDirectoryPeople, searchOtherContacts, };
|
|
7
|
+
const auth = 'googleContactsToken';
|
|
8
|
+
export const googleContactsTools = [
|
|
9
|
+
{ name: 'googleContactsCreateContact', description: 'Creates one contact with names, emails, phones, and more.', tool: createContact, requiredAuth: auth, scope: 'write' },
|
|
10
|
+
{ name: 'googleContactsBatchCreateContacts', description: 'Creates up to 200 contacts in one call.', tool: batchCreateContacts, requiredAuth: auth, scope: 'write' },
|
|
11
|
+
{ name: 'googleContactsUpdateContact', description: 'Updates a contact via updatePersonFields with etag concurrency.', tool: updateContact, requiredAuth: auth, scope: 'write' },
|
|
12
|
+
{ name: 'googleContactsBatchUpdateContacts', description: 'Updates up to 200 contacts at once via resource-name map.', tool: batchUpdateContacts, requiredAuth: auth, scope: 'write' },
|
|
13
|
+
{ name: 'googleContactsDeleteContact', description: 'Permanently deletes a contact. Irreversible.', tool: deleteContact, requiredAuth: auth, scope: 'delete' },
|
|
14
|
+
{ name: 'googleContactsBatchDeleteContacts', description: 'Deletes up to 500 contacts in one call. Irreversible.', tool: batchDeleteContacts, requiredAuth: auth, scope: 'delete' },
|
|
15
|
+
{ name: 'googleContactsGetPerson', description: 'Gets a person by resource name (people/me for yourself).', tool: getPerson, requiredAuth: auth, scope: 'read' },
|
|
16
|
+
{ name: 'googleContactsBatchGetPeople', description: 'Fetches up to 200 people in one call.', tool: batchGetPeople, requiredAuth: auth, scope: 'read' },
|
|
17
|
+
{ name: 'googleContactsListConnections', description: 'Lists your contacts with sorting and incremental sync.', tool: listConnections, requiredAuth: auth, scope: 'read' },
|
|
18
|
+
{ name: 'googleContactsSearchContacts', description: 'Searches your contacts by name, email, phone, or organization.', tool: searchContacts, requiredAuth: auth, scope: 'read' },
|
|
19
|
+
{ name: 'googleContactsCopyOtherContactToMyContacts', description: 'Copies an auto-created Other contact into myContacts.', tool: copyOtherContactToMyContacts, requiredAuth: auth, scope: 'write' },
|
|
20
|
+
{ name: 'googleContactsCreateContactGroup', description: 'Creates a contact group with a unique name.', tool: createContactGroup, requiredAuth: auth, scope: 'write' },
|
|
21
|
+
{ name: 'googleContactsGetContactGroup', description: 'Gets a contact group by resource name.', tool: getContactGroup, requiredAuth: auth, scope: 'read' },
|
|
22
|
+
{ name: 'googleContactsBatchGetContactGroups', description: 'Gets up to 200 contact groups in one call.', tool: batchGetContactGroups, requiredAuth: auth, scope: 'read' },
|
|
23
|
+
{ name: 'googleContactsListContactGroups', description: 'Lists all your contact groups.', tool: listContactGroups, requiredAuth: auth, scope: 'read' },
|
|
24
|
+
{ name: 'googleContactsUpdateContactGroup', description: 'Renames a contact group or updates its client data.', tool: updateContactGroup, requiredAuth: auth, scope: 'write' },
|
|
25
|
+
{ name: 'googleContactsDeleteContactGroup', description: 'Deletes a contact group. Irreversible.', tool: deleteContactGroup, requiredAuth: auth, scope: 'delete' },
|
|
26
|
+
{ name: 'googleContactsModifyContactGroupMembers', description: 'Adds or removes group members (max 1000 combined).', tool: modifyContactGroupMembers, requiredAuth: auth, scope: 'write' },
|
|
27
|
+
{ name: 'googleContactsUpdateContactPhoto', description: 'Sets a contact photo from base64 bytes.', tool: updateContactPhoto, requiredAuth: auth, scope: 'write' },
|
|
28
|
+
{ name: 'googleContactsDeleteContactPhoto', description: 'Removes a contact photo. Irreversible.', tool: deleteContactPhoto, requiredAuth: auth, scope: 'delete' },
|
|
29
|
+
{ name: 'googleContactsListDirectoryPeople', description: 'Lists Workspace domain profiles and contacts.', tool: listDirectoryPeople, requiredAuth: auth, scope: 'read' },
|
|
30
|
+
{ name: 'googleContactsSearchDirectoryPeople', description: 'Searches the Workspace domain directory.', tool: searchDirectoryPeople, requiredAuth: auth, scope: 'read' },
|
|
31
|
+
{ name: 'googleContactsListOtherContacts', description: 'Lists auto-created Other contacts outside your groups.', tool: listOtherContacts, requiredAuth: auth, scope: 'read' },
|
|
32
|
+
{ name: 'googleContactsSearchOtherContacts', description: 'Prefix-searches Other contacts.', tool: searchOtherContacts, requiredAuth: auth, scope: 'read' },
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const updateContactPhoto: import("ai").Tool<{
|
|
2
|
+
resourceName: string;
|
|
3
|
+
googleContactsToken: string;
|
|
4
|
+
photoBytes: string;
|
|
5
|
+
personFields?: string | undefined;
|
|
6
|
+
}, any>;
|
|
7
|
+
export declare const deleteContactPhoto: import("ai").Tool<{
|
|
8
|
+
resourceName: string;
|
|
9
|
+
googleContactsToken: string;
|
|
10
|
+
personFields?: string | undefined;
|
|
11
|
+
sources?: string[] | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
error: string;
|
|
14
|
+
details: any;
|
|
15
|
+
message?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
success: boolean;
|
|
18
|
+
error?: undefined;
|
|
19
|
+
details?: undefined;
|
|
20
|
+
message?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
error: string;
|
|
23
|
+
message: string;
|
|
24
|
+
details?: undefined;
|
|
25
|
+
}>;
|
|
26
|
+
//# sourceMappingURL=photos.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { googleContactsTokenField, peopleRequest } from './client.js';
|
|
5
|
+
export const updateContactPhoto = tool({
|
|
6
|
+
description: 'Sets a contact photo from base64 bytes (JPEG, PNG, or WebP).',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
googleContactsToken: googleContactsTokenField,
|
|
9
|
+
resourceName: z.string().describe("Contact resource, e.g. 'people/c123'"),
|
|
10
|
+
photoBytes: z.string().describe('Base64-encoded photo bytes'),
|
|
11
|
+
personFields: z.string().optional().describe("Response mask (default 'metadata')"),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ googleContactsToken, resourceName, photoBytes, personFields }) => {
|
|
14
|
+
try {
|
|
15
|
+
const result = await peopleRequest(googleContactsToken, `/people/${resourceName}:updateContactPhoto`, {
|
|
16
|
+
method: 'PATCH',
|
|
17
|
+
query: { personFields },
|
|
18
|
+
body: { photoBytes },
|
|
19
|
+
});
|
|
20
|
+
if (!result.ok)
|
|
21
|
+
return { error: 'Failed to update contact photo', details: result.error };
|
|
22
|
+
return result.data;
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
return { error: 'Error updating contact photo', message: error instanceof Error ? error.message : 'Unknown error' };
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
export const deleteContactPhoto = tool({
|
|
30
|
+
description: 'Removes a contact photo. Irreversible. Specify personFields to get the updated person back.',
|
|
31
|
+
inputSchema: z.object({
|
|
32
|
+
googleContactsToken: googleContactsTokenField,
|
|
33
|
+
resourceName: z.string().describe("Contact resource, e.g. 'people/c123' (or 'people/me')"),
|
|
34
|
+
personFields: z.string().optional().describe("Response mask, e.g. 'names' (default 'names')"),
|
|
35
|
+
sources: z.array(z.string()).optional().describe('Source types to include'),
|
|
36
|
+
}),
|
|
37
|
+
execute: async ({ googleContactsToken, resourceName, personFields, sources }) => {
|
|
38
|
+
try {
|
|
39
|
+
const result = await peopleRequest(googleContactsToken, `/people/${resourceName}:deleteContactPhoto`, {
|
|
40
|
+
method: 'DELETE',
|
|
41
|
+
query: { personFields: personFields ?? 'names', sources },
|
|
42
|
+
});
|
|
43
|
+
if (!result.ok)
|
|
44
|
+
return { error: 'Failed to delete contact photo', details: result.error };
|
|
45
|
+
return { success: true, ...result.data };
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
return { error: 'Error deleting contact photo', message: error instanceof Error ? error.message : 'Unknown error' };
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=photos.js.map
|