@notionhq/apps 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connections.d.ts +0 -2
- package/dist/connections.d.ts.map +1 -1
- package/dist/providers.generated.d.ts +0 -8
- package/dist/providers.generated.d.ts.map +1 -1
- package/dist/providers.generated.js +0 -14
- package/dist/slack.generated.d.ts +194 -0
- package/dist/slack.generated.d.ts.map +1 -1
- package/dist/slack.generated.js +24 -0
- package/package.json +1 -1
- package/skills/connections/SKILL.md +11 -0
- package/src/connections.test.ts +65 -0
- package/src/providers.generated.ts +0 -16
- package/src/slack.generated.ts +236 -0
- package/dist/gmail.generated.d.ts +0 -184
- package/dist/gmail.generated.d.ts.map +0 -1
- package/dist/gmail.generated.js +0 -21
- package/dist/googleCalendar.generated.d.ts +0 -83
- package/dist/googleCalendar.generated.d.ts.map +0 -1
- package/dist/googleCalendar.generated.js +0 -15
- package/src/gmail.generated.ts +0 -205
- package/src/googleCalendar.generated.ts +0 -95
package/src/slack.generated.ts
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
// Generated by notion tool-core codegen-script-types --connections. Do not edit.
|
|
2
2
|
import type { ConnectionActionInvoker } from "./connection-actions.js"
|
|
3
|
+
/**
|
|
4
|
+
* Script input for the "Add a reaction to a Slack message" effect (`slack.addReactionToMessage`),
|
|
5
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
6
|
+
*
|
|
7
|
+
* Add a reaction to a Slack message
|
|
8
|
+
*/
|
|
9
|
+
export type AddReactionToMessageScriptInput = {
|
|
10
|
+
/**
|
|
11
|
+
* The URI of the Slack message
|
|
12
|
+
*/
|
|
13
|
+
prefixedMessageUri: string
|
|
14
|
+
reaction: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Canonical Tool Core output for the "Add a reaction to a Slack message" effect (`slack.addReactionToMessage`).
|
|
19
|
+
* This is the definition's output schema; the effect's script surface may
|
|
20
|
+
* re-encode it before returning.
|
|
21
|
+
*/
|
|
22
|
+
export type AddReactionToMessageScriptOutput = {
|
|
23
|
+
channelName: string
|
|
24
|
+
prefixedMessageUri: string
|
|
25
|
+
reaction: string
|
|
26
|
+
status: "added" | "already_absent" | "already_present" | "removed"
|
|
27
|
+
message?: string
|
|
28
|
+
}
|
|
29
|
+
|
|
3
30
|
/**
|
|
4
31
|
* Script input for the "Find a Slack user by email" effect (`slack.findUserByEmail`),
|
|
5
32
|
* derived from its Tool Core definition's call_function input projection.
|
|
@@ -81,6 +108,118 @@ export type GetThreadsInChannelSinceScriptOutput = Array<
|
|
|
81
108
|
}>
|
|
82
109
|
>
|
|
83
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Script input for the "Get a Slack user by ID" effect (`slack.getUser`),
|
|
113
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
114
|
+
*
|
|
115
|
+
* Get a Slack user by ID
|
|
116
|
+
*/
|
|
117
|
+
export type GetUserScriptInput = {
|
|
118
|
+
userId: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Canonical Tool Core output for the "Get a Slack user by ID" effect (`slack.getUser`).
|
|
123
|
+
* This is the definition's output schema; the effect's script surface may
|
|
124
|
+
* re-encode it before returning.
|
|
125
|
+
*/
|
|
126
|
+
export type GetUserScriptOutput = {
|
|
127
|
+
handle: string
|
|
128
|
+
id: string
|
|
129
|
+
uri: string
|
|
130
|
+
displayName?: string
|
|
131
|
+
email?: string
|
|
132
|
+
notionUser?: string
|
|
133
|
+
realName?: string
|
|
134
|
+
statusEmoji?: string
|
|
135
|
+
statusText?: string
|
|
136
|
+
timeZone?: string
|
|
137
|
+
title?: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Script input for the "Get all messages from a user within a time range" effect (`slack.getUserMessages`),
|
|
142
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
143
|
+
*
|
|
144
|
+
* Get all messages from a user within a time range
|
|
145
|
+
*/
|
|
146
|
+
export type GetUserMessagesScriptInput =
|
|
147
|
+
| {
|
|
148
|
+
/**
|
|
149
|
+
* Name of the user to search for. Can be display name, handle, or partial match. Either name or email must be provided.
|
|
150
|
+
*/
|
|
151
|
+
name: string
|
|
152
|
+
/**
|
|
153
|
+
* Email address of the Slack user. Either name or email must be provided.
|
|
154
|
+
*/
|
|
155
|
+
email?: string
|
|
156
|
+
/**
|
|
157
|
+
* ISO 8601 timestamp for the start of the search range. Defaults to 7 days ago if not specified.
|
|
158
|
+
*/
|
|
159
|
+
since?: string
|
|
160
|
+
}
|
|
161
|
+
| {
|
|
162
|
+
/**
|
|
163
|
+
* Name of the user to search for. Can be display name, handle, or partial match. Either name or email must be provided.
|
|
164
|
+
*/
|
|
165
|
+
name?: string
|
|
166
|
+
/**
|
|
167
|
+
* Email address of the Slack user. Either name or email must be provided.
|
|
168
|
+
*/
|
|
169
|
+
email: string
|
|
170
|
+
/**
|
|
171
|
+
* ISO 8601 timestamp for the start of the search range. Defaults to 7 days ago if not specified.
|
|
172
|
+
*/
|
|
173
|
+
since?: string
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Canonical Tool Core output for the "Get all messages from a user within a time range" effect (`slack.getUserMessages`).
|
|
178
|
+
* This is the definition's output schema; the effect's script surface may
|
|
179
|
+
* re-encode it before returning.
|
|
180
|
+
*/
|
|
181
|
+
export type GetUserMessagesScriptOutput = {
|
|
182
|
+
messages: Array<{
|
|
183
|
+
channelId: string
|
|
184
|
+
id: string
|
|
185
|
+
text: string
|
|
186
|
+
timestamp: string
|
|
187
|
+
channel?: string
|
|
188
|
+
contextMessages?: {
|
|
189
|
+
after?: Array<{
|
|
190
|
+
text: string
|
|
191
|
+
timestamp: string
|
|
192
|
+
userId: string
|
|
193
|
+
}>
|
|
194
|
+
before?: Array<{
|
|
195
|
+
text: string
|
|
196
|
+
timestamp: string
|
|
197
|
+
userId: string
|
|
198
|
+
}>
|
|
199
|
+
}
|
|
200
|
+
url?: string
|
|
201
|
+
}>
|
|
202
|
+
totalCount: number
|
|
203
|
+
user: {
|
|
204
|
+
handle: string
|
|
205
|
+
id: string
|
|
206
|
+
uri: string
|
|
207
|
+
displayName?: string
|
|
208
|
+
email?: string
|
|
209
|
+
notionUser?: string
|
|
210
|
+
realName?: string
|
|
211
|
+
statusEmoji?: string
|
|
212
|
+
statusText?: string
|
|
213
|
+
timeZone?: string
|
|
214
|
+
title?: string
|
|
215
|
+
}
|
|
216
|
+
alternativeUsers?: Array<{
|
|
217
|
+
displayName?: string
|
|
218
|
+
email?: string
|
|
219
|
+
handle?: string
|
|
220
|
+
}>
|
|
221
|
+
}
|
|
222
|
+
|
|
84
223
|
/**
|
|
85
224
|
* Script input for the "Load Slack message" effect (`slack.loadMessage`),
|
|
86
225
|
* derived from its Tool Core definition's call_function input projection.
|
|
@@ -137,6 +276,44 @@ export type LoadMessageScriptOutput = {
|
|
|
137
276
|
additionalMessageToModel?: string
|
|
138
277
|
}
|
|
139
278
|
|
|
279
|
+
/**
|
|
280
|
+
* Script input for the "Parse a Slack URI or URL" effect (`slack.parseSlackUriOrUrl`),
|
|
281
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
282
|
+
*
|
|
283
|
+
* Parse a Slack message URI or URL to a parsed agent entity
|
|
284
|
+
*/
|
|
285
|
+
export type ParseSlackUriOrUrlScriptInput = {
|
|
286
|
+
/**
|
|
287
|
+
* A Slack message URI or URL.
|
|
288
|
+
*/
|
|
289
|
+
uriOrUrl: string
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Canonical Tool Core output for the "Parse a Slack URI or URL" effect (`slack.parseSlackUriOrUrl`).
|
|
294
|
+
* This is the definition's output schema; the effect's script surface may
|
|
295
|
+
* re-encode it before returning.
|
|
296
|
+
*/
|
|
297
|
+
export type ParseSlackUriOrUrlScriptOutput =
|
|
298
|
+
| {
|
|
299
|
+
channelId: string
|
|
300
|
+
messageTs: string
|
|
301
|
+
threadTs: string
|
|
302
|
+
type: "slackMessage"
|
|
303
|
+
workspaceHost: string
|
|
304
|
+
}
|
|
305
|
+
| {
|
|
306
|
+
channelId: string
|
|
307
|
+
type: "slackChannel"
|
|
308
|
+
workspaceHost: string
|
|
309
|
+
}
|
|
310
|
+
| {
|
|
311
|
+
type: "slackUser"
|
|
312
|
+
userId: string
|
|
313
|
+
workspaceHost: string
|
|
314
|
+
handle?: string
|
|
315
|
+
}
|
|
316
|
+
|
|
140
317
|
/**
|
|
141
318
|
* Script input for the "Query Slack channels" effect (`slack.queryChannels`),
|
|
142
319
|
* derived from its Tool Core definition's call_function input projection.
|
|
@@ -224,6 +401,33 @@ export type QueryChannelsScriptOutput = Array<{
|
|
|
224
401
|
isArchived: boolean
|
|
225
402
|
}>
|
|
226
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Script input for the "Remove a reaction from a Slack message" effect (`slack.removeReactionFromMessage`),
|
|
406
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
407
|
+
*
|
|
408
|
+
* Remove a reaction from a Slack message
|
|
409
|
+
*/
|
|
410
|
+
export type RemoveReactionFromMessageScriptInput = {
|
|
411
|
+
/**
|
|
412
|
+
* The URI of the Slack message
|
|
413
|
+
*/
|
|
414
|
+
prefixedMessageUri: string
|
|
415
|
+
reaction: string
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Canonical Tool Core output for the "Remove a reaction from a Slack message" effect (`slack.removeReactionFromMessage`).
|
|
420
|
+
* This is the definition's output schema; the effect's script surface may
|
|
421
|
+
* re-encode it before returning.
|
|
422
|
+
*/
|
|
423
|
+
export type RemoveReactionFromMessageScriptOutput = {
|
|
424
|
+
channelName: string
|
|
425
|
+
prefixedMessageUri: string
|
|
426
|
+
reaction: string
|
|
427
|
+
status: "added" | "already_absent" | "already_present" | "removed"
|
|
428
|
+
message?: string
|
|
429
|
+
}
|
|
430
|
+
|
|
227
431
|
/**
|
|
228
432
|
* Script input for the "Search Slack messages" effect (`slack.search`),
|
|
229
433
|
* derived from its Tool Core definition's call_function input projection.
|
|
@@ -300,6 +504,14 @@ export type ViewFileUrlScriptOutput = {
|
|
|
300
504
|
|
|
301
505
|
export class SlackConnectionClient {
|
|
302
506
|
constructor(private readonly invoke: ConnectionActionInvoker) {}
|
|
507
|
+
addReactionToMessage(
|
|
508
|
+
args: AddReactionToMessageScriptInput,
|
|
509
|
+
): Promise<AddReactionToMessageScriptOutput> {
|
|
510
|
+
return this.invoke<AddReactionToMessageScriptOutput>(
|
|
511
|
+
"addReactionToMessage",
|
|
512
|
+
args,
|
|
513
|
+
)
|
|
514
|
+
}
|
|
303
515
|
findUserByEmail(
|
|
304
516
|
args: FindUserByEmailScriptInput,
|
|
305
517
|
): Promise<FindUserByEmailScriptOutput> {
|
|
@@ -313,14 +525,38 @@ export class SlackConnectionClient {
|
|
|
313
525
|
args,
|
|
314
526
|
)
|
|
315
527
|
}
|
|
528
|
+
getUser(args: GetUserScriptInput): Promise<GetUserScriptOutput> {
|
|
529
|
+
return this.invoke<GetUserScriptOutput>("getUser", args)
|
|
530
|
+
}
|
|
531
|
+
getUserMessages(
|
|
532
|
+
args: GetUserMessagesScriptInput,
|
|
533
|
+
): Promise<GetUserMessagesScriptOutput> {
|
|
534
|
+
return this.invoke<GetUserMessagesScriptOutput>("getUserMessages", args)
|
|
535
|
+
}
|
|
316
536
|
loadMessage(args: LoadMessageScriptInput): Promise<LoadMessageScriptOutput> {
|
|
317
537
|
return this.invoke<LoadMessageScriptOutput>("loadMessage", args)
|
|
318
538
|
}
|
|
539
|
+
parseSlackUriOrUrl(
|
|
540
|
+
args: ParseSlackUriOrUrlScriptInput,
|
|
541
|
+
): Promise<ParseSlackUriOrUrlScriptOutput> {
|
|
542
|
+
return this.invoke<ParseSlackUriOrUrlScriptOutput>(
|
|
543
|
+
"parseSlackUriOrUrl",
|
|
544
|
+
args,
|
|
545
|
+
)
|
|
546
|
+
}
|
|
319
547
|
queryChannels(
|
|
320
548
|
args: QueryChannelsScriptInput,
|
|
321
549
|
): Promise<QueryChannelsScriptOutput> {
|
|
322
550
|
return this.invoke<QueryChannelsScriptOutput>("queryChannels", args)
|
|
323
551
|
}
|
|
552
|
+
removeReactionFromMessage(
|
|
553
|
+
args: RemoveReactionFromMessageScriptInput,
|
|
554
|
+
): Promise<RemoveReactionFromMessageScriptOutput> {
|
|
555
|
+
return this.invoke<RemoveReactionFromMessageScriptOutput>(
|
|
556
|
+
"removeReactionFromMessage",
|
|
557
|
+
args,
|
|
558
|
+
)
|
|
559
|
+
}
|
|
324
560
|
search(args: SearchScriptInput): Promise<SearchScriptOutput> {
|
|
325
561
|
return this.invoke<SearchScriptOutput>("search", args)
|
|
326
562
|
}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import type { ConnectionActionInvoker } from "./connection-actions.js";
|
|
2
|
-
/**
|
|
3
|
-
* Script input for the "Load Gmail thread" effect (`gmail.loadThread`),
|
|
4
|
-
* derived from its Tool Core definition's call_function input projection.
|
|
5
|
-
*
|
|
6
|
-
* Load a Gmail thread.
|
|
7
|
-
*/
|
|
8
|
-
export type LoadThreadScriptInput = {
|
|
9
|
-
/**
|
|
10
|
-
* Gmail thread ID.
|
|
11
|
-
*/
|
|
12
|
-
threadId?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Gmail thread URL or gmail:// connector href.
|
|
15
|
-
*/
|
|
16
|
-
url?: string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Canonical Tool Core output for the "Load Gmail thread" effect (`gmail.loadThread`).
|
|
20
|
-
* This is the definition's output schema; the effect's script surface may
|
|
21
|
-
* re-encode it before returning.
|
|
22
|
-
*/
|
|
23
|
-
export type LoadThreadScriptOutput = {
|
|
24
|
-
type: "gmail";
|
|
25
|
-
threadId: string;
|
|
26
|
-
subject: string;
|
|
27
|
-
messages: Array<{
|
|
28
|
-
messageId: string;
|
|
29
|
-
user: {
|
|
30
|
-
name: string;
|
|
31
|
-
notionUserId?: string;
|
|
32
|
-
notionUserName?: string;
|
|
33
|
-
};
|
|
34
|
-
text: string;
|
|
35
|
-
subject?: string;
|
|
36
|
-
timestamp: number;
|
|
37
|
-
attachments?: Array<{
|
|
38
|
-
attachmentId?: string;
|
|
39
|
-
filename: string;
|
|
40
|
-
mimeType: string;
|
|
41
|
-
sizeBytes: number;
|
|
42
|
-
inline: boolean;
|
|
43
|
-
}>;
|
|
44
|
-
}>;
|
|
45
|
-
timestamp: number;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Script input for the "Query Gmail" effect (`gmail.query`),
|
|
49
|
-
* derived from its Tool Core definition's call_function input projection.
|
|
50
|
-
*
|
|
51
|
-
* Query Gmail threads with structured parameters.
|
|
52
|
-
*/
|
|
53
|
-
export type QueryScriptInput = {
|
|
54
|
-
/**
|
|
55
|
-
* Gmail search query string (from:, to:, subject:, after:, before:, has:attachment, is:unread, etc.).
|
|
56
|
-
*/
|
|
57
|
-
q?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Maximum number of threads to return (default: 20, max: 100).
|
|
60
|
-
*/
|
|
61
|
-
maxResults?: number;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Canonical Tool Core output for the "Query Gmail" effect (`gmail.query`).
|
|
65
|
-
* This is the definition's output schema; the effect's script surface may
|
|
66
|
-
* re-encode it before returning.
|
|
67
|
-
*/
|
|
68
|
-
export type QueryScriptOutput = {
|
|
69
|
-
threads: Array<{
|
|
70
|
-
type: "gmail";
|
|
71
|
-
threadId: string;
|
|
72
|
-
subject: string;
|
|
73
|
-
messages: Array<{
|
|
74
|
-
messageId: string;
|
|
75
|
-
user: {
|
|
76
|
-
name: string;
|
|
77
|
-
notionUserId?: string;
|
|
78
|
-
notionUserName?: string;
|
|
79
|
-
};
|
|
80
|
-
text: string;
|
|
81
|
-
subject?: string;
|
|
82
|
-
timestamp: number;
|
|
83
|
-
attachments?: Array<{
|
|
84
|
-
attachmentId?: string;
|
|
85
|
-
filename: string;
|
|
86
|
-
mimeType: string;
|
|
87
|
-
sizeBytes: number;
|
|
88
|
-
inline: boolean;
|
|
89
|
-
}>;
|
|
90
|
-
}>;
|
|
91
|
-
timestamp: number;
|
|
92
|
-
}>;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Script input for the "Read Gmail attachment" effect (`gmail.readAttachment`),
|
|
96
|
-
* derived from its Tool Core definition's call_function input projection.
|
|
97
|
-
*
|
|
98
|
-
* Read a Gmail attachment.
|
|
99
|
-
*/
|
|
100
|
-
export type ReadAttachmentScriptInput = {
|
|
101
|
-
/**
|
|
102
|
-
* Gmail message ID from loadThread.
|
|
103
|
-
*/
|
|
104
|
-
messageId: string;
|
|
105
|
-
/**
|
|
106
|
-
* Optional attachment filename from loadThread. Useful as a fallback when an attachmentId is unavailable.
|
|
107
|
-
*/
|
|
108
|
-
filename?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Optional Gmail attachment ID from loadThread. Use it when present to target a specific attachment.
|
|
111
|
-
*/
|
|
112
|
-
attachmentId?: string;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Canonical Tool Core output for the "Read Gmail attachment" effect (`gmail.readAttachment`).
|
|
116
|
-
* This is the definition's output schema; the effect's script surface may
|
|
117
|
-
* re-encode it before returning.
|
|
118
|
-
*/
|
|
119
|
-
export type ReadAttachmentScriptOutput = {
|
|
120
|
-
type: "gmail";
|
|
121
|
-
items: Array<{
|
|
122
|
-
attachmentId?: string;
|
|
123
|
-
filename: string;
|
|
124
|
-
mimeType: string;
|
|
125
|
-
sizeBytes: number;
|
|
126
|
-
inline: boolean;
|
|
127
|
-
contentType: "attachment";
|
|
128
|
-
message: string;
|
|
129
|
-
} | {
|
|
130
|
-
attachmentId?: string;
|
|
131
|
-
filename: string;
|
|
132
|
-
mimeType: string;
|
|
133
|
-
sizeBytes: number;
|
|
134
|
-
inline: boolean;
|
|
135
|
-
contentType: "text";
|
|
136
|
-
text: string;
|
|
137
|
-
} | {
|
|
138
|
-
attachmentId?: string;
|
|
139
|
-
filename: string;
|
|
140
|
-
mimeType: string;
|
|
141
|
-
sizeBytes: number;
|
|
142
|
-
inline: boolean;
|
|
143
|
-
contentType: "unsupported";
|
|
144
|
-
message: string;
|
|
145
|
-
}>;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Script input for the "Search Gmail" effect (`gmail.search`),
|
|
149
|
-
* derived from its Tool Core definition's call_function input projection.
|
|
150
|
-
*
|
|
151
|
-
* Search Gmail via the configured connector.
|
|
152
|
-
*/
|
|
153
|
-
export type SearchScriptInput = {
|
|
154
|
-
/**
|
|
155
|
-
* Search query for Gmail.
|
|
156
|
-
*/
|
|
157
|
-
query: string;
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Canonical Tool Core output for the "Search Gmail" effect (`gmail.search`).
|
|
161
|
-
* This is the definition's output schema; the effect's script surface may
|
|
162
|
-
* re-encode it before returning.
|
|
163
|
-
*/
|
|
164
|
-
export type SearchScriptOutput = {
|
|
165
|
-
results: Array<{
|
|
166
|
-
id: string;
|
|
167
|
-
title: string;
|
|
168
|
-
path: string;
|
|
169
|
-
text: string;
|
|
170
|
-
lastEdited: string;
|
|
171
|
-
isPrivate: boolean;
|
|
172
|
-
pageId: string;
|
|
173
|
-
emailAddress: string;
|
|
174
|
-
}>;
|
|
175
|
-
};
|
|
176
|
-
export declare class GmailConnectionClient {
|
|
177
|
-
private readonly invoke;
|
|
178
|
-
constructor(invoke: ConnectionActionInvoker);
|
|
179
|
-
loadThread(args: LoadThreadScriptInput): Promise<LoadThreadScriptOutput>;
|
|
180
|
-
query(args: QueryScriptInput): Promise<QueryScriptOutput>;
|
|
181
|
-
readAttachment(args: ReadAttachmentScriptInput): Promise<ReadAttachmentScriptOutput>;
|
|
182
|
-
search(args: SearchScriptInput): Promise<SearchScriptOutput>;
|
|
183
|
-
}
|
|
184
|
-
//# sourceMappingURL=gmail.generated.d.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BAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG5D"}
|
package/dist/gmail.generated.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
class GmailConnectionClient {
|
|
2
|
-
constructor(invoke) {
|
|
3
|
-
this.invoke = invoke;
|
|
4
|
-
}
|
|
5
|
-
invoke;
|
|
6
|
-
loadThread(args) {
|
|
7
|
-
return this.invoke("loadThread", args);
|
|
8
|
-
}
|
|
9
|
-
query(args) {
|
|
10
|
-
return this.invoke("query", args);
|
|
11
|
-
}
|
|
12
|
-
readAttachment(args) {
|
|
13
|
-
return this.invoke("readAttachment", args);
|
|
14
|
-
}
|
|
15
|
-
search(args) {
|
|
16
|
-
return this.invoke("search", args);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
GmailConnectionClient
|
|
21
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { ConnectionActionInvoker } from "./connection-actions.js";
|
|
2
|
-
/**
|
|
3
|
-
* Script input for the "Query Google Calendar connector" effect (`googleCalendar.query`),
|
|
4
|
-
* derived from its Tool Core definition's call_function input projection.
|
|
5
|
-
*
|
|
6
|
-
* Query Google Calendar events.
|
|
7
|
-
*/
|
|
8
|
-
export type QueryScriptInput = {
|
|
9
|
-
/**
|
|
10
|
-
* Search query to filter events by text (title, description, location, attendees).
|
|
11
|
-
*/
|
|
12
|
-
q?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Lower bound (inclusive) for event start time in ISO 8601 format.
|
|
15
|
-
*/
|
|
16
|
-
timeMin?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Upper bound (exclusive) for event start time in ISO 8601 format.
|
|
19
|
-
*/
|
|
20
|
-
timeMax?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Maximum number of events to return (default: 50, max: 250).
|
|
23
|
-
*/
|
|
24
|
-
maxResults?: number;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Canonical Tool Core output for the "Query Google Calendar connector" effect (`googleCalendar.query`).
|
|
28
|
-
* This is the definition's output schema; the effect's script surface may
|
|
29
|
-
* re-encode it before returning.
|
|
30
|
-
*/
|
|
31
|
-
export type QueryScriptOutput = {
|
|
32
|
-
events: Array<{
|
|
33
|
-
id: string;
|
|
34
|
-
title: string;
|
|
35
|
-
text: string;
|
|
36
|
-
start?: string;
|
|
37
|
-
end?: string;
|
|
38
|
-
location?: string;
|
|
39
|
-
url?: string;
|
|
40
|
-
isRecurring: boolean;
|
|
41
|
-
attendees?: Array<{
|
|
42
|
-
name?: string;
|
|
43
|
-
email?: string;
|
|
44
|
-
responseStatus?: "accepted" | "declined" | "tentative" | "noResponse" | "unknown";
|
|
45
|
-
}>;
|
|
46
|
-
}>;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Script input for the "Search Google Calendar connector" effect (`googleCalendar.search`),
|
|
50
|
-
* derived from its Tool Core definition's call_function input projection.
|
|
51
|
-
*
|
|
52
|
-
* Search Google Calendar via the configured connector.
|
|
53
|
-
*/
|
|
54
|
-
export type SearchScriptInput = {
|
|
55
|
-
/**
|
|
56
|
-
* Search query for Google Calendar.
|
|
57
|
-
*/
|
|
58
|
-
query: string;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Canonical Tool Core output for the "Search Google Calendar connector" effect (`googleCalendar.search`).
|
|
62
|
-
* This is the definition's output schema; the effect's script surface may
|
|
63
|
-
* re-encode it before returning.
|
|
64
|
-
*/
|
|
65
|
-
export type SearchScriptOutput = {
|
|
66
|
-
results: Array<{
|
|
67
|
-
id: string;
|
|
68
|
-
title: string;
|
|
69
|
-
path: string;
|
|
70
|
-
text: string;
|
|
71
|
-
lastEdited: string;
|
|
72
|
-
pageId: string;
|
|
73
|
-
emailAddress: string;
|
|
74
|
-
isPrivate: boolean;
|
|
75
|
-
}>;
|
|
76
|
-
};
|
|
77
|
-
export declare class GoogleCalendarConnectionClient {
|
|
78
|
-
private readonly invoke;
|
|
79
|
-
constructor(invoke: ConnectionActionInvoker);
|
|
80
|
-
query(args: QueryScriptInput): Promise<QueryScriptOutput>;
|
|
81
|
-
search(args: SearchScriptInput): Promise<SearchScriptOutput>;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=googleCalendar.generated.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"googleCalendar.generated.d.ts","sourceRoot":"","sources":["../src/googleCalendar.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,KAAK,CAAC;QACb,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,OAAO,CAAA;QACpB,SAAS,CAAC,EAAE,KAAK,CAAC;YACjB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,cAAc,CAAC,EACZ,UAAU,GACV,UAAU,GACV,WAAW,GACX,YAAY,GACZ,SAAS,CAAA;SACZ,CAAC,CAAA;KACF,CAAC,CAAA;CACF,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE,KAAK,CAAC;QACd,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,UAAU,EAAE,MAAM,CAAA;QAClB,MAAM,EAAE,MAAM,CAAA;QACd,YAAY,EAAE,MAAM,CAAA;QACpB,SAAS,EAAE,OAAO,CAAA;KAClB,CAAC,CAAA;CACF,CAAA;AAED,qBAAa,8BAA8B;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,uBAAuB;IAC5D,KAAK,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAGzD,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG5D"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
class GoogleCalendarConnectionClient {
|
|
2
|
-
constructor(invoke) {
|
|
3
|
-
this.invoke = invoke;
|
|
4
|
-
}
|
|
5
|
-
invoke;
|
|
6
|
-
query(args) {
|
|
7
|
-
return this.invoke("query", args);
|
|
8
|
-
}
|
|
9
|
-
search(args) {
|
|
10
|
-
return this.invoke("search", args);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
GoogleCalendarConnectionClient
|
|
15
|
-
};
|