@otto-code/protocol 0.9.7 → 0.9.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/dist/browser-automation/rpc-schemas.d.ts +32 -0
- package/dist/browser-automation/rpc-schemas.js +14 -0
- package/dist/generated/validation/ws-outbound.aot.js +45119 -44937
- package/dist/google-connectors.d.ts +71 -0
- package/dist/google-connectors.js +44 -0
- package/dist/messages.d.ts +367 -0
- package/dist/messages.js +79 -0
- package/dist/provider-config.d.ts +6 -0
- package/dist/provider-config.js +6 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/** Otto-owned tools over Google's ordinary account APIs. These URLs identify
|
|
2
|
+
* native integrations; they are not remote MCP endpoints.
|
|
3
|
+
* Scope changes require publisher portal configuration and renewed consent.
|
|
4
|
+
*/
|
|
5
|
+
export declare const GOOGLE_CONNECTOR_SERVICES: readonly [{
|
|
6
|
+
readonly id: "google-drive";
|
|
7
|
+
readonly label: "Google Drive";
|
|
8
|
+
readonly url: "https://www.googleapis.com/drive/v3";
|
|
9
|
+
readonly description: "Find, read, create and update files in Google Drive.";
|
|
10
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/drive"];
|
|
11
|
+
}, {
|
|
12
|
+
readonly id: "gmail";
|
|
13
|
+
readonly label: "Gmail";
|
|
14
|
+
readonly url: "https://gmail.googleapis.com/gmail/v1";
|
|
15
|
+
readonly description: "Find and read emails, create drafts, send, reply and forward.";
|
|
16
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.compose"];
|
|
17
|
+
}, {
|
|
18
|
+
readonly id: "google-calendar";
|
|
19
|
+
readonly label: "Google Calendar";
|
|
20
|
+
readonly url: "https://www.googleapis.com/calendar/v3";
|
|
21
|
+
readonly description: "List calendars, find and read events, and create events.";
|
|
22
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/calendar.calendarlist.readonly", "https://www.googleapis.com/auth/calendar.events"];
|
|
23
|
+
}];
|
|
24
|
+
export declare const GOOGLE_CONNECTOR_SOURCE = "https://developers.google.com/identity/protocols/oauth2/native-app";
|
|
25
|
+
export declare const CONNECTOR_OAUTH_REDIRECT_URI = "http://127.0.0.1:6871/connectors/oauth/callback";
|
|
26
|
+
export declare function googleConnectorForUrl(url: string): {
|
|
27
|
+
readonly id: "google-drive";
|
|
28
|
+
readonly label: "Google Drive";
|
|
29
|
+
readonly url: "https://www.googleapis.com/drive/v3";
|
|
30
|
+
readonly description: "Find, read, create and update files in Google Drive.";
|
|
31
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/drive"];
|
|
32
|
+
} | {
|
|
33
|
+
readonly id: "gmail";
|
|
34
|
+
readonly label: "Gmail";
|
|
35
|
+
readonly url: "https://gmail.googleapis.com/gmail/v1";
|
|
36
|
+
readonly description: "Find and read emails, create drafts, send, reply and forward.";
|
|
37
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.compose"];
|
|
38
|
+
} | {
|
|
39
|
+
readonly id: "google-calendar";
|
|
40
|
+
readonly label: "Google Calendar";
|
|
41
|
+
readonly url: "https://www.googleapis.com/calendar/v3";
|
|
42
|
+
readonly description: "List calendars, find and read events, and create events.";
|
|
43
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/calendar.calendarlist.readonly", "https://www.googleapis.com/auth/calendar.events"];
|
|
44
|
+
} | undefined;
|
|
45
|
+
export type GoogleConnectorService = (typeof GOOGLE_CONNECTOR_SERVICES)[number];
|
|
46
|
+
export declare function googleConnectorForConfig(connector: {
|
|
47
|
+
builtin?: string;
|
|
48
|
+
server: {
|
|
49
|
+
type: string;
|
|
50
|
+
url?: string;
|
|
51
|
+
};
|
|
52
|
+
}): {
|
|
53
|
+
readonly id: "google-drive";
|
|
54
|
+
readonly label: "Google Drive";
|
|
55
|
+
readonly url: "https://www.googleapis.com/drive/v3";
|
|
56
|
+
readonly description: "Find, read, create and update files in Google Drive.";
|
|
57
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/drive"];
|
|
58
|
+
} | {
|
|
59
|
+
readonly id: "gmail";
|
|
60
|
+
readonly label: "Gmail";
|
|
61
|
+
readonly url: "https://gmail.googleapis.com/gmail/v1";
|
|
62
|
+
readonly description: "Find and read emails, create drafts, send, reply and forward.";
|
|
63
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.compose"];
|
|
64
|
+
} | {
|
|
65
|
+
readonly id: "google-calendar";
|
|
66
|
+
readonly label: "Google Calendar";
|
|
67
|
+
readonly url: "https://www.googleapis.com/calendar/v3";
|
|
68
|
+
readonly description: "List calendars, find and read events, and create events.";
|
|
69
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/calendar.calendarlist.readonly", "https://www.googleapis.com/auth/calendar.events"];
|
|
70
|
+
} | undefined;
|
|
71
|
+
//# sourceMappingURL=google-connectors.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** Otto-owned tools over Google's ordinary account APIs. These URLs identify
|
|
2
|
+
* native integrations; they are not remote MCP endpoints.
|
|
3
|
+
* Scope changes require publisher portal configuration and renewed consent.
|
|
4
|
+
*/
|
|
5
|
+
export const GOOGLE_CONNECTOR_SERVICES = [
|
|
6
|
+
{
|
|
7
|
+
id: "google-drive",
|
|
8
|
+
label: "Google Drive",
|
|
9
|
+
url: "https://www.googleapis.com/drive/v3",
|
|
10
|
+
description: "Find, read, create and update files in Google Drive.",
|
|
11
|
+
scopes: ["https://www.googleapis.com/auth/drive"],
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "gmail",
|
|
15
|
+
label: "Gmail",
|
|
16
|
+
url: "https://gmail.googleapis.com/gmail/v1",
|
|
17
|
+
description: "Find and read emails, create drafts, send, reply and forward.",
|
|
18
|
+
scopes: [
|
|
19
|
+
"https://www.googleapis.com/auth/gmail.readonly",
|
|
20
|
+
"https://www.googleapis.com/auth/gmail.compose",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "google-calendar",
|
|
25
|
+
label: "Google Calendar",
|
|
26
|
+
url: "https://www.googleapis.com/calendar/v3",
|
|
27
|
+
description: "List calendars, find and read events, and create events.",
|
|
28
|
+
scopes: [
|
|
29
|
+
"https://www.googleapis.com/auth/calendar.calendarlist.readonly",
|
|
30
|
+
"https://www.googleapis.com/auth/calendar.events",
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
export const GOOGLE_CONNECTOR_SOURCE = "https://developers.google.com/identity/protocols/oauth2/native-app";
|
|
35
|
+
export const CONNECTOR_OAUTH_REDIRECT_URI = "http://127.0.0.1:6871/connectors/oauth/callback";
|
|
36
|
+
export function googleConnectorForUrl(url) {
|
|
37
|
+
return GOOGLE_CONNECTOR_SERVICES.find((service) => service.url === url);
|
|
38
|
+
}
|
|
39
|
+
export function googleConnectorForConfig(connector) {
|
|
40
|
+
if (!connector.builtin || connector.server.type !== "http")
|
|
41
|
+
return undefined;
|
|
42
|
+
return GOOGLE_CONNECTOR_SERVICES.find((service) => service.id === connector.builtin && service.url === connector.server.url);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=google-connectors.js.map
|