mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
refactor: trim google meet transport exports
This commit is contained in:
@@ -13,7 +13,7 @@ export const noopLogger = {
|
||||
debug: vi.fn(),
|
||||
};
|
||||
|
||||
export type GoogleMeetTestNodeListResult = {
|
||||
type GoogleMeetTestNodeListResult = {
|
||||
nodes: Array<{
|
||||
nodeId: string;
|
||||
displayName?: string;
|
||||
|
||||
@@ -35,7 +35,7 @@ export function isSameMeetUrlForReuse(a: string | undefined, b: string | undefin
|
||||
return Boolean(normalizedA && normalizedB && normalizedA === normalizedB);
|
||||
}
|
||||
|
||||
export type GoogleMeetNodeInfo = {
|
||||
type GoogleMeetNodeInfo = {
|
||||
caps?: string[];
|
||||
commands?: string[];
|
||||
connected?: boolean;
|
||||
|
||||
@@ -25,7 +25,7 @@ type BrowserCreateStepResult = {
|
||||
retryAfterMs?: number;
|
||||
};
|
||||
|
||||
export type GoogleMeetBrowserCreateResult = {
|
||||
type GoogleMeetBrowserCreateResult = {
|
||||
meetingUri: string;
|
||||
nodeId: string;
|
||||
targetId?: string;
|
||||
@@ -35,7 +35,7 @@ export type GoogleMeetBrowserCreateResult = {
|
||||
source: "browser";
|
||||
};
|
||||
|
||||
export type GoogleMeetBrowserManualAction = {
|
||||
type GoogleMeetBrowserManualAction = {
|
||||
source: "browser";
|
||||
error: string;
|
||||
manualActionRequired: true;
|
||||
@@ -50,7 +50,7 @@ export type GoogleMeetBrowserManualAction = {
|
||||
};
|
||||
};
|
||||
|
||||
export class GoogleMeetBrowserManualActionError extends Error {
|
||||
class GoogleMeetBrowserManualActionError extends Error {
|
||||
readonly payload: GoogleMeetBrowserManualAction;
|
||||
|
||||
constructor(payload: Omit<GoogleMeetBrowserManualAction, "source" | "error">) {
|
||||
|
||||
@@ -14,7 +14,7 @@ export function normalizeDialInNumber(value: unknown): string | undefined {
|
||||
return compact;
|
||||
}
|
||||
|
||||
export function normalizeDtmfSequence(value: unknown): string | undefined {
|
||||
function normalizeDtmfSequence(value: unknown): string | undefined {
|
||||
const normalized = normalizeOptionalString(value);
|
||||
if (!normalized) {
|
||||
return undefined;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { GoogleMeetMode, GoogleMeetTransport } from "../config.js";
|
||||
|
||||
export type GoogleMeetSessionState = "active" | "ended";
|
||||
type GoogleMeetSessionState = "active" | "ended";
|
||||
|
||||
export type GoogleMeetJoinRequest = {
|
||||
url: string;
|
||||
@@ -12,14 +12,14 @@ export type GoogleMeetJoinRequest = {
|
||||
dtmfSequence?: string;
|
||||
};
|
||||
|
||||
export type GoogleMeetManualActionReason =
|
||||
type GoogleMeetManualActionReason =
|
||||
| "google-login-required"
|
||||
| "meet-admission-required"
|
||||
| "meet-permission-required"
|
||||
| "meet-audio-choice-required"
|
||||
| "browser-control-unavailable";
|
||||
|
||||
export type GoogleMeetSpeechBlockedReason =
|
||||
type GoogleMeetSpeechBlockedReason =
|
||||
| GoogleMeetManualActionReason
|
||||
| "not-in-call"
|
||||
| "browser-unverified"
|
||||
|
||||
Reference in New Issue
Block a user