@phuetz/code-buddy 0.1.13 → 0.1.15
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 +228 -13
- package/dist/agent/architect-mode.d.ts +11 -0
- package/dist/agent/architect-mode.js +133 -25
- package/dist/agent/architect-mode.js.map +1 -1
- package/dist/agent/codebuddy-agent.d.ts +24 -0
- package/dist/agent/codebuddy-agent.js +118 -16
- package/dist/agent/codebuddy-agent.js.map +1 -1
- package/dist/agent/execution/agent-executor.d.ts +9 -0
- package/dist/agent/execution/agent-executor.js +61 -0
- package/dist/agent/execution/agent-executor.js.map +1 -1
- package/dist/agent/message-queue.d.ts +77 -0
- package/dist/agent/message-queue.js +116 -0
- package/dist/agent/message-queue.js.map +1 -0
- package/dist/agent/middleware/auto-observation.d.ts +37 -0
- package/dist/agent/middleware/auto-observation.js +231 -0
- package/dist/agent/middleware/auto-observation.js.map +1 -0
- package/dist/agent/middleware/index.d.ts +2 -0
- package/dist/agent/middleware/index.js +1 -0
- package/dist/agent/middleware/index.js.map +1 -1
- package/dist/agent/tool-handler.js +3 -2
- package/dist/agent/tool-handler.js.map +1 -1
- package/dist/agent/types.d.ts +7 -2
- package/dist/analytics/budget-alerts.d.ts +81 -0
- package/dist/analytics/budget-alerts.js +126 -0
- package/dist/analytics/budget-alerts.js.map +1 -0
- package/dist/analytics/cost-predictor.d.ts +79 -0
- package/dist/analytics/cost-predictor.js +150 -0
- package/dist/analytics/cost-predictor.js.map +1 -0
- package/dist/analytics/index.d.ts +2 -0
- package/dist/analytics/index.js +2 -0
- package/dist/analytics/index.js.map +1 -1
- package/dist/auth/profile-manager.d.ts +205 -0
- package/dist/auth/profile-manager.js +484 -0
- package/dist/auth/profile-manager.js.map +1 -0
- package/dist/browser-automation/browser-manager.d.ts +79 -1
- package/dist/browser-automation/browser-manager.js +265 -2
- package/dist/browser-automation/browser-manager.js.map +1 -1
- package/dist/browser-automation/profile-manager.d.ts +32 -0
- package/dist/browser-automation/profile-manager.js +83 -0
- package/dist/browser-automation/profile-manager.js.map +1 -0
- package/dist/browser-automation/route-interceptor.d.ts +29 -0
- package/dist/browser-automation/route-interceptor.js +103 -0
- package/dist/browser-automation/route-interceptor.js.map +1 -0
- package/dist/browser-automation/screenshot-annotator.d.ts +23 -0
- package/dist/browser-automation/screenshot-annotator.js +86 -0
- package/dist/browser-automation/screenshot-annotator.js.map +1 -0
- package/dist/browser-automation/types.d.ts +47 -0
- package/dist/channels/discord/client.d.ts +2 -1
- package/dist/channels/discord/client.js +28 -16
- package/dist/channels/discord/client.js.map +1 -1
- package/dist/channels/google-chat/index.d.ts +210 -0
- package/dist/channels/google-chat/index.js +505 -0
- package/dist/channels/google-chat/index.js.map +1 -0
- package/dist/channels/group-security.d.ts +182 -0
- package/dist/channels/group-security.js +407 -0
- package/dist/channels/group-security.js.map +1 -0
- package/dist/channels/index.d.ts +17 -1
- package/dist/channels/index.js +16 -0
- package/dist/channels/index.js.map +1 -1
- package/dist/channels/matrix/index.d.ts +181 -0
- package/dist/channels/matrix/index.js +643 -0
- package/dist/channels/matrix/index.js.map +1 -0
- package/dist/channels/offline-queue.d.ts +92 -0
- package/dist/channels/offline-queue.js +112 -0
- package/dist/channels/offline-queue.js.map +1 -0
- package/dist/channels/reconnection-manager.d.ts +117 -0
- package/dist/channels/reconnection-manager.js +179 -0
- package/dist/channels/reconnection-manager.js.map +1 -0
- package/dist/channels/signal/index.d.ts +184 -0
- package/dist/channels/signal/index.js +488 -0
- package/dist/channels/signal/index.js.map +1 -0
- package/dist/channels/slack/client.d.ts +2 -1
- package/dist/channels/slack/client.js +30 -20
- package/dist/channels/slack/client.js.map +1 -1
- package/dist/channels/teams/index.d.ts +196 -0
- package/dist/channels/teams/index.js +477 -0
- package/dist/channels/teams/index.js.map +1 -0
- package/dist/channels/telegram/client.d.ts +3 -1
- package/dist/channels/telegram/client.js +29 -2
- package/dist/channels/telegram/client.js.map +1 -1
- package/dist/channels/webchat/index.d.ts +103 -0
- package/dist/channels/webchat/index.js +697 -0
- package/dist/channels/webchat/index.js.map +1 -0
- package/dist/channels/whatsapp/index.d.ts +105 -0
- package/dist/channels/whatsapp/index.js +533 -0
- package/dist/channels/whatsapp/index.js.map +1 -0
- package/dist/codebuddy/client.js +6 -3
- package/dist/codebuddy/client.js.map +1 -1
- package/dist/codebuddy/tool-definitions/advanced-tools.d.ts +1 -0
- package/dist/codebuddy/tool-definitions/advanced-tools.js +103 -3
- package/dist/codebuddy/tool-definitions/advanced-tools.js.map +1 -1
- package/dist/codebuddy/tool-definitions/index.d.ts +1 -1
- package/dist/codebuddy/tool-definitions/index.js +1 -1
- package/dist/codebuddy/tool-definitions/index.js.map +1 -1
- package/dist/codebuddy/tools.js +3 -1
- package/dist/codebuddy/tools.js.map +1 -1
- package/dist/commands/cli/config-command.d.ts +8 -0
- package/dist/commands/cli/config-command.js +90 -0
- package/dist/commands/cli/config-command.js.map +1 -0
- package/dist/commands/cli/openclaw-commands.d.ts +12 -0
- package/dist/commands/cli/openclaw-commands.js +446 -0
- package/dist/commands/cli/openclaw-commands.js.map +1 -0
- package/dist/commands/cli/utility-commands.js +30 -0
- package/dist/commands/cli/utility-commands.js.map +1 -1
- package/dist/commands/client-dispatcher.js +22 -2
- package/dist/commands/client-dispatcher.js.map +1 -1
- package/dist/commands/enhanced-command-handler.js +21 -2
- package/dist/commands/enhanced-command-handler.js.map +1 -1
- package/dist/commands/handlers/extra-handlers.d.ts +30 -0
- package/dist/commands/handlers/extra-handlers.js +547 -0
- package/dist/commands/handlers/extra-handlers.js.map +1 -0
- package/dist/commands/handlers/index.d.ts +1 -0
- package/dist/commands/handlers/index.js +2 -0
- package/dist/commands/handlers/index.js.map +1 -1
- package/dist/commands/slash/builtin-commands.js +41 -34
- package/dist/commands/slash/builtin-commands.js.map +1 -1
- package/dist/config/env-schema.d.ts +58 -0
- package/dist/config/env-schema.js +789 -0
- package/dist/config/env-schema.js.map +1 -0
- package/dist/config/feature-flags.js +2 -1
- package/dist/config/feature-flags.js.map +1 -1
- package/dist/context/bootstrap-loader.d.ts +48 -0
- package/dist/context/bootstrap-loader.js +123 -0
- package/dist/context/bootstrap-loader.js.map +1 -0
- package/dist/copilot/copilot-proxy.d.ts +15 -1
- package/dist/copilot/copilot-proxy.js +81 -22
- package/dist/copilot/copilot-proxy.js.map +1 -1
- package/dist/daemon/heartbeat.d.ts +112 -0
- package/dist/daemon/heartbeat.js +339 -0
- package/dist/daemon/heartbeat.js.map +1 -0
- package/dist/desktop-automation/smart-snapshot.d.ts +11 -0
- package/dist/desktop-automation/smart-snapshot.js +28 -0
- package/dist/desktop-automation/smart-snapshot.js.map +1 -1
- package/dist/identity/identity-manager.d.ts +95 -0
- package/dist/identity/identity-manager.js +242 -0
- package/dist/identity/identity-manager.js.map +1 -0
- package/dist/index.js +147 -17
- package/dist/index.js.map +1 -1
- package/dist/integrations/github-integration.js +1 -1
- package/dist/integrations/github-integration.js.map +1 -1
- package/dist/persistence/conversation-branches.js +2 -1
- package/dist/persistence/conversation-branches.js.map +1 -1
- package/dist/persistence/session-store.d.ts +1 -1
- package/dist/persistence/session-store.js +1 -1
- package/dist/persistence/session-store.js.map +1 -1
- package/dist/sandbox/auto-sandbox.d.ts +59 -0
- package/dist/sandbox/auto-sandbox.js +145 -0
- package/dist/sandbox/auto-sandbox.js.map +1 -0
- package/dist/security/audit-logger.d.ts +127 -0
- package/dist/security/audit-logger.js +194 -0
- package/dist/security/audit-logger.js.map +1 -0
- package/dist/security/bash-allowlist/allowlist-store.js +3 -2
- package/dist/security/bash-allowlist/allowlist-store.js.map +1 -1
- package/dist/security/bash-parser.js +0 -2
- package/dist/security/bash-parser.js.map +1 -1
- package/dist/security/code-validator.d.ts +51 -0
- package/dist/security/code-validator.js +185 -0
- package/dist/security/code-validator.js.map +1 -0
- package/dist/security/dangerous-patterns.d.ts +68 -0
- package/dist/security/dangerous-patterns.js +218 -0
- package/dist/security/dangerous-patterns.js.map +1 -0
- package/dist/security/remote-approval.d.ts +65 -0
- package/dist/security/remote-approval.js +138 -0
- package/dist/security/remote-approval.js.map +1 -0
- package/dist/security/security-audit.d.ts +7 -0
- package/dist/security/security-audit.js +23 -0
- package/dist/security/security-audit.js.map +1 -1
- package/dist/security/syntax-validator.d.ts +17 -0
- package/dist/security/syntax-validator.js +292 -0
- package/dist/security/syntax-validator.js.map +1 -0
- package/dist/server/index.js +277 -2
- package/dist/server/index.js.map +1 -1
- package/dist/services/prompt-builder.js +16 -0
- package/dist/services/prompt-builder.js.map +1 -1
- package/dist/skills/hub.d.ts +231 -0
- package/dist/skills/hub.js +694 -0
- package/dist/skills/hub.js.map +1 -0
- package/dist/skills/skill-loader.js +1 -1
- package/dist/skills/skill-loader.js.map +1 -1
- package/dist/skills/skill-manager.js +2 -1
- package/dist/skills/skill-manager.js.map +1 -1
- package/dist/tools/apply-patch.d.ts +1 -0
- package/dist/tools/apply-patch.js +57 -10
- package/dist/tools/apply-patch.js.map +1 -1
- package/dist/tools/bash/bash-tool.d.ts +123 -0
- package/dist/tools/bash/bash-tool.js +549 -0
- package/dist/tools/bash/bash-tool.js.map +1 -0
- package/dist/tools/bash/command-validator.d.ts +49 -0
- package/dist/tools/bash/command-validator.js +223 -0
- package/dist/tools/bash/command-validator.js.map +1 -0
- package/dist/tools/bash/index.d.ts +7 -0
- package/dist/tools/bash/index.js +8 -0
- package/dist/tools/bash/index.js.map +1 -0
- package/dist/tools/bash/security-patterns.d.ts +44 -0
- package/dist/tools/bash/security-patterns.js +234 -0
- package/dist/tools/bash/security-patterns.js.map +1 -0
- package/dist/tools/bash/streaming-executor.d.ts +23 -0
- package/dist/tools/bash/streaming-executor.js +134 -0
- package/dist/tools/bash/streaming-executor.js.map +1 -0
- package/dist/tools/code-formatter.js +41 -27
- package/dist/tools/code-formatter.js.map +1 -1
- package/dist/tools/code-review.js +1 -1
- package/dist/tools/code-review.js.map +1 -1
- package/dist/tools/computer-control-tool.js +21 -0
- package/dist/tools/computer-control-tool.js.map +1 -1
- package/dist/tools/document-tool.js +3 -2
- package/dist/tools/document-tool.js.map +1 -1
- package/dist/tools/git-tool.d.ts +45 -0
- package/dist/tools/git-tool.js +222 -0
- package/dist/tools/git-tool.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/multi-edit.js +31 -3
- package/dist/tools/multi-edit.js.map +1 -1
- package/dist/tools/process-tool.d.ts +69 -0
- package/dist/tools/process-tool.js +222 -0
- package/dist/tools/process-tool.js.map +1 -0
- package/dist/tools/registry/git-tools.d.ts +32 -0
- package/dist/tools/registry/git-tools.js +211 -0
- package/dist/tools/registry/git-tools.js.map +1 -0
- package/dist/tools/registry/index.d.ts +2 -0
- package/dist/tools/registry/index.js +8 -0
- package/dist/tools/registry/index.js.map +1 -1
- package/dist/tools/registry/misc-tools.d.ts +32 -4
- package/dist/tools/registry/misc-tools.js +230 -90
- package/dist/tools/registry/misc-tools.js.map +1 -1
- package/dist/tools/registry/process-tools.d.ts +20 -0
- package/dist/tools/registry/process-tools.js +141 -0
- package/dist/tools/registry/process-tools.js.map +1 -0
- package/dist/tools/registry/types.d.ts +2 -0
- package/dist/ui/components/ChatInterface.js +9 -0
- package/dist/ui/components/ChatInterface.js.map +1 -1
- package/dist/utils/autonomy-manager.js +3 -2
- package/dist/utils/autonomy-manager.js.map +1 -1
- package/dist/utils/config-validation/schema.d.ts +15 -15
- package/dist/utils/confirmation-service.d.ts +16 -0
- package/dist/utils/confirmation-service.js +37 -3
- package/dist/utils/confirmation-service.js.map +1 -1
- package/dist/utils/custom-instructions.js +2 -1
- package/dist/utils/custom-instructions.js.map +1 -1
- package/dist/utils/graceful-shutdown.js +9 -9
- package/dist/utils/graceful-shutdown.js.map +1 -1
- package/dist/utils/head-tail-truncation.d.ts +18 -0
- package/dist/utils/head-tail-truncation.js +127 -0
- package/dist/utils/head-tail-truncation.js.map +1 -1
- package/dist/utils/history-manager.js +3 -2
- package/dist/utils/history-manager.js.map +1 -1
- package/dist/utils/performance.js +16 -15
- package/dist/utils/performance.js.map +1 -1
- package/dist/utils/update-notifier.js +2 -1
- package/dist/utils/update-notifier.js.map +1 -1
- package/dist/workflows/pipeline.d.ts +54 -1
- package/dist/workflows/pipeline.js +128 -7
- package/dist/workflows/pipeline.js.map +1 -1
- package/dist/workflows/step-manager.js +2 -1
- package/dist/workflows/step-manager.js.map +1 -1
- package/package.json +6 -3
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Chat Channel Adapter
|
|
3
|
+
*
|
|
4
|
+
* Google Chat integration via Google Workspace Chat API.
|
|
5
|
+
* Uses service account authentication for bot-to-space messaging.
|
|
6
|
+
*
|
|
7
|
+
* Requires:
|
|
8
|
+
* - A Google Cloud project with the Chat API enabled
|
|
9
|
+
* - A service account with Chat Bot scope
|
|
10
|
+
* - The service account JSON key file
|
|
11
|
+
*
|
|
12
|
+
* The adapter operates in two modes:
|
|
13
|
+
* 1. Webhook mode (push): Google Chat sends events to a configured endpoint
|
|
14
|
+
* 2. Pull mode: Polls for space activity via the REST API (limited, mainly for sending)
|
|
15
|
+
*
|
|
16
|
+
* Primary documentation: https://developers.google.com/workspace/chat/api/reference/rest
|
|
17
|
+
*/
|
|
18
|
+
import type { ChannelConfig, OutboundMessage, DeliveryResult } from '../index.js';
|
|
19
|
+
import { BaseChannel } from '../index.js';
|
|
20
|
+
/**
|
|
21
|
+
* Google Chat-specific configuration
|
|
22
|
+
*/
|
|
23
|
+
export interface GoogleChatConfig extends ChannelConfig {
|
|
24
|
+
type: 'google-chat';
|
|
25
|
+
/** Path to the service account JSON key file */
|
|
26
|
+
serviceAccountPath: string;
|
|
27
|
+
/** Default space ID (spaces/{spaceId}) to send messages to */
|
|
28
|
+
spaceId?: string;
|
|
29
|
+
/** Webhook URL that Google Chat sends events to (push mode) */
|
|
30
|
+
webhookUrl?: string;
|
|
31
|
+
/** Bearer token for verifying incoming webhooks */
|
|
32
|
+
verificationToken?: string;
|
|
33
|
+
/** Project number for push subscription (Pub/Sub) */
|
|
34
|
+
projectNumber?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Google Chat space
|
|
38
|
+
*/
|
|
39
|
+
export interface GoogleChatSpace {
|
|
40
|
+
name: string;
|
|
41
|
+
type: 'ROOM' | 'DM' | 'TYPE_UNSPECIFIED';
|
|
42
|
+
displayName?: string;
|
|
43
|
+
singleUserBotDm?: boolean;
|
|
44
|
+
spaceThreadingState?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Google Chat user
|
|
48
|
+
*/
|
|
49
|
+
export interface GoogleChatUser {
|
|
50
|
+
name: string;
|
|
51
|
+
displayName: string;
|
|
52
|
+
domainId?: string;
|
|
53
|
+
type: 'HUMAN' | 'BOT';
|
|
54
|
+
isAnonymous?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Google Chat message
|
|
58
|
+
*/
|
|
59
|
+
export interface GoogleChatMessage {
|
|
60
|
+
name?: string;
|
|
61
|
+
sender?: GoogleChatUser;
|
|
62
|
+
createTime?: string;
|
|
63
|
+
text?: string;
|
|
64
|
+
formattedText?: string;
|
|
65
|
+
cards?: unknown[];
|
|
66
|
+
cardsV2?: unknown[];
|
|
67
|
+
annotations?: Array<{
|
|
68
|
+
type: string;
|
|
69
|
+
startIndex?: number;
|
|
70
|
+
length?: number;
|
|
71
|
+
userMention?: {
|
|
72
|
+
user: GoogleChatUser;
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
slashCommand?: {
|
|
76
|
+
commandName: string;
|
|
77
|
+
commandId: string;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
thread?: {
|
|
81
|
+
name: string;
|
|
82
|
+
threadKey?: string;
|
|
83
|
+
};
|
|
84
|
+
space?: GoogleChatSpace;
|
|
85
|
+
argumentText?: string;
|
|
86
|
+
attachment?: Array<{
|
|
87
|
+
name: string;
|
|
88
|
+
contentName: string;
|
|
89
|
+
contentType: string;
|
|
90
|
+
thumbnailUri?: string;
|
|
91
|
+
downloadUri?: string;
|
|
92
|
+
source?: string;
|
|
93
|
+
attachmentDataRef?: {
|
|
94
|
+
resourceName: string;
|
|
95
|
+
};
|
|
96
|
+
}>;
|
|
97
|
+
slashCommand?: {
|
|
98
|
+
commandId: string;
|
|
99
|
+
};
|
|
100
|
+
matchedUrl?: {
|
|
101
|
+
url: string;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Google Chat event (webhook payload)
|
|
106
|
+
*/
|
|
107
|
+
export interface GoogleChatEvent {
|
|
108
|
+
type: 'MESSAGE' | 'ADDED_TO_SPACE' | 'REMOVED_FROM_SPACE' | 'CARD_CLICKED';
|
|
109
|
+
eventTime: string;
|
|
110
|
+
token?: string;
|
|
111
|
+
message?: GoogleChatMessage;
|
|
112
|
+
user?: GoogleChatUser;
|
|
113
|
+
space?: GoogleChatSpace;
|
|
114
|
+
action?: {
|
|
115
|
+
actionMethodName: string;
|
|
116
|
+
parameters?: Array<{
|
|
117
|
+
key: string;
|
|
118
|
+
value: string;
|
|
119
|
+
}>;
|
|
120
|
+
};
|
|
121
|
+
configCompleteRedirectUrl?: string;
|
|
122
|
+
threadKey?: string;
|
|
123
|
+
common?: {
|
|
124
|
+
userLocale?: string;
|
|
125
|
+
hostApp?: string;
|
|
126
|
+
platform?: string;
|
|
127
|
+
timeZone?: {
|
|
128
|
+
id: string;
|
|
129
|
+
offset: number;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Google Chat channel using the Workspace Chat API
|
|
135
|
+
*/
|
|
136
|
+
export declare class GoogleChatChannel extends BaseChannel {
|
|
137
|
+
private serviceAccount;
|
|
138
|
+
private accessToken;
|
|
139
|
+
private tokenExpiry;
|
|
140
|
+
private spaceCache;
|
|
141
|
+
constructor(config: GoogleChatConfig);
|
|
142
|
+
private get gchatConfig();
|
|
143
|
+
/**
|
|
144
|
+
* Load the service account key from disk
|
|
145
|
+
*/
|
|
146
|
+
private loadServiceAccount;
|
|
147
|
+
/**
|
|
148
|
+
* Create a signed JWT for the service account
|
|
149
|
+
*/
|
|
150
|
+
private createJwt;
|
|
151
|
+
/**
|
|
152
|
+
* Exchange the signed JWT for a Google OAuth2 access token
|
|
153
|
+
*/
|
|
154
|
+
private getAccessToken;
|
|
155
|
+
/**
|
|
156
|
+
* Make an authenticated request to the Google Chat API
|
|
157
|
+
*/
|
|
158
|
+
private apiRequest;
|
|
159
|
+
/**
|
|
160
|
+
* Connect to Google Chat by validating the service account and
|
|
161
|
+
* verifying API access
|
|
162
|
+
*/
|
|
163
|
+
connect(): Promise<void>;
|
|
164
|
+
/**
|
|
165
|
+
* Disconnect from Google Chat
|
|
166
|
+
*/
|
|
167
|
+
disconnect(): Promise<void>;
|
|
168
|
+
/**
|
|
169
|
+
* Send a message to a Google Chat space
|
|
170
|
+
*/
|
|
171
|
+
send(message: OutboundMessage): Promise<DeliveryResult>;
|
|
172
|
+
/**
|
|
173
|
+
* Handle an incoming Google Chat webhook event.
|
|
174
|
+
* Call this from your HTTP server route handler.
|
|
175
|
+
*
|
|
176
|
+
* @param event - The parsed request body
|
|
177
|
+
* @param bearerToken - The Bearer token from the Authorization header (optional)
|
|
178
|
+
* @returns Response body to send back to Google Chat (can include a synchronous reply)
|
|
179
|
+
*/
|
|
180
|
+
handleWebhook(event: GoogleChatEvent, bearerToken?: string): Promise<Record<string, unknown> | void>;
|
|
181
|
+
/**
|
|
182
|
+
* Handle MESSAGE event
|
|
183
|
+
*/
|
|
184
|
+
private handleMessageEvent;
|
|
185
|
+
/**
|
|
186
|
+
* Handle CARD_CLICKED event (button press)
|
|
187
|
+
*/
|
|
188
|
+
private handleCardClicked;
|
|
189
|
+
/**
|
|
190
|
+
* List spaces the bot has access to
|
|
191
|
+
*/
|
|
192
|
+
listSpaces(): Promise<GoogleChatSpace[]>;
|
|
193
|
+
/**
|
|
194
|
+
* Get a specific space
|
|
195
|
+
*/
|
|
196
|
+
getSpace(spaceName: string): Promise<GoogleChatSpace | null>;
|
|
197
|
+
/**
|
|
198
|
+
* Update a previously sent message
|
|
199
|
+
*/
|
|
200
|
+
updateMessage(messageName: string, text: string): Promise<void>;
|
|
201
|
+
/**
|
|
202
|
+
* Delete a previously sent message
|
|
203
|
+
*/
|
|
204
|
+
deleteMessage(messageName: string): Promise<void>;
|
|
205
|
+
/**
|
|
206
|
+
* Map MIME type to ContentType
|
|
207
|
+
*/
|
|
208
|
+
private mimeToContentType;
|
|
209
|
+
}
|
|
210
|
+
export default GoogleChatChannel;
|