refactor: trim google meet transport exports · openclaw/openclaw@6eae362
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
File tree
extensions/google-meet/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ export const noopLogger = {
|
13 | 13 | debug: vi.fn(), |
14 | 14 | }; |
15 | 15 | |
16 | | -export type GoogleMeetTestNodeListResult = { |
| 16 | +type GoogleMeetTestNodeListResult = { |
17 | 17 | nodes: Array<{ |
18 | 18 | nodeId: string; |
19 | 19 | displayName?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,7 @@ export function isSameMeetUrlForReuse(a: string | undefined, b: string | undefin
|
35 | 35 | return Boolean(normalizedA && normalizedB && normalizedA === normalizedB); |
36 | 36 | } |
37 | 37 | |
38 | | -export type GoogleMeetNodeInfo = { |
| 38 | +type GoogleMeetNodeInfo = { |
39 | 39 | caps?: string[]; |
40 | 40 | commands?: string[]; |
41 | 41 | connected?: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ type BrowserCreateStepResult = {
|
25 | 25 | retryAfterMs?: number; |
26 | 26 | }; |
27 | 27 | |
28 | | -export type GoogleMeetBrowserCreateResult = { |
| 28 | +type GoogleMeetBrowserCreateResult = { |
29 | 29 | meetingUri: string; |
30 | 30 | nodeId: string; |
31 | 31 | targetId?: string; |
@@ -35,7 +35,7 @@ export type GoogleMeetBrowserCreateResult = {
|
35 | 35 | source: "browser"; |
36 | 36 | }; |
37 | 37 | |
38 | | -export type GoogleMeetBrowserManualAction = { |
| 38 | +type GoogleMeetBrowserManualAction = { |
39 | 39 | source: "browser"; |
40 | 40 | error: string; |
41 | 41 | manualActionRequired: true; |
@@ -50,7 +50,7 @@ export type GoogleMeetBrowserManualAction = {
|
50 | 50 | }; |
51 | 51 | }; |
52 | 52 | |
53 | | -export class GoogleMeetBrowserManualActionError extends Error { |
| 53 | +class GoogleMeetBrowserManualActionError extends Error { |
54 | 54 | readonly payload: GoogleMeetBrowserManualAction; |
55 | 55 | |
56 | 56 | constructor(payload: Omit<GoogleMeetBrowserManualAction, "source" | "error">) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ export function normalizeDialInNumber(value: unknown): string | undefined {
|
14 | 14 | return compact; |
15 | 15 | } |
16 | 16 | |
17 | | -export function normalizeDtmfSequence(value: unknown): string | undefined { |
| 17 | +function normalizeDtmfSequence(value: unknown): string | undefined { |
18 | 18 | const normalized = normalizeOptionalString(value); |
19 | 19 | if (!normalized) { |
20 | 20 | return undefined; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { GoogleMeetMode, GoogleMeetTransport } from "../config.js"; |
2 | 2 | |
3 | | -export type GoogleMeetSessionState = "active" | "ended"; |
| 3 | +type GoogleMeetSessionState = "active" | "ended"; |
4 | 4 | |
5 | 5 | export type GoogleMeetJoinRequest = { |
6 | 6 | url: string; |
@@ -12,14 +12,14 @@ export type GoogleMeetJoinRequest = {
|
12 | 12 | dtmfSequence?: string; |
13 | 13 | }; |
14 | 14 | |
15 | | -export type GoogleMeetManualActionReason = |
| 15 | +type GoogleMeetManualActionReason = |
16 | 16 | | "google-login-required" |
17 | 17 | | "meet-admission-required" |
18 | 18 | | "meet-permission-required" |
19 | 19 | | "meet-audio-choice-required" |
20 | 20 | | "browser-control-unavailable"; |
21 | 21 | |
22 | | -export type GoogleMeetSpeechBlockedReason = |
| 22 | +type GoogleMeetSpeechBlockedReason = |
23 | 23 | | GoogleMeetManualActionReason |
24 | 24 | | "not-in-call" |
25 | 25 | | "browser-unverified" |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。