@huddle01/web-core
Version:
The Huddle01 Javascript SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
67 lines (64 loc) • 1.75 kB
TypeScript
import { z } from 'zod';
declare const ConnectionParameterSchema: z.ZodObject<{
roomId: z.ZodString;
token: z.ZodString;
}, "strip", z.ZodTypeAny, {
roomId: string;
token: string;
}, {
roomId: string;
token: string;
}>;
declare const GeolocationSchema: z.ZodObject<{
country: z.ZodString;
latitude: z.ZodString;
longitude: z.ZodString;
region: z.ZodString;
globalRegion: z.ZodString;
ip: z.ZodString;
}, "strip", z.ZodTypeAny, {
country: string;
latitude: string;
longitude: string;
region: string;
globalRegion: string;
ip: string;
}, {
country: string;
latitude: string;
longitude: string;
region: string;
globalRegion: string;
ip: string;
}>;
declare const VolatileDataMessageSchema: z.ZodObject<{
from: z.ZodString;
payload: z.ZodUnknown;
label: z.ZodOptional<z.ZodString>;
to: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodString, "many">]>>;
}, "strip", z.ZodTypeAny, {
from: string;
label?: string | undefined;
to?: string[] | "*" | undefined;
payload?: unknown;
}, {
from: string;
label?: string | undefined;
to?: string[] | "*" | undefined;
payload?: unknown;
}>;
declare const DataMessageSchema: z.ZodObject<{
from: z.ZodString;
payload: z.ZodString;
label: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
payload: string;
from: string;
label?: string | undefined;
}, {
payload: string;
from: string;
label?: string | undefined;
}>;
type IConnectionParameter = z.infer<typeof ConnectionParameterSchema>;
export { ConnectionParameterSchema, DataMessageSchema, GeolocationSchema, type IConnectionParameter, VolatileDataMessageSchema };