@notionhq/apps 0.0.12 → 0.0.14
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 +32 -0
- package/dist/box.generated.d.ts +164 -0
- package/dist/box.generated.d.ts.map +1 -0
- package/dist/box.generated.js +24 -0
- package/dist/calendar.generated.d.ts +1036 -0
- package/dist/calendar.generated.d.ts.map +1 -0
- package/dist/calendar.generated.js +42 -0
- package/dist/cli/build.d.ts.map +1 -1
- package/dist/cli/build.js +41 -10
- package/dist/cli/codegen.d.ts +2 -0
- package/dist/cli/codegen.d.ts.map +1 -1
- package/dist/cli/codegen.js +13 -2
- package/dist/cli/discover.d.ts +2 -0
- package/dist/cli/discover.d.ts.map +1 -1
- package/dist/cli/discover.js +4 -2
- package/dist/cli/emit-manifest.d.ts +3 -1
- package/dist/cli/emit-manifest.d.ts.map +1 -1
- package/dist/cli/emit-manifest.js +10 -4
- package/dist/cli/index.js +33 -1
- package/dist/confluence.generated.d.ts +98 -0
- package/dist/confluence.generated.d.ts.map +1 -0
- package/dist/confluence.generated.js +18 -0
- package/dist/connection-actions.d.ts +2 -0
- package/dist/connection-actions.d.ts.map +1 -0
- package/dist/connection-actions.js +0 -0
- package/dist/connection-trigger-definitions.generated.d.ts +34 -0
- package/dist/connection-trigger-definitions.generated.d.ts.map +1 -0
- package/dist/connection-trigger-definitions.generated.js +45 -0
- package/dist/connections.d.ts +15 -0
- package/dist/connections.d.ts.map +1 -0
- package/dist/connections.js +79 -0
- package/dist/connections.test.d.ts +2 -0
- package/dist/connections.test.d.ts.map +1 -0
- package/dist/cursor.generated.d.ts +154 -0
- package/dist/cursor.generated.d.ts.map +1 -0
- package/dist/cursor.generated.js +18 -0
- package/dist/custom-block.d.ts +54 -0
- package/dist/custom-block.d.ts.map +1 -0
- package/dist/custom-block.js +30 -0
- package/dist/custom-block.test.d.ts +2 -0
- package/dist/custom-block.test.d.ts.map +1 -0
- package/dist/custom-blocks.d.ts +2 -0
- package/dist/custom-blocks.d.ts.map +1 -0
- package/dist/custom-blocks.js +1 -0
- package/dist/discord.generated.d.ts +279 -0
- package/dist/discord.generated.d.ts.map +1 -0
- package/dist/discord.generated.js +33 -0
- package/dist/gmail.generated.d.ts +184 -0
- package/dist/gmail.generated.d.ts.map +1 -0
- package/dist/gmail.generated.js +21 -0
- package/dist/googleCalendar.generated.d.ts +83 -0
- package/dist/googleCalendar.generated.d.ts.map +1 -0
- package/dist/googleCalendar.generated.js +15 -0
- package/dist/googleDrive.generated.d.ts +210 -0
- package/dist/googleDrive.generated.d.ts.map +1 -0
- package/dist/googleDrive.generated.js +27 -0
- package/dist/googleDriveOauth.generated.d.ts +851 -0
- package/dist/googleDriveOauth.generated.d.ts.map +1 -0
- package/dist/googleDriveOauth.generated.js +84 -0
- package/dist/manifest.d.ts +1 -1
- package/dist/manifest.d.ts.map +1 -1
- package/dist/nds.css +1 -0
- package/dist/notion-as-code/database.d.ts +4 -3
- package/dist/notion-as-code/database.d.ts.map +1 -1
- package/dist/notion-as-code/database.js +11 -2
- package/dist/notion-as-code/intents.d.ts +4 -1
- package/dist/notion-as-code/intents.d.ts.map +1 -1
- package/dist/notion-as-code/page.d.ts +4 -4
- package/dist/notion-as-code/page.d.ts.map +1 -1
- package/dist/notion-as-code/page.js +11 -2
- package/dist/outlook.generated.d.ts +224 -0
- package/dist/outlook.generated.d.ts.map +1 -0
- package/dist/outlook.generated.js +24 -0
- package/dist/providers.generated.d.ts +117 -0
- package/dist/providers.generated.d.ts.map +1 -0
- package/dist/providers.generated.js +108 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +1 -0
- package/dist/salesforce.generated.d.ts +151 -0
- package/dist/salesforce.generated.d.ts.map +1 -0
- package/dist/salesforce.generated.js +24 -0
- package/dist/slack.generated.d.ts +290 -0
- package/dist/slack.generated.d.ts.map +1 -0
- package/dist/slack.generated.js +30 -0
- package/dist/triggers.generated.d.ts +107 -32
- package/dist/triggers.generated.d.ts.map +1 -1
- package/dist/triggers.generated.js +36 -24
- package/dist/workflow-connections-types.test.d.ts +2 -0
- package/dist/workflow-connections-types.test.d.ts.map +1 -0
- package/dist/workflow-types.test.d.ts +2 -0
- package/dist/workflow-types.test.d.ts.map +1 -0
- package/dist/workflow.d.ts +20 -16
- package/dist/workflow.d.ts.map +1 -1
- package/dist/workflow.js +14 -17
- package/docs/BUILD.md +83 -14
- package/docs/CONNECTIONS.md +129 -0
- package/package.json +16 -2
- package/src/box.generated.ts +187 -0
- package/src/calendar.generated.ts +1117 -0
- package/src/cli/build.test.ts +87 -0
- package/src/cli/build.ts +47 -9
- package/src/cli/codegen.test.ts +2 -0
- package/src/cli/codegen.ts +25 -7
- package/src/cli/discover.test.ts +12 -0
- package/src/cli/discover.ts +6 -2
- package/src/cli/emit-manifest.ts +13 -3
- package/src/cli/index.ts +33 -1
- package/src/confluence.generated.ts +109 -0
- package/src/connection-actions.ts +2 -0
- package/src/connection-trigger-definitions.generated.ts +48 -0
- package/src/connections.test.ts +157 -0
- package/src/connections.ts +126 -0
- package/src/cursor.generated.ts +167 -0
- package/src/custom-block.test.ts +19 -0
- package/src/custom-block.ts +41 -0
- package/src/custom-blocks.ts +1 -0
- package/src/discord.generated.ts +318 -0
- package/src/gmail.generated.ts +205 -0
- package/src/googleCalendar.generated.ts +95 -0
- package/src/googleDrive.generated.ts +235 -0
- package/src/googleDriveOauth.generated.ts +980 -0
- package/src/manifest.ts +1 -1
- package/src/nds.css +1 -0
- package/src/notion-as-code/database.ts +19 -11
- package/src/notion-as-code/intents.ts +2 -1
- package/src/notion-as-code/page.ts +17 -11
- package/src/outlook.generated.ts +249 -0
- package/src/providers.generated.ts +207 -0
- package/src/react.ts +1 -0
- package/src/salesforce.generated.ts +170 -0
- package/src/slack.generated.ts +330 -0
- package/src/triggers.generated.ts +112 -32
- package/src/workflow-connections-types.test.ts +59 -0
- package/src/workflow-types.test.ts +144 -0
- package/src/workflow.test.ts +112 -2
- package/src/workflow.ts +58 -29
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
class DiscordConnectionClient {
|
|
2
|
+
constructor(invoke) {
|
|
3
|
+
this.invoke = invoke;
|
|
4
|
+
}
|
|
5
|
+
invoke;
|
|
6
|
+
addReaction(args) {
|
|
7
|
+
return this.invoke("addReaction", args);
|
|
8
|
+
}
|
|
9
|
+
getRecentChannelMessages(args) {
|
|
10
|
+
return this.invoke(
|
|
11
|
+
"getRecentChannelMessages",
|
|
12
|
+
args
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
listChannels(args) {
|
|
16
|
+
return this.invoke("listChannels", args);
|
|
17
|
+
}
|
|
18
|
+
removeReaction(args) {
|
|
19
|
+
return this.invoke("removeReaction", args);
|
|
20
|
+
}
|
|
21
|
+
sendMessageToChannel(args) {
|
|
22
|
+
return this.invoke(
|
|
23
|
+
"sendMessageToChannel",
|
|
24
|
+
args
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
updateMessage(args) {
|
|
28
|
+
return this.invoke("updateMessage", args);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
DiscordConnectionClient
|
|
33
|
+
};
|
|
@@ -0,0 +1,184 @@
|
|
|
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.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmail.generated.d.ts","sourceRoot":"","sources":["../src/gmail.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,KAAK,CAAC;QACf,SAAS,EAAE,MAAM,CAAA;QACjB,IAAI,EAAE;YACL,IAAI,EAAE,MAAM,CAAA;YACZ,YAAY,CAAC,EAAE,MAAM,CAAA;YACrB,cAAc,CAAC,EAAE,MAAM,CAAA;SACvB,CAAA;QACD,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,WAAW,CAAC,EAAE,KAAK,CAAC;YACnB,YAAY,CAAC,EAAE,MAAM,CAAA;YACrB,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;YAChB,SAAS,EAAE,MAAM,CAAA;YACjB,MAAM,EAAE,OAAO,CAAA;SACf,CAAC,CAAA;KACF,CA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EAAE,uBAAuB;IAC5D,UAAU,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAGxE,KAAK,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAGzD,cAAc,CACb,IAAI,EAAE,yBAAyB,GAC7B,OAAO,CAAC,0BAA0B,CAAC;IAGtC,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG5D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import type { ConnectionActionInvoker } from "./connection-actions.js";
|
|
2
|
+
/**
|
|
3
|
+
* Script input for the "Get Google Drive file comments" effect (`googleDrive.getFileComments`),
|
|
4
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
5
|
+
*
|
|
6
|
+
* Load comments from a Google Drive file.
|
|
7
|
+
*/
|
|
8
|
+
export type GetFileCommentsScriptInput = {
|
|
9
|
+
/**
|
|
10
|
+
* Google Drive file ID.
|
|
11
|
+
*/
|
|
12
|
+
fileId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional shared drive IDs that may contain the file being loaded.
|
|
15
|
+
*/
|
|
16
|
+
sharedDriveIds?: Array<string>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Canonical Tool Core output for the "Get Google Drive file comments" effect (`googleDrive.getFileComments`).
|
|
20
|
+
* This is the definition's output schema; the effect's script surface may
|
|
21
|
+
* re-encode it before returning.
|
|
22
|
+
*/
|
|
23
|
+
export type GetFileCommentsScriptOutput = Array<{
|
|
24
|
+
author: string;
|
|
25
|
+
bodyText: string;
|
|
26
|
+
lastEdited: string;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Script input for the "Grep Google Drive files" effect (`googleDrive.grepFiles`),
|
|
30
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
31
|
+
*
|
|
32
|
+
* Search for files in Google Drive.
|
|
33
|
+
*/
|
|
34
|
+
export type GrepFilesScriptInput = {
|
|
35
|
+
/**
|
|
36
|
+
* Search query for Google Drive title and content.
|
|
37
|
+
*/
|
|
38
|
+
query: string;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum number of results to return.
|
|
41
|
+
*/
|
|
42
|
+
maxResults?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Optional shared drive IDs to scope the search to specific shared drives.
|
|
45
|
+
*/
|
|
46
|
+
sharedDriveIds?: Array<string>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Canonical Tool Core output for the "Grep Google Drive files" effect (`googleDrive.grepFiles`).
|
|
50
|
+
* This is the definition's output schema; the effect's script surface may
|
|
51
|
+
* re-encode it before returning.
|
|
52
|
+
*/
|
|
53
|
+
export type GrepFilesScriptOutput = Array<{
|
|
54
|
+
type: "googleDrive";
|
|
55
|
+
blocks: Array<string>;
|
|
56
|
+
title: string;
|
|
57
|
+
fileId: string;
|
|
58
|
+
fileType: string;
|
|
59
|
+
timestamp: number;
|
|
60
|
+
comments?: Array<{
|
|
61
|
+
author: string;
|
|
62
|
+
bodyText: string;
|
|
63
|
+
lastEdited: string;
|
|
64
|
+
}>;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* Script input for the "Load a Google Drive file" effect (`googleDrive.loadFile`),
|
|
68
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
69
|
+
*
|
|
70
|
+
* Load a Google Drive file.
|
|
71
|
+
*/
|
|
72
|
+
export type LoadFileScriptInput = {
|
|
73
|
+
/**
|
|
74
|
+
* Google Drive file ID.
|
|
75
|
+
*/
|
|
76
|
+
fileId: string;
|
|
77
|
+
/**
|
|
78
|
+
* Optional shared drive IDs that may contain the file being loaded.
|
|
79
|
+
*/
|
|
80
|
+
sharedDriveIds?: Array<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Whether to include comments in the file. Defaults to false unless user requests it.
|
|
83
|
+
*/
|
|
84
|
+
includeComments?: boolean;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Canonical Tool Core output for the "Load a Google Drive file" effect (`googleDrive.loadFile`).
|
|
88
|
+
* This is the definition's output schema; the effect's script surface may
|
|
89
|
+
* re-encode it before returning.
|
|
90
|
+
*/
|
|
91
|
+
export type LoadFileScriptOutput = {
|
|
92
|
+
title: string;
|
|
93
|
+
fileId: string;
|
|
94
|
+
fileType: string;
|
|
95
|
+
timestamp: number;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Script input for the "Load a Google Drive ZIP file" effect (`googleDrive.loadZipFile`),
|
|
99
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
100
|
+
*
|
|
101
|
+
* Load the top-level files and folders in a zip file on Google Drive, including readable text content when available.
|
|
102
|
+
*/
|
|
103
|
+
export type LoadZipFileScriptInput = {
|
|
104
|
+
/**
|
|
105
|
+
* Google Drive file ID for the zip file.
|
|
106
|
+
*/
|
|
107
|
+
fileId: string;
|
|
108
|
+
/**
|
|
109
|
+
* Optional shared drive IDs to scope listing to specific shared drives.
|
|
110
|
+
*/
|
|
111
|
+
sharedDriveIds?: Array<string>;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Canonical Tool Core output for the "Load a Google Drive ZIP file" effect (`googleDrive.loadZipFile`).
|
|
115
|
+
* This is the definition's output schema; the effect's script surface may
|
|
116
|
+
* re-encode it before returning.
|
|
117
|
+
*/
|
|
118
|
+
export type LoadZipFileScriptOutput = Array<{
|
|
119
|
+
blocks: Array<string>;
|
|
120
|
+
title: string;
|
|
121
|
+
path: string;
|
|
122
|
+
fileType: string;
|
|
123
|
+
timestamp: number;
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* Script input for the "List a Google Drive folder" effect (`googleDrive.lsFolder`),
|
|
127
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
128
|
+
*
|
|
129
|
+
* List files in a Google Drive folder.
|
|
130
|
+
*/
|
|
131
|
+
export type LsFolderScriptInput = {
|
|
132
|
+
/**
|
|
133
|
+
* Google Drive folder ID.
|
|
134
|
+
*/
|
|
135
|
+
folderId: string;
|
|
136
|
+
/**
|
|
137
|
+
* Optional shared drive IDs to scope listing to specific shared drives.
|
|
138
|
+
*/
|
|
139
|
+
sharedDriveIds?: Array<string>;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Canonical Tool Core output for the "List a Google Drive folder" effect (`googleDrive.lsFolder`).
|
|
143
|
+
* This is the definition's output schema; the effect's script surface may
|
|
144
|
+
* re-encode it before returning.
|
|
145
|
+
*/
|
|
146
|
+
export type LsFolderScriptOutput = Array<{
|
|
147
|
+
type: "googleDrive";
|
|
148
|
+
blocks: Array<string>;
|
|
149
|
+
title: string;
|
|
150
|
+
fileId: string;
|
|
151
|
+
fileType: string;
|
|
152
|
+
timestamp: number;
|
|
153
|
+
comments?: Array<{
|
|
154
|
+
author: string;
|
|
155
|
+
bodyText: string;
|
|
156
|
+
lastEdited: string;
|
|
157
|
+
}>;
|
|
158
|
+
}>;
|
|
159
|
+
/**
|
|
160
|
+
* Script input for the "Search Google Drive" effect (`googleDrive.search`),
|
|
161
|
+
* derived from its Tool Core definition's call_function input projection.
|
|
162
|
+
*
|
|
163
|
+
* Search Google Drive via the configured connector.
|
|
164
|
+
*/
|
|
165
|
+
export type SearchScriptInput = {
|
|
166
|
+
/**
|
|
167
|
+
* A single, focused question to search for.
|
|
168
|
+
*/
|
|
169
|
+
question: string;
|
|
170
|
+
/**
|
|
171
|
+
* Brief keywords capturing the core entities.
|
|
172
|
+
*/
|
|
173
|
+
keywords?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Optional time window. Use only "default", "all_time", a duration matching /^\d+[dwmy]$/ (for example, "7d", "2w", "3m", or "1y"), or a date in "YYYY-MM-DD" format. Do not use natural-language durations or combine units.
|
|
176
|
+
*/
|
|
177
|
+
lookback?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Optional shared drive IDs to scope search to specific shared drives.
|
|
180
|
+
*/
|
|
181
|
+
sharedDriveIds?: Array<string>;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Canonical Tool Core output for the "Search Google Drive" effect (`googleDrive.search`).
|
|
185
|
+
* This is the definition's output schema; the effect's script surface may
|
|
186
|
+
* re-encode it before returning.
|
|
187
|
+
*/
|
|
188
|
+
export type SearchScriptOutput = {
|
|
189
|
+
results: Array<{
|
|
190
|
+
id: string;
|
|
191
|
+
title: string;
|
|
192
|
+
path: string;
|
|
193
|
+
text: string;
|
|
194
|
+
lastEdited: string;
|
|
195
|
+
isPrivate: boolean;
|
|
196
|
+
pageId: string;
|
|
197
|
+
fileType: string;
|
|
198
|
+
}>;
|
|
199
|
+
};
|
|
200
|
+
export declare class GoogleDriveConnectionClient {
|
|
201
|
+
private readonly invoke;
|
|
202
|
+
constructor(invoke: ConnectionActionInvoker);
|
|
203
|
+
getFileComments(args: GetFileCommentsScriptInput): Promise<GetFileCommentsScriptOutput>;
|
|
204
|
+
grepFiles(args: GrepFilesScriptInput): Promise<GrepFilesScriptOutput>;
|
|
205
|
+
loadFile(args: LoadFileScriptInput): Promise<LoadFileScriptOutput>;
|
|
206
|
+
loadZipFile(args: LoadZipFileScriptInput): Promise<LoadZipFileScriptOutput>;
|
|
207
|
+
lsFolder(args: LsFolderScriptInput): Promise<LsFolderScriptOutput>;
|
|
208
|
+
search(args: SearchScriptInput): Promise<SearchScriptOutput>;
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=googleDrive.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleDrive.generated.d.ts","sourceRoot":"","sources":["../src/googleDrive.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CAClB,CAAC,CAAA;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAC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M,CAAA;KAChB,CAAC,CAAA;CACF,CAAA;AAED,qBAAa,2BAA2B;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,uBAAuB;IAC5D,eAAe,CACd,IAAI,EAAE,0BAA0B,GAC9B,OAAO,CAAC,2BAA2B,CAAC;IAGvC,SAAS,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAGrE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAGlE,WAAW,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAG3E,QAAQ,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAGlE,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG5D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
class GoogleDriveConnectionClient {
|
|
2
|
+
constructor(invoke) {
|
|
3
|
+
this.invoke = invoke;
|
|
4
|
+
}
|
|
5
|
+
invoke;
|
|
6
|
+
getFileComments(args) {
|
|
7
|
+
return this.invoke("getFileComments", args);
|
|
8
|
+
}
|
|
9
|
+
grepFiles(args) {
|
|
10
|
+
return this.invoke("grepFiles", args);
|
|
11
|
+
}
|
|
12
|
+
loadFile(args) {
|
|
13
|
+
return this.invoke("loadFile", args);
|
|
14
|
+
}
|
|
15
|
+
loadZipFile(args) {
|
|
16
|
+
return this.invoke("loadZipFile", args);
|
|
17
|
+
}
|
|
18
|
+
lsFolder(args) {
|
|
19
|
+
return this.invoke("lsFolder", args);
|
|
20
|
+
}
|
|
21
|
+
search(args) {
|
|
22
|
+
return this.invoke("search", args);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
GoogleDriveConnectionClient
|
|
27
|
+
};
|